aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2013-01-08 13:50:22 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2013-01-08 13:50:38 -0800
commite80546cdec56a9c3fcaf6217cba08a02d789d2bc (patch)
treedd239100fa33cd8b17eda850be84376697a97eba /actionpack/lib/action_dispatch
parent6b126e2383bde11f83e5daf4e4fee05581d16ba6 (diff)
downloadrails-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.rb2
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)