X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ef7f3d800cbdd49b692df10d312e5fd880e2e938..faf4c5aa7a3c75b89d32b7d2205d004f9aa99cb7:/app/models/request_token.rb diff --git a/app/models/request_token.rb b/app/models/request_token.rb index 0d55375ff..c0f019486 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.casecmp("oob").zero? end def oauth10?