Skip to content

Instantly share code, notes, and snippets.

@Sutto
Last active December 10, 2015 22:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sutto/4499361 to your computer and use it in GitHub Desktop.
Save Sutto/4499361 to your computer and use it in GitHub Desktop.
if defined?(ActionDispatch); begin; ActionDispatch::ParamsParser::DEFAULT_PARSERS.delete(Mime::XML); rescue; end; end
if defined?(ActionController::Base) && ActionController::Base.respond_to?(:param_parsers); begin; ActionController::Base.param_parsers.delete(Mime::XML); rescue; end; end
if defined?(ActionDispatch); begin; ActionDispatch::ParamsParser::DEFAULT_PARSERS.delete(Mime::JSON); rescue; end; end
if defined?(ActionController::Base) && ActionController::Base.respond_to?(:param_parsers); begin; ActionController::Base.param_parsers.delete(Mime::JSON); rescue; end; end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment