X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/5bd428015ad49322f536d7fbc3500480b96e19c0..a770d020f9cbd6fcf2934707d08d7fe35e592b9c:/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?