diff options
author | blackst0ne <blackst0ne.ru@gmail.com> | 2017-05-30 07:35:49 +0300 |
---|---|---|
committer | blackst0ne <blackst0ne.ru@gmail.com> | 2017-05-30 07:35:49 +0300 |
commit | a7349560b2d13ea7894a462738b3a7687fdbae72 (patch) | |
tree | 6b06e74b4934e57c99d7a1684592ae97aa276394 /app/models | |
parent | e5226177ac667c8ad4cc07270bbdef24031eb8a2 (diff) |
'New issue'/'New merge request' dropdowns should show only projects with issues/merge requests feature enabled
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/project.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/project.rb b/app/models/project.rb index 29af57d7664..84070290743 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -271,6 +271,7 @@ class Project < ActiveRecord::Base scope :with_builds_enabled, -> { with_feature_enabled(:builds) } scope :with_issues_enabled, -> { with_feature_enabled(:issues) } + scope :with_merge_requests_enabled, -> { with_feature_enabled(:merge_requests) } enum auto_cancel_pending_pipelines: { disabled: 0, enabled: 1 } |