lib/grape/router.rb in grape-1.0.1 vs lib/grape/router.rb in grape-1.0.2
- old
+ new
@@ -102,9 +102,11 @@
neighbor.allow_header,
neighbor.endpoint
) if neighbor && method == 'OPTIONS' && !cascade
route = match?(input, '*')
+ return neighbor.endpoint.call(env) if neighbor && cascade && route
+
if route
response = process_route(route, env)
return response if response && !(cascade = cascade?(response))
end