Module: SimpleTokenAuthentication::ActsAsTokenAuthenticatable::ClassMethods

Defined in:
lib/simple_token_authentication/acts_as_token_authenticatable.rb

Instance Method Summary collapse

Instance Method Details

#acts_as_token_authenticatable(options = {}) ⇒ Object


44
45
46
# File 'lib/simple_token_authentication/acts_as_token_authenticatable.rb', line 44

def acts_as_token_authenticatable(options = {})
  before_save :ensure_authentication_token
end