Class: UserSession

Inherits:
Authlogic::Session::Base
  • Object
show all
Defined in:
lib/generators/authlogic/complete/templates/user_session.rb

Instance Method Summary collapse

Instance Method Details

#to_keyObject



3
4
5
# File 'lib/generators/authlogic/complete/templates/user_session.rb', line 3

def to_key
  new_record? ? nil : [ self.send(self.class.primary_key) ]
end