From ee82a55602a2178f9d5a978be3bf8492855d2c7f Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Thu, 14 Jul 2016 07:27:31 +0000 Subject: Use .before_action instead of .before_filter. git-svn-id: http://svn.redmine.org/redmine/trunk@15655 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/issue_categories_controller.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'app/controllers/issue_categories_controller.rb') diff --git a/app/controllers/issue_categories_controller.rb b/app/controllers/issue_categories_controller.rb index c53f2395d..b9ea10d9e 100644 --- a/app/controllers/issue_categories_controller.rb +++ b/app/controllers/issue_categories_controller.rb @@ -18,10 +18,10 @@ class IssueCategoriesController < ApplicationController menu_item :settings model_object IssueCategory - before_filter :find_model_object, :except => [:index, :new, :create] - before_filter :find_project_from_association, :except => [:index, :new, :create] - before_filter :find_project_by_project_id, :only => [:index, :new, :create] - before_filter :authorize + before_action :find_model_object, :except => [:index, :new, :create] + before_action :find_project_from_association, :except => [:index, :new, :create] + before_action :find_project_by_project_id, :only => [:index, :new, :create] + before_action :authorize accept_api_auth :index, :show, :create, :update, :destroy def index -- cgit v1.2.3