Module: Agilib::TokenAuthenticationHandler::ClassMethods

Defined in:
lib/agilib/token_authenticatable/token_authentication_handler.rb

Instance Method Summary collapse

Instance Method Details

#agilib_token_authenticatable(options = {}) ⇒ Object



65
66
67
68
69
70
71
# File 'lib/agilib/token_authenticatable/token_authentication_handler.rb', line 65

def agilib_token_authenticatable(options = {})
  include Agilib::TokenAuthenticationHandlerMethods if Agilib.use_modules[:token_authenticatable].present?

  unless Agilib.use_modules[:token_authenticatable].present?
    # puts "Para usar a autenticacao por token, precisa ativar na configuracao: use_token_authenticatable = true"
  end
end