Sha256: 5a26a9669a3e19cb451394ee95b6973e9b711940268877458d67de3fab675d91
Contents?: true
Size: 517 Bytes
Versions: 16
Compression:
Stored size: 517 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
16 entries across 16 versions & 4 rubygems