X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/38640e0253e8984974d275f2c232eb057ba86c84..9ced230fe1cdd18190c4a296d0cc2293bfb1980a:/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?