diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-07-14 07:27:31 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-07-14 07:27:31 +0000 |
commit | ee82a55602a2178f9d5a978be3bf8492855d2c7f (patch) | |
tree | 66f37b39f91217e64ef2e40bbdc96a4e574c7ad2 /app/controllers/news_controller.rb | |
parent | d2f7e31951d0e150df9cfd6da7d91d855f734d5f (diff) | |
download | redmine-ee82a55602a2178f9d5a978be3bf8492855d2c7f.tar.gz redmine-ee82a55602a2178f9d5a978be3bf8492855d2c7f.zip |
Use .before_action instead of .before_filter.
git-svn-id: http://svn.redmine.org/redmine/trunk@15655 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/news_controller.rb')
-rw-r--r-- | app/controllers/news_controller.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/controllers/news_controller.rb b/app/controllers/news_controller.rb index 6e429e827..a97a158db 100644 --- a/app/controllers/news_controller.rb +++ b/app/controllers/news_controller.rb @@ -18,11 +18,11 @@ class NewsController < ApplicationController default_search_scope :news model_object News - before_filter :find_model_object, :except => [:new, :create, :index] - before_filter :find_project_from_association, :except => [:new, :create, :index] - before_filter :find_project_by_project_id, :only => [:new, :create] - before_filter :authorize, :except => [:index] - before_filter :find_optional_project, :only => :index + before_action :find_model_object, :except => [:new, :create, :index] + before_action :find_project_from_association, :except => [:new, :create, :index] + before_action :find_project_by_project_id, :only => [:new, :create] + before_action :authorize, :except => [:index] + before_action :find_optional_project, :only => :index accept_rss_auth :index accept_api_auth :index |