diff options
author | Mark Chao <mchao@gitlab.com> | 2018-06-22 17:32:43 +0800 |
---|---|---|
committer | Mark Chao <mchao@gitlab.com> | 2018-06-22 17:32:43 +0800 |
commit | cab948761e5c7d0c74b8ea5d4cc65322eadee0b4 (patch) | |
tree | 52bea9af09e98b2074c75d8a9aef949f94ed4e4f | |
parent | c2ce98fb4286768830828b2ef4f4d0a895179a0b (diff) | |
download | gitlab-ce-42751-rename-master-to-maintainer-2.tar.gz |
alias association42751-rename-master-to-maintainer-2
-rw-r--r-- | app/models/user.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index 4d43bc67fef..f0b0682d930 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -100,7 +100,7 @@ class User < ActiveRecord::Base has_many :groups, through: :group_members has_many :owned_groups, -> { where(members: { access_level: Gitlab::Access::OWNER }) }, through: :group_members, source: :group has_many :maintainers_groups, -> { where(members: { access_level: Gitlab::Access::MAINTAINER }) }, through: :group_members, source: :group - has_many :masters_groups, -> { where(members: { access_level: Gitlab::Access::MAINTAINER }) }, through: :group_members, source: :group # @deprecated + alias_attribute :masters_groups, :maintainers_groups # Projects has_many :groups_projects, through: :groups, source: :projects |