lib/grape/middleware/versioner/accept_version_header.rb in grape-0.5.0 vs lib/grape/middleware/versioner/accept_version_header.rb in grape-0.6.0
- old
+ new
@@ -9,10 +9,10 @@
# Example: For request header
# Accept-Version: v1
#
# The following rack env variables are set:
#
- # env['api.version] => 'v1'
+ # env['api.version'] => 'v1'
#
# If version does not match this route, then a 406 is raised with
# X-Cascade header to alert Rack::Mount to attempt the next matched
# route.
class AcceptVersionHeader < Base