module MultiXml
def undasherize_keys(params)
def undasherize_keys(params) case params when Hash params.each_with_object({}) do |(key, value), hash| hash[key.to_s.tr("-", "_")] = undasherize_keys(value) hash end when Array params.collect { |value| undasherize_keys(value) } else params end end