app/controllers/locomotive/concerns/token_authentication_controller.rb in locomotivecms-3.3.0 vs app/controllers/locomotive/concerns/token_authentication_controller.rb in locomotivecms-3.4.0
- old
+ new
@@ -4,11 +4,11 @@
extend ActiveSupport::Concern
included do
- before_filter :unsafe_token_authentication_params
+ before_action :unsafe_token_authentication_params
def find_record_from_identifier(entity)
if Locomotive.config.unsafe_token_authentication
Locomotive::Account.where(authentication_token: params[:locomotive_account_token]).first
else
@@ -34,10 +34,10 @@
def account_required(options = {})
class_eval do
acts_as_token_authentication_handler_for Locomotive::Account
if actions = options[:except]
- skip_before_filter :authenticate_locomotive_account_from_token!, only: :create
+ skip_before_action :authenticate_locomotive_account_from_token!, only: :create
end
end
end
end