diff options
author | Robert Schilling <rschilling@student.tugraz.at> | 2019-02-21 14:12:11 +0100 |
---|---|---|
committer | Robert Schilling <rschilling@student.tugraz.at> | 2019-02-21 14:12:11 +0100 |
commit | 56a54c62fba093ae53c8fef309454f38d3778b0f (patch) | |
tree | b322cf001890414daca65528ff1c12ec1a735f4d /app/models/issue.rb | |
parent | 73e3a1cd02c5d2bdaf03d5998ae12bc86de2fa75 (diff) | |
download | gitlab-ce-56a54c62fba093ae53c8fef309454f38d3778b0f.tar.gz |
Add confidential_only scop to issue model
Diffstat (limited to 'app/models/issue.rb')
-rw-r--r-- | app/models/issue.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb index 182c5d3d4b0..0b46e949052 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -66,6 +66,7 @@ class Issue < ActiveRecord::Base scope :preload_associations, -> { preload(:labels, project: :namespace) } scope :public_only, -> { where(confidential: false) } + scope :confidential_only, -> { where(confidential: true) } after_save :expire_etag_cache after_save :ensure_metrics, unless: :imported? |