Class: Warden::SessionSerializer
- Inherits:
-
Object
- Object
- Warden::SessionSerializer
- Defined in:
- lib/doorman/base.rb
Instance Method Summary collapse
Instance Method Details
#deserialize(id) ⇒ Object
10 |
# File 'lib/doorman/base.rb', line 10 def deserialize(id); User.get(id); end |
#serialize(user) ⇒ Object
9 |
# File 'lib/doorman/base.rb', line 9 def serialize(user); user.id; end |