diff options
author | Gabriel Mazetto <gabriel@gitlab.com> | 2018-03-08 12:56:54 +0000 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2018-03-08 12:56:54 +0000 |
commit | 5c7a738105b88c52d7765791419ee398d9e27ae0 (patch) | |
tree | 3c317bc276420ae774b9fd0edea1788fdebd347b /config/routes/group.rb | |
parent | a284400099af145fe63c6a00609ea59f768d383c (diff) | |
download | gitlab-ce-5c7a738105b88c52d7765791419ee398d9e27ae0.tar.gz |
[CE] Add Naming/FileName rule checking expected class/module per filename
Diffstat (limited to 'config/routes/group.rb')
-rw-r--r-- | config/routes/group.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/config/routes/group.rb b/config/routes/group.rb index 710f12e33ad..d89a714c7d6 100644 --- a/config/routes/group.rb +++ b/config/routes/group.rb @@ -1,10 +1,8 @@ -require 'constraints/group_url_constrainer' - resources :groups, only: [:index, :new, :create] do post :preview_markdown end -constraints(GroupUrlConstrainer.new) do +constraints(::Constraints::GroupUrlConstrainer.new) do scope(path: 'groups/*id', controller: :groups, constraints: { id: Gitlab::PathRegex.full_namespace_route_regex, format: /(html|json|atom)/ }) do |