lib/hanami/router/recognized_route.rb in hanami-router-2.0.0.alpha6 vs lib/hanami/router/recognized_route.rb in hanami-router-2.0.0.beta1
- old
+ new
@@ -39,26 +39,26 @@
# @return [String]
#
# @since 0.5.0
# @api public
def verb
- @env["REQUEST_METHOD"]
+ @env[::Rack::REQUEST_METHOD]
end
# Relative URL (path)
#
# @return [String]
#
# @since 0.7.0
# @api public
def path
- @env["PATH_INFO"]
+ @env[::Rack::PATH_INFO]
end
# @since 0.7.0
# @api public
def params
- @env["router.params"]
+ @env[Router::PARAMS]
end
# @since 0.7.0
# @api public
def endpoint