X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/7b89dc63496de0b6131a93c57d283ebb4490804b..ae0177fbe61d7d02e3c6b441bd395fff6fd96a18:/app/models/oauth_token.rb diff --git a/app/models/oauth_token.rb b/app/models/oauth_token.rb index b38fe0ec0..c9595e870 100644 --- a/app/models/oauth_token.rb +++ b/app/models/oauth_token.rb @@ -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?