Skip to content

Instantly share code, notes, and snippets.

@arbarlow
Last active December 10, 2015 20:59
Show Gist options
  • Select an option

  • Save arbarlow/4492308 to your computer and use it in GitHub Desktop.

Select an option

Save arbarlow/4492308 to your computer and use it in GitHub Desktop.
# For rails > 3
ActionDispatch::ParamsParser::DEFAULT_PARSERS.delete(Mime::YAML)
ActiveSupport::XmlMini::PARSING.delete("symbol")
ActiveSupport::XmlMini::PARSING.delete("yaml")
# Rails 2.x
# For 2.x apps, check whether your app sets
# `ActionController::Base.param_parsers[Mime::YAML] = :yaml` and snip that out if it does.
ActiveSupport::CoreExtensions::Hash::Conversions::XML_PARSING.delete('symbol')
ActiveSupport::CoreExtensions::Hash::Conversions::XML_PARSING.delete('yaml')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment