lib/grape/middleware/versioner/accept_version_header.rb in grape-0.16.2 vs lib/grape/middleware/versioner/accept_version_header.rb in grape-0.17.0

- old
+ new

@@ -48,10 +48,10 @@ # By default those errors contain an `X-Cascade` header set to `pass`, which allows nesting and stacking # of routes (see Grape::Router) for more information). To prevent # this behavior, and not add the `X-Cascade` header, one can set the `:cascade` option to `false`. def cascade? if options[:version_options] && options[:version_options].key?(:cascade) - !!options[:version_options][:cascade] + options[:version_options][:cascade] else true end end