Module: SimpleTokenAuthentication::ActsAsTokenAuthenticatable
- Defined in:
- lib/simple_token_authentication/acts_as_token_authenticatable.rb
Instance Method Summary collapse
-
#acts_as_token_authenticatable(options = {}) ⇒ Object
This module ensures that no TokenAuthenticatable behaviour is added before the class actually ‘acts_as_token_authenticatable`.
Instance Method Details
#acts_as_token_authenticatable(options = {}) ⇒ Object
This module ensures that no TokenAuthenticatable behaviour is added before the class actually ‘acts_as_token_authenticatable`.
9 10 11 12 |
# File 'lib/simple_token_authentication/acts_as_token_authenticatable.rb', line 9 def acts_as_token_authenticatable( = {}) include SimpleTokenAuthentication::TokenAuthenticatable before_save :ensure_authentication_token end |