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 /lib | |
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 'lib')
-rw-r--r-- | lib/redmine/sudo_mode.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/redmine/sudo_mode.rb b/lib/redmine/sudo_mode.rb index 3f2749cd5..6d3ac6878 100644 --- a/lib/redmine/sudo_mode.rb +++ b/lib/redmine/sudo_mode.rb @@ -108,7 +108,7 @@ module Redmine @sudo_form ||= SudoMode::Form.new @sudo_form.original_fields = params.slice( *param_names ) # a simple 'render "sudo_mode/new"' works when used directly inside an - # action, but not when called from a before_filter: + # action, but not when called from a before_action: respond_to do |format| format.html { render 'sudo_mode/new' } format.js { render 'sudo_mode/new' } @@ -168,7 +168,7 @@ module Redmine actions = args.dup options = actions.extract_options! filter = SudoRequestFilter.new Array(options[:parameters]), Array(options[:only]) - before_filter filter, only: actions + before_action filter, only: actions end end end |