diff --git a/lib/grape/middleware/versioner/path.rb b/lib/grape/middleware/versioner/path.rb index 0f21024905..753a3f7fdc 100644 --- a/lib/grape/middleware/versioner/path.rb +++ b/lib/grape/middleware/versioner/path.rb @@ -26,7 +26,7 @@ def default_options def before path = env[Grape::Http::Headers::PATH_INFO].dup - if prefix && path.index(prefix) == 0 + if prefix && path.index(prefix) == 0 # rubocop:disable all path.sub!(prefix, '') path = Grape::Router.normalize_path(path) end