Commit ad60701e9e097a046f65048bd4e707da512daa07

Authored by Dmitriy Zaporozhets
1 parent d95d56f0

Add only open/reopen scopes to issues

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing 1 changed file with 2 additions and 0 deletions   Show diff stats
app/models/concerns/issuable.rb
... ... @@ -24,6 +24,8 @@ module Issuable
24 24 scope :unassigned, -> { where("assignee_id IS NULL") }
25 25 scope :of_projects, ->(ids) { where(project_id: ids) }
26 26 scope :opened, -> { with_state(:opened, :reopened) }
  27 + scope :only_opened, -> { with_state(:opened) }
  28 + scope :only_reopened, -> { with_state(:reopened) }
27 29 scope :closed, -> { with_state(:closed) }
28 30  
29 31 delegate :name,
... ...