]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/oauth_token.rb
Replace conditional comments with browser detection
[rails.git] / app / models / oauth_token.rb
index fd332723f25c07333cf2ca5d2483ea671887f121..5eeda48ba87ae7e13bb5ef923435f925c03bca6d 100644 (file)
@@ -52,7 +52,7 @@ class OauthToken < ActiveRecord::Base
   end
 
   def invalidate!
-    update_attributes(:invalidated_at => Time.now)
+    update(:invalidated_at => Time.now)
   end
 
   def authorized?