Disabled automatic parsing of XML to a hash in request bodies for a modest 15% speedup.
authorMatt Amos <zerebubuth@gmail.com>
Thu, 21 May 2009 23:48:34 +0000 (23:48 +0000)
committerMatt Amos <zerebubuth@gmail.com>
Thu, 21 May 2009 23:48:34 +0000 (23:48 +0000)
config/initializers/action_controller.rb [new file with mode: 0644]

diff --git a/config/initializers/action_controller.rb b/config/initializers/action_controller.rb
new file mode 100644 (file)
index 0000000..3feb621
--- /dev/null
@@ -0,0 +1,3 @@
+# Stop action controller from automatically parsing XML in request bodies
+ActionController::Base.param_parsers.delete Mime::XML
+