Module: SimpleTokenAuthentication::ActsAsTokenAuthenticationHandler::ClassMethods
- Defined in:
- lib/simple_token_authentication/acts_as_token_authentication_handler.rb
Instance Method Summary collapse
- #acts_as_token_authentication_handler ⇒ Object
- #acts_as_token_authentication_handler_for(entity, options = {}) ⇒ Object
Instance Method Details
#acts_as_token_authentication_handler ⇒ Object
82 83 84 85 |
# File 'lib/simple_token_authentication/acts_as_token_authentication_handler.rb', line 82 def acts_as_token_authentication_handler ActiveSupport::Deprecation.warn "`acts_as_token_authentication_handler()` is deprecated and may be removed from future releases, use `acts_as_token_authentication_handler_for(User)` instead.", caller acts_as_token_authentication_handler_for User end |
#acts_as_token_authentication_handler_for(entity, options = {}) ⇒ Object
77 78 79 80 |
# File 'lib/simple_token_authentication/acts_as_token_authentication_handler.rb', line 77 def acts_as_token_authentication_handler_for(entity, = {}) SimpleTokenAuthentication::ActsAsTokenAuthenticationHandlerMethods.set_entity entity include SimpleTokenAuthentication::ActsAsTokenAuthenticationHandlerMethods end |