photomix/app/models/user_session.rb

7 lines
210 B
Ruby
Raw Normal View History

2009-05-22 16:14:07 +02:00
class UserSession < Authlogic::Session::Base
# configuration here, see documentation for sub modules of Authlogic::Session
def to_key
new_record? ? nil : [ self.send(self.class.primary_key) ]
end
end