Permalink
Browse files

fix for rails 3.1 with backwards compatibility

  • Loading branch information...
1 parent a9e7ed0 commit a3c736d1eca65b5f5fdf9f7e95638198dadd4a5f Christoph Klocker committed Jan 25, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/oauth/request_proxy/base.rb
@@ -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?

0 comments on commit a3c736d

Please sign in to comment.