1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Allow ParamsParser to parse YAML from the request body IO directly

Signed-off-by: Joshua Peek <josh@joshpeek.com>
This commit is contained in:
Brian Lopez 2009-05-17 16:09:28 -05:00 committed by Joshua Peek
parent 01d7acd11d
commit b0de061e7b

View file

@ -34,7 +34,7 @@ module ActionDispatch
when :xml_simple, :xml_node
request.body.size == 0 ? {} : Hash.from_xml(request.body).with_indifferent_access
when :yaml
YAML.load(request.raw_post)
YAML.load(request.body)
when :json
if request.body.size == 0
{}