]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/oauth_controller.rb
Get tests passing. Use factories instead of fixtures.
[rails.git] / app / controllers / oauth_controller.rb
index 2e847fcd5915e9b954c85ae5c87774a55e87e0ff..4bb129ba442c16bf4df6cd1758a866f4f04dcdc6 100644 (file)
@@ -49,7 +49,7 @@ class OauthController < ApplicationController
                        else
                          @token.oob? ? @token.client_application.callback_url : @token.callback_url
                        end
-        @redirect_url = URI.parse(callback_url) unless callback_url.blank?
+        @redirect_url = URI.parse(callback_url) if callback_url.present?
 
         if @redirect_url.to_s.blank?
           render :action => "authorize_success"