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

Version Path
dcu-devise-1.0.7 lib/devise/rails/warden_compat.rb
devise-1.0.8 lib/devise/rails/warden_compat.rb
ivanvc-devise-1.0.7.1 lib/devise/rails/warden_compat.rb
devise-1.0.7 lib/devise/rails/warden_compat.rb
devise-1.0.6 lib/devise/rails/warden_compat.rb
devise-1.0.5 lib/devise/rails/warden_compat.rb
devise-1.0.4 lib/devise/rails/warden_compat.rb
devise-1.0.3 lib/devise/rails/warden_compat.rb
glennr-devise-1.0.1.1 lib/devise/rails/warden_compat.rb
glennr-devise-1.0.1 lib/devise/rails/warden_compat.rb
devise-1.0.2 lib/devise/rails/warden_compat.rb
devise-1.0.1 lib/devise/rails/warden_compat.rb
devise-1.0.0 lib/devise/rails/warden_compat.rb
devise-0.9.2 lib/devise/rails/warden_compat.rb
devise-0.9.1 lib/devise/rails/warden_compat.rb
devise-0.9.0 lib/devise/rails/warden_compat.rb