class ActionPack::XmlParser

Constants

VERSION

Public Class Methods

call(raw_post) click to toggle source
# File lib/action_pack/xml_parser.rb, line 14
def self.call(raw_post)
  Hash.from_xml(raw_post) || {}
end
register() click to toggle source
# File lib/action_pack/xml_parser.rb, line 9
def self.register
  original_parsers = ActionDispatch::Request.parameter_parsers
  ActionDispatch::Request.parameter_parsers = original_parsers.merge(Mime[:xml].symbol => self)
end