lib/grape/formatter/xml.rb in grape-0.11.0 vs lib/grape/formatter/xml.rb in grape-0.12.0

- old
+ new

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