diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-10-28 00:43:31 -0200 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-10-31 23:27:49 -0200 |
commit | bc7895fff80a038ff14e7319ef303e58474d161c (patch) | |
tree | dcfbddb6993b66b74f4f7fffc61f8b073f32aaa3 /app/models/group_label.rb | |
parent | 2525e55ec9bdd4b3a9e3284c71fde978cab6483a (diff) | |
download | gitlab-ce-bc7895fff80a038ff14e7319ef303e58474d161c.tar.gz |
Use label subject to calculate number of issues/mrs within the group
Diffstat (limited to 'app/models/group_label.rb')
-rw-r--r-- | app/models/group_label.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/group_label.rb b/app/models/group_label.rb index a698b532d19..68841ace2e6 100644 --- a/app/models/group_label.rb +++ b/app/models/group_label.rb @@ -5,6 +5,10 @@ class GroupLabel < Label alias_attribute :subject, :group + def subject_foreign_key + 'group_id' + end + def to_reference(source_project = nil, target_project = nil, format: :id) super(source_project, target_project, format: format) end |