X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ef7f3d800cbdd49b692df10d312e5fd880e2e938..66fccfdbcf10626c4b7676f7e44b8ba78305cb6b:/app/models/request_token.rb diff --git a/app/models/request_token.rb b/app/models/request_token.rb index 0d55375ff..a1b30abb3 100644 --- a/app/models/request_token.rb +++ b/app/models/request_token.rb @@ -17,7 +17,7 @@ class RequestToken < OauthToken params = { :user => user, :client_application => client_application } # copy the permissions from the authorised request token to the access token client_application.permissions.each do |p| - params[p] = read_attribute(p) + params[p] = self[p] end access_token = AccessToken.create(params) @@ -35,7 +35,7 @@ class RequestToken < OauthToken end def oob? - callback_url.nil? || callback_url.downcase == 'oob' + callback_url.nil? || callback_url.downcase == "oob" end def oauth10?