diff options
author | Thong Kuah <tkuah@gitlab.com> | 2018-11-29 13:50:19 +1300 |
---|---|---|
committer | Thong Kuah <tkuah@gitlab.com> | 2018-12-05 10:16:44 +1300 |
commit | ebf87fd9c2e1c5bde72f2c08db0fff7e81882cb8 (patch) | |
tree | 453086b0791d9376dcfa1d10b841919b1d7cabaf /app/models/namespace.rb | |
parent | f85440e63c2eba453e09a5599f0d3e0491a037f1 (diff) | |
download | gitlab-ce-ebf87fd9c2e1c5bde72f2c08db0fff7e81882cb8.tar.gz |
Unify into :group_clusters feature flag
With this MR, group clusters is now functional, so default to enabled.
Have a single setting on the root ancestor group to enabled or disable
group clusters feature as a whole
Diffstat (limited to 'app/models/namespace.rb')
-rw-r--r-- | app/models/namespace.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/namespace.rb b/app/models/namespace.rb index c38310ed62b..8865c164b11 100644 --- a/app/models/namespace.rb +++ b/app/models/namespace.rb @@ -243,7 +243,7 @@ class Namespace < ActiveRecord::Base end def root_ancestor - ancestors.reorder(nil).find_by(parent_id: nil) + self_and_ancestors.reorder(nil).find_by(parent_id: nil) end def subgroup? |