lib/devise/strategies/rememberable.rb in devise-0.9.2 vs lib/devise/strategies/rememberable.rb in devise-1.0.0

- old
+ new

@@ -8,10 +8,10 @@ # authenticatable. class Rememberable < Devise::Strategies::Base # A valid strategy for rememberable needs a remember token in the cookies. def valid? - super && remember_me_cookie.present? + remember_me_cookie.present? && mapping.to.respond_to?(:serialize_from_cookie) end # To authenticate a user we deserialize the cookie and attempt finding # the record in the database. If the attempt fails, we pass to another # strategy handle the authentication. \ No newline at end of file