Commit c34288fa27f9bca5b371b94890cac4f6a06773eb

Authored by Dmitriy Zaporozhets
1 parent 546d7d44

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 54  
55 55 state :closed
56 56 end
  57 +
  58 + # Both open and reopened issues should be listed as opened
  59 + scope :opened, -> { with_state(:opened, :reopened) }
57 60 end
... ...