Skip to content

Commit

Permalink
fix for rails 3.1 with backwards compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Klocker committed Jan 25, 2012
1 parent a9e7ed0 commit a3c736d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/oauth/request_proxy/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def oauth_header(options = {})
end

def query_string_blank?
if uri = request.request_uri
if uri = request.respond_to?(:request_uri) ? request.request_uri : request.url
uri.split('?', 2)[1].nil?
else
request.query_string.blank?
Expand Down

0 comments on commit a3c736d

Please sign in to comment.