Fixe a bug in authlogic.

See https://github.com/binarylogic/authlogic/issues/issue/101
This commit is contained in:
Rémi Vanicat 2010-11-17 17:22:01 +01:00
parent 63c0ae35c0
commit 4c3dbcecb6

View file

@ -1,3 +1,6 @@
class UserSession < Authlogic::Session::Base
# configuration here, see documentation for sub modules of Authlogic::Session
end
def to_key
new_record? ? nil : [ self.send(self.class.primary_key) ]
end
end