lib/devise/hooks/rememberable.rb in devise-4.3.0 vs lib/devise/hooks/rememberable.rb in devise-4.4.0
- old
+ new
@@ -1,4 +1,6 @@
+# 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)