Sha256: f92fee198be65ae50a9d821c5d5078fc32991a67d0dd248fd50f173e440c94bd

Contents?: true

Size: 282 Bytes

Versions: 78

Compression:

Stored size: 282 Bytes

Contents

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

Version data entries

78 entries across 72 versions & 10 rubygems

Version Path
devise-3.0.4 lib/devise/hooks/rememberable.rb
devise-2.2.8 lib/devise/hooks/rememberable.rb
loyal_devise-2.2.6 lib/devise/hooks/rememberable.rb
devise-2.0.6 lib/devise/hooks/rememberable.rb
devise-2.1.4 lib/devise/hooks/rememberable.rb
devise-2.2.7 lib/devise/hooks/rememberable.rb
devise-3.0.3 lib/devise/hooks/rememberable.rb
loyal_devise-2.2.5 lib/devise/hooks/rememberable.rb
devise-2.2.6 lib/devise/hooks/rememberable.rb
devise-3.0.2 lib/devise/hooks/rememberable.rb
devise-3.0.1 lib/devise/hooks/rememberable.rb
devise-2.2.5 lib/devise/hooks/rememberable.rb
loyal_devise-2.1.10 lib/devise/hooks/rememberable.rb
loyal_devise-2.1.7 lib/devise/hooks/rememberable.rb
loyal_devise-2.1.6 lib/devise/hooks/rememberable.rb
devise-3.0.0 lib/devise/hooks/rememberable.rb
loyal_devise-2.1.5 lib/devise/hooks/rememberable.rb
loyal_devise-2.1.4 lib/devise/hooks/rememberable.rb
loyal_devise-2.1.3 lib/devise/hooks/rememberable.rb
devise-3.0.0.rc lib/devise/hooks/rememberable.rb