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

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

Instance Method Summary collapse

Instance Method Details

#reset_single_access_tokenObject

Resets the single_access_token to a random friendly token.



43
44
45
# File 'lib/authlogic/acts_as_authentic/single_access_token.rb', line 43

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.



48
49
50
51
# File 'lib/authlogic/acts_as_authentic/single_access_token.rb', line 48

def reset_single_access_token!
  reset_single_access_token
  save_without_session_maintenance
end