thingspeak/app/models/user_session.rb

7 lines
176 B
Ruby
Raw Normal View History

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