Commit c34288fa27f9bca5b371b94890cac4f6a06773eb
1 parent
546d7d44
Exists in
master
and in
4 other branches
Override Issue opened scope. Now reopened issues also included
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
app/models/issue.rb
@@ -54,4 +54,7 @@ class Issue < ActiveRecord::Base | @@ -54,4 +54,7 @@ class Issue < ActiveRecord::Base | ||
54 | 54 | ||
55 | state :closed | 55 | state :closed |
56 | end | 56 | end |
57 | + | ||
58 | + # Both open and reopened issues should be listed as opened | ||
59 | + scope :opened, -> { with_state(:opened, :reopened) } | ||
57 | end | 60 | end |