3 ms·
Can anyone confirm whether or not I still need to add ActionDispatch::ParamsParser::DEFAULT_PARSERS.delete(Mime::XML) to an initializer if my apps have been upd
by thomasvendetta 14y ago
Can anyone confirm whether or not I still need to add ActionDispatch::ParamsParser::DEFAULT_PARSERS.delete(Mime::XML) to an initializer if my apps have been updated to rails 3.2.11?
- TallboyOne 14y agoIm 90% certain you do not. That's just if you don't really have the mojo to update your app right now. But don't quote me on that...
- ghiculescu 14y agoUpdating to 3.2.11 is sufficient.
- tlogan 14y agoI suggest that you test it. You should get something like 'Disallowed type attribute' error if everything is installed correctly. You can use Postman Chrome extension to quickly test if your server is ok.
- mnarayan01 14y agoYou will only get that error if you upgrade to 3.2.11 (or whatever) and do not disable XML. If you disable XML, you'll just silently not parse the XML (regardless of update status).
- alxndr 14y agoIf you disable xml or yaml parsing, you'll see the raw yaml come through in the parameters hash.