lib/devise/hooks/rememberable.rb in devise-3.2.3 vs lib/devise/hooks/rememberable.rb in devise-3.2.4

- old
+ new

@@ -1,5 +1,5 @@ -Warden::Manager.after_set_user :except => :fetch do |record, warden, options| +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