My application defines a custom Mime type for its Rest interface. So I register it in the mime_types.rb
initializer:
Mime::Type.register "application/vnd.example.app-v1+xml", :xml_v1
and Rails correctly handles the respond_to
blocks in the controllers.
However, I still need to tell Rails that incoming requests should be parsed as an XML, using ActionDispatch::ParamsParser. I just don't know how to use it inside an initializer. What's the correct way?