summaryrefslogtreecommitdiff
path: root/app/models/project.rb
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-09-29 15:50:14 -0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-10-19 14:58:25 -0200
commit3db2261005c438faad8bf4a339d46eb7798f05b5 (patch)
treeb09acae73956cf67ed160a3ae2c4139a9140921a /app/models/project.rb
parent723e576782aefa339a4db8916908c7ebe5a92f48 (diff)
downloadgitlab-ce-3db2261005c438faad8bf4a339d46eb7798f05b5.tar.gz
Reuse LabelsFinder on Banzai::Filter::LabelReferenceFilter
Diffstat (limited to 'app/models/project.rb')
-rw-r--r--app/models/project.rb4
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?