Skip to content

Commit

Permalink
Fixed deprecated returning to use tap instead on the Connection.url_for
Browse files Browse the repository at this point in the history
Signed-off-by: designwaves <brian.bokor@designwaves.com>
  • Loading branch information
bokor committed Jan 16, 2012
1 parent 5e6f375 commit 2b2c980
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/aws/s3/connection.rb
Expand Up @@ -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
Expand Down

0 comments on commit 2b2c980

Please sign in to comment.