X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/cb87f02642d0097ebc067ca1f9371dde274a41e3..17e6e69c39072d8e6cb316b75b311e89c92cca45:/app/models/oauth_token.rb diff --git a/app/models/oauth_token.rb b/app/models/oauth_token.rb index fd332723f..5eeda48ba 100644 --- a/app/models/oauth_token.rb +++ b/app/models/oauth_token.rb @@ -52,7 +52,7 @@ class OauthToken < ActiveRecord::Base end def invalidate! - update_attributes(:invalidated_at => Time.now) + update(:invalidated_at => Time.now) end def authorized?