Sha256: d4c1648015e77c51fcdd629f1b59f1c95777d40e9537499b5b6af1cb8028e3ce
Contents?: true
Size: 518 Bytes
Versions: 1
Compression:
Stored size: 518 Bytes
Contents
module Warden::Mixins::Common def request @request ||= env['action_controller.rescue.request'] end def reset_session! raw_session.inspect # why do I have to inspect it to get it to clear? raw_session.clear end def response @response ||= env['action_controller.rescue.response'] end end class Warden::SessionSerializer def serialize(record) [record.class, record.id] end def deserialize(keys) klass, id = keys klass.find(:first, :conditions => { :id => id }) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mongoid-devise-1.0.1 | lib/devise/rails/warden_compat.rb |