module Authlogic::ActsAsAuthentic::SingleAccessToken::Methods::InstanceMethods
Public Instance Methods
Source
# 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
Resets the single_access_token to a random friendly token.
Source
# 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
same as reset_single_access_token
, but then saves the record.
Protected Instance Methods
Source
# File lib/authlogic/acts_as_authentic/single_access_token.rb, line 76 def change_single_access_token_with_password? self.class.change_single_access_token_with_password == true end
Source
# File lib/authlogic/acts_as_authentic/single_access_token.rb, line 72 def reset_single_access_token? single_access_token.blank? end