Skip to content

Commit f9259ad

Browse files
committed
Use constant RACK_ROUTING_ARGS instead of string.
1 parent c8b657e commit f9259ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/grape/dsl/inside_route.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def present(*args)
252252
# route.route_description
253253
# end
254254
def route
255-
env['rack.routing_args'][:route_info]
255+
env[Grape::Env::RACK_ROUTING_ARGS][:route_info]
256256
end
257257

258258
# Attempt to locate the Entity class for a given object, if not given

0 commit comments

Comments
 (0)