lib/grape/middleware/base.rb in grape-0.9.0 vs lib/grape/middleware/base.rb in grape-0.10.0

- old
+ new

@@ -51,12 +51,12 @@ def content_type content_type_for(env['api.format'] || options[:format]) || 'text/html' end def mime_types - content_types.each_with_object({}) { |(k, v), types_without_params| + content_types.each_with_object({}) do |(k, v), types_without_params| types_without_params[k] = v.split(';').first - }.invert + end.invert end end end end