X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/7b89dc63496de0b6131a93c57d283ebb4490804b..898cc828dd1f1167f85abbf35c8e3f0ed640ac1e:/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?