Skip to content

Commit

Permalink
Merge pull request ruby-grape#1127 from marshall-lee/fix_rack_route_args
Browse files Browse the repository at this point in the history
Use constant RACK_ROUTING_ARGS instead of string.
  • Loading branch information
dblock committed Aug 26, 2015
2 parents cc1e46f + f9259ad commit 079b2aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/grape/dsl/inside_route.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 079b2aa

Please sign in to comment.