Module: Authlogic::ActsAsAuthentic::SingleAccessToken::Methods::InstanceMethods

Defined in:
lib/authlogic/acts_as_authentic/single_access_token.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#reset_single_access_tokenObject

Resets the single_access_token to a random friendly token.



60
61
62
# File 'lib/authlogic/acts_as_authentic/single_access_token.rb', line 60

def reset_single_access_token
  self.single_access_token = Authlogic::Random.friendly_token
end

#reset_single_access_token!Object

same as reset_single_access_token, but then saves the record.



65
66
67
68
# File 'lib/authlogic/acts_as_authentic/single_access_token.rb', line 65

def reset_single_access_token!
  reset_single_access_token
  save_without_session_maintenance
end