From 8e7e1908e493f0ba9a1d453756ac9f0b42b5451f Mon Sep 17 00:00:00 2001 From: Rick Barrette Date: Thu, 23 Mar 2017 05:39:55 -0400 Subject: [PATCH] Update customers_controller.rb --- app/controllers/customers_controller.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/controllers/customers_controller.rb b/app/controllers/customers_controller.rb index 550d49e..55892b7 100644 --- a/app/controllers/customers_controller.rb +++ b/app/controllers/customers_controller.rb @@ -27,8 +27,7 @@ class CustomersController < ApplicationController include SortHelper helper :timelog - before_filter :add_customer, :only => :new - before_filter :view_customer, :except => :new + before_filter :require_user skip_before_filter :verify_authenticity_token, :check_if_login_required, :only => [:view] default_search_scope :names