lib/grape/formatter/xml.rb in grape-1.5.3 vs lib/grape/formatter/xml.rb in grape-1.6.0

- old
+ new

@@ -4,9 +4,10 @@ module Formatter module Xml class << self def call(object, _env) return object.to_xml if object.respond_to?(:to_xml) + raise Grape::Exceptions::InvalidFormatter.new(object.class, 'xml') end end end end