Skip to content
Browse files

Fixed deprecated returning to use tap instead on the Connection.url_for

Signed-off-by: designwaves <brian.bokor@designwaves.com>
  • Loading branch information...
1 parent 5e6f375 commit 2b2c9800d7ebb9379c7eaba302a0870f1bb1d2c0 @bokor bokor committed Jan 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/aws/s3/connection.rb
View
2 lib/aws/s3/connection.rb
@@ -63,7 +63,7 @@ def url_for(path, options = {})
path = self.class.prepare_path(path)
request = request_method(:get).new(path, {})
query_string = query_string_authentication(request, options)
- returning "#{protocol(options)}#{http.address}#{port_string}#{path}" do |url|
+ "#{protocol(options)}#{http.address}#{port_string}#{path}".tap do |url|
url << "?#{query_string}" if authenticate
end
end

0 comments on commit 2b2c980

Please sign in to comment.
Something went wrong with that request. Please try again.