Sha256: 154ac5422b94367d5556e35a0678eb37b2d16f43a53b4155dee0516073c7b540

Contents?: true

Size: 455 Bytes

Versions: 4

Compression:

Stored size: 455 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, :request, to: :warden

      def initialize(warden)
        @warden = warden
      end

      def session
        warden.request.session
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
devise-4.3.0 lib/devise/hooks/proxy.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/devise-4.2.1/lib/devise/hooks/proxy.rb
devise-4.2.1 lib/devise/hooks/proxy.rb
devise-4.2.0 lib/devise/hooks/proxy.rb