diff options
author | Rémy Coutable <remy@rymai.me> | 2016-07-21 10:36:02 +0200 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-07-21 10:36:02 +0200 |
commit | f8afe47a87ca880c95163aa7e731638a730ed14b (patch) | |
tree | 5d12e2d2c84a7f4c1d5ad634605f81a65f72ea59 /app/models/service.rb | |
parent | 8ed97054835a28ead703c32d9c2ab79a15412c88 (diff) | |
download | gitlab-ce-f8afe47a87ca880c95163aa7e731638a730ed14b.tar.gz |
Make Service.external_wikis return only active external wikis
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'app/models/service.rb')
-rw-r--r-- | app/models/service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/service.rb b/app/models/service.rb index a8e1cc2f422..40cd9b861f0 100644 --- a/app/models/service.rb +++ b/app/models/service.rb @@ -26,7 +26,7 @@ class Service < ActiveRecord::Base scope :visible, -> { where.not(type: ['GitlabIssueTrackerService', 'GitlabCiService']) } scope :issue_trackers, -> { where(category: 'issue_tracker') } - scope :external_wikis, -> { where(type: 'ExternalWikiService') } + scope :external_wikis, -> { where(type: 'ExternalWikiService').active } scope :active, -> { where(active: true) } scope :without_defaults, -> { where(default: false) } |