Permalink
Browse files

Update to reflect middlware name change in 0.2.0

Faraday::Response::MultiJson -> Faraday::Response::Parse
  • Loading branch information...
1 parent 4eee148 commit 412a11d249f08ab6951e80f535dbecf5d60aad22 @sferik sferik committed Nov 3, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 README.md
View
@@ -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"

0 comments on commit 412a11d

Please sign in to comment.