]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/oauth_token.rb
Update some print styles for Leaflet
[rails.git] / app / models / oauth_token.rb
index b38fe0ec0432707385af5f017349a834b24c8e7b..c9595e870f9f743ef315ceb47b214b24545116c0 100644 (file)
@@ -14,7 +14,9 @@ class OauthToken < ActiveRecord::Base
   end
   
   def invalidate!
-    update_attribute(:invalidated_at, Time.now)
+    update_attributes({
+      :invalidated_at => Time.now
+    }, :without_protection => true)
   end
   
   def authorized?