diff options
| author | Alexey Elizarov <felex-ae@ya.ru> | 2013-12-17 23:32:19 +0300 |
|---|---|---|
| committer | Alexey Elizarov <felex-ae@ya.ru> | 2013-12-17 23:32:19 +0300 |
| commit | 984eb08cbe15def95f1cfc2eff32fcb03eb3981b (patch) | |
| tree | 66b499cc60c35c13da88a333f6910f897942a41d /app/models/issue.rb | |
| parent | 26c8b3163454ab4610a8130f13de1dc686dcdabf (diff) | |
| download | gitlab-ce-984eb08cbe15def95f1cfc2eff32fcb03eb3981b.tar.gz | |
Duplicate opened scope for issue
Was it correct?
Diffstat (limited to 'app/models/issue.rb')
| -rw-r--r-- | app/models/issue.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb index b3609cf2f45..6580c5004af 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -28,7 +28,7 @@ class Issue < ActiveRecord::Base scope :of_group, ->(group) { where(project_id: group.project_ids) } scope :of_user_team, ->(team) { where(project_id: team.project_ids, assignee_id: team.member_ids) } - scope :opened, -> { with_state(:opened) } + scope :opened, -> { with_state(:opened, :reopened) } scope :closed, -> { with_state(:closed) } attr_accessible :title, :assignee_id, :position, :description, @@ -56,9 +56,6 @@ class Issue < ActiveRecord::Base state :closed end - # Both open and reopened issues should be listed as opened - scope :opened, -> { with_state(:opened, :reopened) } - # Mentionable overrides. def gfm_reference |
