Instantly share code, notes, and snippets.
This is a really nice gist for a really icky problem without a good solution on rails 3, so thumbs up! But in order to solve the issue for parameters wrapped in the model name I suggest modifying it to:
body = request.body.read
unless body == ""
unmunged_body = ActiveSupport::JSON.decode(body)