summaryrefslogtreecommitdiff
path: root/app/roles/issue_commonality.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/roles/issue_commonality.rb')
-rw-r--r--app/roles/issue_commonality.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/roles/issue_commonality.rb b/app/roles/issue_commonality.rb
index 4aee916c03c..3d9074867b7 100644
--- a/app/roles/issue_commonality.rb
+++ b/app/roles/issue_commonality.rb
@@ -1,5 +1,4 @@
-# Contains common functionality
-# shared between Issues and MergeRequests
+# Contains common functionality shared between Issues and MergeRequests
module IssueCommonality
extend ActiveSupport::Concern
@@ -18,6 +17,7 @@ module IssueCommonality
scope :closed, where(closed: true)
scope :of_group, ->(group) { where(project_id: group.project_ids) }
scope :assigned, ->(u) { where(assignee_id: u.id)}
+ scope :recent, order("created_at DESC")
delegate :name,
:email,