Class: UserSession

Inherits:
Authlogic::Session::Base
  • Object
show all
Defined in:
app/models/user_session.rb

Instance Method Summary collapse

Instance Method Details

#to_keyObject

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