lib/devise/hooks/forgetable.rb in devise-1.1.2 vs lib/devise/hooks/forgetable.rb in devise-1.1.3
- old
+ new
@@ -3,9 +3,9 @@
# remembered again. Notice that we forget the user unless the record is frozen.
# This avoids forgetting deleted users.
Warden::Manager.before_logout do |record, warden, options|
if record.respond_to?(:forget_me!)
record.forget_me! unless record.frozen?
- options = record.cookie_domain? ? { :domain => record.cookie_domain } : {}
- warden.cookies.delete("remember_#{options[:scope]}_token", options)
+ cookie_options = record.cookie_domain? ? { :domain => record.cookie_domain } : {}
+ warden.cookies.delete("remember_#{options[:scope]}_token", cookie_options)
end
end