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