Permalink
Browse files

Updated save without validation for Rails 3.1 compatibility

  • Loading branch information...
1 parent 27f8961 commit 32d66de50d01b1d22968587d395fe7f70e64c949 Tamal White committed Nov 18, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/authentication/by_cookie_token.rb
@@ -35,14 +35,14 @@ def remember_me_for(time)
def remember_me_until(time)
self.remember_token_expires_at = time
self.remember_token = self.class.make_token
- save(false)
+ save(:validate => false)
end
# refresh token (keeping same expires_at) if it exists
def refresh_token
if remember_token?
self.remember_token = self.class.make_token
- save(false)
+ save(:validate => false)
end
end

0 comments on commit 32d66de

Please sign in to comment.