diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-01-08 13:50:22 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-01-08 13:50:38 -0800 |
commit | e80546cdec56a9c3fcaf6217cba08a02d789d2bc (patch) | |
tree | dd239100fa33cd8b17eda850be84376697a97eba /actionpack/lib/action_dispatch | |
parent | 6b126e2383bde11f83e5daf4e4fee05581d16ba6 (diff) | |
download | rails-e80546cdec56a9c3fcaf6217cba08a02d789d2bc.tar.gz rails-e80546cdec56a9c3fcaf6217cba08a02d789d2bc.tar.bz2 rails-e80546cdec56a9c3fcaf6217cba08a02d789d2bc.zip |
remove yaml as a param parser :burn:
If you revert this commit, I will hunt you down, I will make you regret
ever terrible thing you've ever done, I will make you suffer.
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/params_parser.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/params_parser.rb b/actionpack/lib/action_dispatch/middleware/params_parser.rb index 951f28f535..a3291bb7ad 100644 --- a/actionpack/lib/action_dispatch/middleware/params_parser.rb +++ b/actionpack/lib/action_dispatch/middleware/params_parser.rb @@ -49,8 +49,6 @@ module ActionDispatch when :xml_simple, :xml_node data = request.deep_munge(Hash.from_xml(request.body.read) || {}) data.with_indifferent_access - when :yaml - YAML.load(request.raw_post) when :json data = request.deep_munge ActiveSupport::JSON.decode(request.body) data = {:_json => data} unless data.is_a?(Hash) |