diff options
| author | randx <dmitriy.zaporozhets@gmail.com> | 2012-10-09 22:09:46 +0300 |
|---|---|---|
| committer | randx <dmitriy.zaporozhets@gmail.com> | 2012-10-09 22:09:46 +0300 |
| commit | 679d0d6d760b850e27c13f3ce0f812b8b081df7f (patch) | |
| tree | e3f088a9139d693e96fd2bd86264150f0d96270c /app/roles/issue_commonality.rb | |
| parent | 63fe042d97a5430770ec50fc0e8f29c416bd2ec9 (diff) | |
| download | gitlab-ce-679d0d6d760b850e27c13f3ce0f812b8b081df7f.tar.gz | |
Context refactoring. Move Issues list, Search logic to context
Diffstat (limited to 'app/roles/issue_commonality.rb')
| -rw-r--r-- | app/roles/issue_commonality.rb | 4 |
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, |
