lib/grape/router/route.rb in grape-0.17.0 vs lib/grape/router/route.rb in grape-0.18.0

- old
+ new

@@ -55,14 +55,14 @@ def route_path warn_route_methods(:path, caller(1).shift) pattern.path end - def initialize(method, pattern, options = {}) + def initialize(method, pattern, **options) @suffix = options[:suffix] @options = options.merge(method: method.to_s.upcase) - @pattern = Pattern.new(pattern, options) - @translator = AttributeTranslator.new(options.merge(request_method: method.to_s.upcase)) + @pattern = Pattern.new(pattern, **options) + @translator = AttributeTranslator.new(**options, request_method: method.to_s.upcase) end def exec(env) @app.call(env) end