diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2009-04-22 16:48:58 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-04-22 16:48:58 -0700 |
commit | 6fee981fa4ea2654f825c58b58327fc15fddf3a6 (patch) | |
tree | 1e6f5b94f25e72258cde8aee63fa9f12ba7d476e /actionpack | |
parent | ab321268f86d9013cbd4ecd0b5f46e7b05ec55a9 (diff) | |
download | rails-6fee981fa4ea2654f825c58b58327fc15fddf3a6.tar.gz rails-6fee981fa4ea2654f825c58b58327fc15fddf3a6.tar.bz2 rails-6fee981fa4ea2654f825c58b58327fc15fddf3a6.zip |
Opt in to JSON
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_dispatch/middleware/params_parser.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/params_parser.rb b/actionpack/lib/action_dispatch/middleware/params_parser.rb index 6df572268c..abaee2829e 100644 --- a/actionpack/lib/action_dispatch/middleware/params_parser.rb +++ b/actionpack/lib/action_dispatch/middleware/params_parser.rb @@ -1,3 +1,5 @@ +require 'active_support/json' + module ActionDispatch class ParamsParser ActionController::Base.param_parsers[Mime::XML] = :xml_simple |