summaryrefslogtreecommitdiffstats
path: root/app/controllers/timelog_controller.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-07-14 07:27:31 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-07-14 07:27:31 +0000
commitee82a55602a2178f9d5a978be3bf8492855d2c7f (patch)
tree66f37b39f91217e64ef2e40bbdc96a4e574c7ad2 /app/controllers/timelog_controller.rb
parentd2f7e31951d0e150df9cfd6da7d91d855f734d5f (diff)
downloadredmine-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/timelog_controller.rb')
-rw-r--r--app/controllers/timelog_controller.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/app/controllers/timelog_controller.rb b/app/controllers/timelog_controller.rb
index 30560dcfb..f293855a5 100644
--- a/app/controllers/timelog_controller.rb
+++ b/app/controllers/timelog_controller.rb
@@ -18,13 +18,13 @@
class TimelogController < ApplicationController
menu_item :issues
- before_filter :find_time_entry, :only => [:show, :edit, :update]
- before_filter :find_time_entries, :only => [:bulk_edit, :bulk_update, :destroy]
- before_filter :authorize, :only => [:show, :edit, :update, :bulk_edit, :bulk_update, :destroy]
+ before_action :find_time_entry, :only => [:show, :edit, :update]
+ before_action :find_time_entries, :only => [:bulk_edit, :bulk_update, :destroy]
+ before_action :authorize, :only => [:show, :edit, :update, :bulk_edit, :bulk_update, :destroy]
- before_filter :find_optional_issue, :only => [:new, :create]
- before_filter :find_optional_project, :only => [:index, :report]
- before_filter :authorize_global, :only => [:new, :create, :index, :report]
+ before_action :find_optional_issue, :only => [:new, :create]
+ before_action :find_optional_project, :only => [:index, :report]
+ before_action :authorize_global, :only => [:new, :create, :index, :report]
accept_rss_auth :index
accept_api_auth :index, :show, :create, :update, :destroy