Skip to content

Commit 079b2aa

Browse files
committed
Merge pull request #1127 from marshall-lee/fix_rack_route_args
Use constant RACK_ROUTING_ARGS instead of string.
2 parents cc1e46f + f9259ad commit 079b2aa

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)