Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

change `yield` position in FaradayStack.build

  • Loading branch information...
commit 14d1dd34474dc349e0436af2111c8ae8f6d02751 1 parent 82d3b15
@mislav authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/faraday_stack.rb
View
2  lib/faraday_stack.rb
@@ -25,10 +25,10 @@ def self.build(url = nil, options = {})
Faraday::Connection.new(url, options) do |builder|
builder.request :url_encoded
builder.request :json
+ yield builder if block_given?
builder.use ResponseJSON, :content_type => 'application/json'
builder.use ResponseXML, :content_type => /[+\/]xml$/
builder.response :raise_error
- yield builder if block_given?
builder.adapter Faraday.default_adapter
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.