Sha256: 2bce4eec9c0c59ec6ebfdc7e4c70a6b42b1630bbbabadfb4aa3f117b63fbbdc4

Contents?: true

Size: 451 Bytes

Versions: 35

Compression:

Stored size: 451 Bytes

Contents

module Devise
  module Hooks
    # A small warden proxy so we can remember, forget and
    # sign out users from hooks.
    class Proxy #:nodoc:
      include Devise::Controllers::Rememberable
      include Devise::Controllers::SignInOut

      attr_reader :warden
      delegate :cookies, :env, to: :warden

      def initialize(warden)
        @warden = warden
      end

      def session
        warden.request.session
      end
    end
  end
end

Version data entries

35 entries across 35 versions & 7 rubygems

Version Path
devise-3.5.10 lib/devise/hooks/proxy.rb
devise-4.0.3 lib/devise/hooks/proxy.rb
devise-4.1.1 lib/devise/hooks/proxy.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/devise-4.1.0/lib/devise/hooks/proxy.rb
devise-4.1.0 lib/devise/hooks/proxy.rb
devise-3.5.9 lib/devise/hooks/proxy.rb
devise-4.0.2 lib/devise/hooks/proxy.rb
devise-4.0.1 lib/devise/hooks/proxy.rb
devise-3.5.8 lib/devise/hooks/proxy.rb
devise-3.5.7 lib/devise/hooks/proxy.rb
devise-4.0.0 lib/devise/hooks/proxy.rb
devise-4.0.0.rc2 lib/devise/hooks/proxy.rb
devise-4.0.0.rc1 lib/devise/hooks/proxy.rb
devise-3.5.6 lib/devise/hooks/proxy.rb
devise-3.5.5 lib/devise/hooks/proxy.rb
devise-3.5.4 lib/devise/hooks/proxy.rb
devise-3.5.3 lib/devise/hooks/proxy.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/devise-3.5.2/lib/devise/hooks/proxy.rb
devise-3.5.2 lib/devise/hooks/proxy.rb
devise-3.5.1 lib/devise/hooks/proxy.rb