Module: Locomotive::Concerns::TokenAuthenticationController::ClassMethods

Defined in:
app/controllers/locomotive/concerns/token_authentication_controller.rb

Instance Method Summary collapse

Instance Method Details

#account_required(options = {}) ⇒ Object



34
35
36
37
38
39
40
41
42
# File 'app/controllers/locomotive/concerns/token_authentication_controller.rb', line 34

def (options = {})
  class_eval do
    acts_as_token_authentication_handler_for Locomotive::

    if actions = options[:except]
      skip_before_action :authenticate_locomotive_account_from_token!, only: :create
    end
  end
end