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/watchers_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/watchers_controller.rb')
-rw-r--r-- | app/controllers/watchers_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/watchers_controller.rb b/app/controllers/watchers_controller.rb index d9f2351d0..818ed3597 100644 --- a/app/controllers/watchers_controller.rb +++ b/app/controllers/watchers_controller.rb @@ -16,7 +16,7 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. class WatchersController < ApplicationController - before_filter :require_login, :find_watchables, :only => [:watch, :unwatch] + before_action :require_login, :find_watchables, :only => [:watch, :unwatch] def watch set_watcher(@watchables, User.current, true) @@ -26,7 +26,7 @@ class WatchersController < ApplicationController set_watcher(@watchables, User.current, false) end - before_filter :find_project, :authorize, :only => [:new, :create, :append, :destroy, :autocomplete_for_user] + before_action :find_project, :authorize, :only => [:new, :create, :append, :destroy, :autocomplete_for_user] accept_api_auth :create, :destroy def new |