diff --git a/lib/grape/dsl/inside_route.rb b/lib/grape/dsl/inside_route.rb index 366ba786a1..cec9ed188f 100644 --- a/lib/grape/dsl/inside_route.rb +++ b/lib/grape/dsl/inside_route.rb @@ -252,7 +252,7 @@ def present(*args) # route.route_description # end def route - env['rack.routing_args'][:route_info] + env[Grape::Env::RACK_ROUTING_ARGS][:route_info] end # Attempt to locate the Entity class for a given object, if not given