Sha256: 154acc2be4989bb3713d4257db286f12ac6dead8efa06010dda7b71512c6b6a3

Contents?: true

Size: 486 Bytes

Versions: 22

Compression:

Stored size: 486 Bytes

Contents

# frozen_string_literal: true

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

22 entries across 22 versions & 3 rubygems

Version Path
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/devise-4.9.4/lib/devise/hooks/proxy.rb
devise-4.9.4 lib/devise/hooks/proxy.rb
devise-4.9.3 lib/devise/hooks/proxy.rb
devise-4.9.2 lib/devise/hooks/proxy.rb
devise-4.9.1 lib/devise/hooks/proxy.rb
devise-4.9.0 lib/devise/hooks/proxy.rb
devise-4.8.1 lib/devise/hooks/proxy.rb
date_n_time_picker_activeadmin-0.1.2 vendor/bundle/ruby/2.6.0/gems/devise-4.8.0/lib/devise/hooks/proxy.rb
date_n_time_picker_activeadmin-0.1.1 vendor/bundle/ruby/2.6.0/gems/devise-4.8.0/lib/devise/hooks/proxy.rb
devise-4.8.0 lib/devise/hooks/proxy.rb
devise-4.7.3 lib/devise/hooks/proxy.rb
devise-4.7.2 lib/devise/hooks/proxy.rb
devise-4.7.1 lib/devise/hooks/proxy.rb
devise-4.7.0 lib/devise/hooks/proxy.rb
devise-4.6.2 lib/devise/hooks/proxy.rb
devise-4.6.1 lib/devise/hooks/proxy.rb
devise-4.6.0 lib/devise/hooks/proxy.rb
devise-4.5.0 lib/devise/hooks/proxy.rb
devise-4.4.3 lib/devise/hooks/proxy.rb
devise-4.4.2 lib/devise/hooks/proxy.rb