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/principal_memberships_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/principal_memberships_controller.rb')
-rw-r--r-- | app/controllers/principal_memberships_controller.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/controllers/principal_memberships_controller.rb b/app/controllers/principal_memberships_controller.rb index 5cf8ff166..0ac150d71 100644 --- a/app/controllers/principal_memberships_controller.rb +++ b/app/controllers/principal_memberships_controller.rb @@ -18,9 +18,9 @@ class PrincipalMembershipsController < ApplicationController layout 'admin' - before_filter :require_admin - before_filter :find_principal, :only => [:new, :create] - before_filter :find_membership, :only => [:update, :destroy] + before_action :require_admin + before_action :find_principal, :only => [:new, :create] + before_action :find_membership, :only => [:update, :destroy] def new @projects = Project.active.all |