1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-15 20:02:54 +00:00

Use .skip_before_action instead of .skip_before_filter.

git-svn-id: http://svn.redmine.org/redmine/trunk@15656 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2016-07-14 07:29:04 +00:00
parent ee82a55602
commit 2457f5914d
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ class AccountController < ApplicationController
include CustomFieldsHelper
# prevents login action to be filtered by check_if_login_required application scope filter
skip_before_filter :check_if_login_required, :check_password_change
skip_before_action :check_if_login_required, :check_password_change
# Overrides ApplicationController#verify_authenticity_token to disable
# token verification on openid callbacks

View File

@ -18,7 +18,7 @@
class MyController < ApplicationController
before_action :require_login
# let user change user's password when user has to
skip_before_filter :check_password_change, :only => :password
skip_before_action :check_password_change, :only => :password
require_sudo_mode :account, only: :post
require_sudo_mode :reset_rss_key, :reset_api_key, :show_api_key, :destroy