Sha256: 0674378a6ea4ff9b289ced26dd694edb867c55d82fcbf01ce85fdd5bde1e3510

Contents?: true

Size: 324 Bytes

Versions: 22

Compression:

Stored size: 324 Bytes

Contents

# frozen_string_literal: true

Warden::Manager.after_set_user except: :fetch do |record, warden, options|
  scope = options[:scope]
  if record.respond_to?(:remember_me) && options[:store] != false &&
     record.remember_me && warden.authenticated?(scope)
    Devise::Hooks::Proxy.new(warden).remember_me(record)
  end
end

Version data entries

22 entries across 22 versions & 3 rubygems

Version Path
devise-4.4.1 lib/devise/hooks/rememberable.rb
devise-4.4.0 lib/devise/hooks/rememberable.rb