Override Issue opened scope. Now reopened issues also included
This commit is contained in:
parent
546d7d44d0
commit
c34288fa27
1 changed files with 3 additions and 0 deletions
|
@ -54,4 +54,7 @@ class Issue < ActiveRecord::Base
|
|||
|
||||
state :closed
|
||||
end
|
||||
|
||||
# Both open and reopened issues should be listed as opened
|
||||
scope :opened, -> { with_state(:opened, :reopened) }
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue