class Grape::API::Instance
def cascade?
errors from reaching upstream. This is effectivelly done by unsetting
In some applications (e.g. mounting grape on rails), one might need to trap
looking for a matching route on other resources.
and sets it to 'pass', indicating to grape's parents they should keep
route. In this case, Grape::Router adds a X-Cascade header to the response
Some requests may return a HTTP 404 error if grape cannot find a matching
def cascade? return self.class.namespace_inheritable(:cascade) if self.class.inheritable_setting.namespace_inheritable.key?(:cascade) return self.class.namespace_inheritable(:version_options)[:cascade] if self.class.namespace_inheritable(:version_options)&.key?(:cascade) true end