Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update to reflect middlware name change in 0.2.0

Faraday::Response::MultiJson -> Faraday::Response::Parse
  • Loading branch information...
commit 412a11d249f08ab6951e80f535dbecf5d60aad22 1 parent 4eee148
@sferik sferik authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 README.md
View
6 README.md
@@ -14,7 +14,7 @@ Let's decode the response body with [MultiJson](http://github.com/intridea/multi
conn = Faraday::Connection.new(:url => 'http://api.twitter.com/1') do |builder|
builder.adapter Faraday.default_adapter
- builder.use Faraday::Response::MultiJson
+ builder.use Faraday::Response::Parse
end
resp = conn.get do |req|
@@ -30,7 +30,7 @@ Want to ditch the brackets and use dot notation? [Mashify](http://github.com/int
conn = Faraday::Connection.new(:url => 'http://api.twitter.com/1') do |builder|
builder.adapter Faraday.default_adapter
- builder.use Faraday::Response::MultiJson
+ builder.use Faraday::Response::Parse
builder.use Faraday::Response::Mashify
end
@@ -40,4 +40,4 @@ Want to ditch the brackets and use dot notation? [Mashify](http://github.com/int
u = resp.body
u.name
- # => "Wynn Netherland"
+ # => "Wynn Netherland"
Please sign in to comment.
Something went wrong with that request. Please try again.