]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/oauth_token.rb
Replace attr_accessible with strong parameters
[rails.git] / app / models / oauth_token.rb
index c9595e870f9f743ef315ceb47b214b24545116c0..f9255e56c32c2321ae90b077677f15d28e3a061c 100644 (file)
@@ -14,9 +14,7 @@ class OauthToken < ActiveRecord::Base
   end
   
   def invalidate!
-    update_attributes({
-      :invalidated_at => Time.now
-    }, :without_protection => true)
+    update_attributes(:invalidated_at => Time.now)
   end
   
   def authorized?