Class: UserSession
- Inherits:
-
Authlogic::Session::Base
- Object
- Authlogic::Session::Base
- UserSession
- Defined in:
- app/models/user_session.rb
Instance Method Summary collapse
-
#to_key ⇒ Object
TODO: This will likely be unnecessary in a future version of Authlogic.
Instance Method Details
#to_key ⇒ Object
TODO: This will likely be unnecessary in a future version of Authlogic. Rails 3 renamed key -> to_key
3 4 5 |
# File 'app/models/user_session.rb', line 3 def to_key new_record? ? nil : [ self.send(self.class.primary_key) ] end |