lib/grape/formatter/xml.rb in grape-0.6.1 vs lib/grape/formatter/xml.rb in grape-0.7.0
- old
+ new
@@ -1,14 +1,12 @@
module Grape
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
end