2011-03-27 22:56:15 +02:00
|
|
|
class UserSession < Authlogic::Session::Base
|
2014-02-17 18:05:39 +01:00
|
|
|
find_by_login_method :find_by_login_or_email
|
2011-03-27 22:56:15 +02:00
|
|
|
|
|
|
|
def to_key
|
|
|
|
new_record? ? nil : [ self.send(self.class.primary_key) ]
|
|
|
|
end
|
2014-02-17 18:05:39 +01:00
|
|
|
end
|