Override Issue opened scope. Now reopened issues also included

This commit is contained in:
Dmitriy Zaporozhets 2013-04-09 15:04:31 +03:00
parent 546d7d44d0
commit c34288fa27

View file

@ -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