lib/grape/router.rb in grape-1.4.0 vs lib/grape/router.rb in grape-1.5.0
- old
+ new
@@ -45,10 +45,10 @@
map[route.request_method] << route
end
def associate_routes(pattern, **options)
@neutral_regexes << Regexp.new("(?<_#{@neutral_map.length}>)#{pattern.to_regexp}")
- @neutral_map << Grape::Router::AttributeTranslator.new(options.merge(pattern: pattern, index: @neutral_map.length))
+ @neutral_map << Grape::Router::AttributeTranslator.new(**options, pattern: pattern, index: @neutral_map.length)
end
def call(env)
with_optimization do
response, route = identity(env)