diff options
author | John Cai <jcai@gitlab.com> | 2019-02-11 10:18:48 -0800 |
---|---|---|
committer | John Cai <jcai@gitlab.com> | 2019-02-11 12:58:37 -0800 |
commit | b9c19e2f1378c8e8647a55f4707186a4995f3f9c (patch) | |
tree | 49203de482972160052ed19e3aff0b53a2d73672 /app | |
parent | bac1f72c5750fa54d712411a6a3ade71dd67b673 (diff) | |
download | gitlab-ce-b9c19e2f1378c8e8647a55f4707186a4995f3f9c.tar.gz |
Adding convenience method to project model
Diffstat (limited to 'app')
-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 58df4019450..c72d3a3b725 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -2073,6 +2073,10 @@ class Project < ActiveRecord::Base pool_repository&.link_repository(repository) end + def has_pool_repository? + pool_repository.present? + end + private def merge_requests_allowing_collaboration(source_branch = nil) |