diff options
author | Brett Walker <bwalker@gitlab.com> | 2018-07-07 04:22:44 +0000 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-07-07 04:22:44 +0000 |
commit | f3e102837150022daf1864c01b4bb84b24f591b7 (patch) | |
tree | 3028c1ca996d92496fc7e0918672f736644edc3b /lib | |
parent | 06e3ea7ac3deefad9b91030994b40c7c8abe06d3 (diff) | |
download | gitlab-ce-f3e102837150022daf1864c01b4bb84b24f591b7.tar.gz |
Refactor rspec matchers in read_only_spec.rb
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/middleware/read_only/controller.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/gitlab/middleware/read_only/controller.rb b/lib/gitlab/middleware/read_only/controller.rb index 4a99b7cca5c..8dca431c005 100644 --- a/lib/gitlab/middleware/read_only/controller.rb +++ b/lib/gitlab/middleware/read_only/controller.rb @@ -69,6 +69,7 @@ module Gitlab @route_hash ||= Rails.application.routes.recognize_path(request.url, { method: request.request_method }) rescue {} end + # Overridden in EE module def whitelisted_routes grack_route || ReadOnly.internal_routes.any? { |path| request.path.include?(path) } || lfs_route || sidekiq_route end |