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