diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-09-29 15:50:14 -0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-10-19 14:58:25 -0200 |
commit | 3db2261005c438faad8bf4a339d46eb7798f05b5 (patch) | |
tree | b09acae73956cf67ed160a3ae2c4139a9140921a /app/models/project.rb | |
parent | 723e576782aefa339a4db8916908c7ebe5a92f48 (diff) | |
download | gitlab-ce-3db2261005c438faad8bf4a339d46eb7798f05b5.tar.gz |
Reuse LabelsFinder on Banzai::Filter::LabelReferenceFilter
Diffstat (limited to 'app/models/project.rb')
-rw-r--r-- | app/models/project.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/project.rb b/app/models/project.rb index 41125223044..a04817987b4 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -388,6 +388,10 @@ class Project < ActiveRecord::Base Project.count end end + + def group_ids + joins(:namespace).where(namespaces: { type: 'Group' }).pluck(:namespace_id) + end end def lfs_enabled? |