Browse files

Fix typo in README

  • Loading branch information...
1 parent 8ea4e3e commit 490c313be9593041567465b7506590b997eafb85 @remiprev committed Apr 30, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 README.md
View
3 README.md
@@ -94,7 +94,7 @@ However, you can define your own parsing method, using a response middleware. Th
```ruby
class MyCustomParser < Faraday::Response::Middleware
def on_complete(env)
- json = MultiJson.load(body, :symbolize_keys => true)
+ json = MultiJson.load(env[:body], :symbolize_keys => true)
env[:body] = {
:data => json[:data],
:errors => json[:errors],
@@ -319,7 +319,6 @@ Category.all
## Things to be done
-* Add support for collection paths of nested resources (eg. `/users/:user_id/comments` for the `Comment` model)
* Better error handling
* Better documentation

0 comments on commit 490c313

Please sign in to comment.