Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@vanlanduyt.co>2017-09-06 17:29:52 +0300
committerBob Van Landuyt <bob@vanlanduyt.co>2017-10-04 23:46:49 +0300
commit438a0773dc850d3fa690881ea0b022bc27435e1e (patch)
treea312a5d2eb890022d0b9ffdd64e2b1ab68f0283f /app/models/group.rb
parent9f3995a0ca3d56fd8d219a2b01c3e6555fd91f27 (diff)
Add a concern to build hierarchies of groups
Diffstat (limited to 'app/models/group.rb')
-rw-r--r--app/models/group.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/group.rb b/app/models/group.rb
index e746e4a12c9..848e422e067 100644
--- a/app/models/group.rb
+++ b/app/models/group.rb
@@ -6,6 +6,7 @@ class Group < Namespace
include Avatarable
include Referable
include SelectForProjectAuthorization
+ include GroupHierarchy
has_many :group_members, -> { where(requested_at: nil) }, dependent: :destroy, as: :source # rubocop:disable Cop/ActiveRecordDependent
alias_method :members, :group_members