Skip to content

Conversation

@tedkulp
Copy link

@tedkulp tedkulp commented Jun 5, 2011

This allows Grape to work with ActiveResource in JSON mode. If the body contains JSON, it's contents will be added to the params hash just like if they came over the GET query string or as regular params.

Ted Kulp added 2 commits June 5, 2011 11:54
This allows Grape to work with ActiveResource in
JSON mode. If the body contains JSON, it's
contents will be added to the params hash just
like if they came over the GET query string or as
regular params.
Didn't account for regular POST content being in
the body on some requests, even if JSON is
expected as the result. It now fails gracefully.
@mbleigh
Copy link
Contributor

mbleigh commented Jul 15, 2011

Can you update this to merge cleanly with the latest master? If so, I'll accept it.

@tedkulp
Copy link
Author

tedkulp commented Jul 15, 2011

There you go. All tests pass, so I think it should be good. Thanks!

mbleigh pushed a commit that referenced this pull request Jul 15, 2011
Ability to handle incoming JSON in the body
@mbleigh mbleigh merged commit 3d1766a into ruby-grape:master Jul 15, 2011
mbleigh pushed a commit that referenced this pull request Dec 5, 2011
Ability to handle incoming JSON in the body
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants