From 09313ad471b5ad48fdd101bfd642d58f052b4aef Mon Sep 17 00:00:00 2001 From: Ricky Barrette Date: Sun, 20 Feb 2022 13:42:06 -0500 Subject: [PATCH] exclude before filter for customer/view --- app/controllers/customers_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/customers_controller.rb b/app/controllers/customers_controller.rb index 0aab913..471e513 100644 --- a/app/controllers/customers_controller.rb +++ b/app/controllers/customers_controller.rb @@ -28,7 +28,7 @@ class CustomersController < ApplicationController helper :timelog before_action :add_customer, :only => :new - before_action :view_customer, :except => :new + before_action :view_customer, :except => [:new, :view] skip_before_action :verify_authenticity_token, :check_if_login_required, :only => [:view] default_search_scope :names