blob: 81d70768f30f162db0be00170345be2b53ef82af (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
module Warden
# Setup Session Serialization
class SessionSerializer
def serialize(record)
[record.class.name, record.id]
end
def deserialize(keys)
klass, id = keys
klass.constantize.find(id)
end
end
end
|