lib/grape/formatter/base.rb in grape-0.11.0 vs lib/grape/formatter/base.rb in grape-0.12.0
- old
+ new
@@ -16,10 +16,10 @@
def formatter_for(api_format, options = {})
spec = formatters(options)[api_format]
case spec
when nil
- lambda { |obj, env| obj }
+ ->(obj, _env) { obj }
when Symbol
method(spec)
else
spec
end