Skip to content
Snippets Groups Projects
Verified Commit ad60701e authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Add only open/reopen scopes to issues

parent d95d56f0
Branches
Tags
No related merge requests found
Loading
@@ -24,6 +24,8 @@ module Issuable
Loading
@@ -24,6 +24,8 @@ module Issuable
scope :unassigned, -> { where("assignee_id IS NULL") } scope :unassigned, -> { where("assignee_id IS NULL") }
scope :of_projects, ->(ids) { where(project_id: ids) } scope :of_projects, ->(ids) { where(project_id: ids) }
scope :opened, -> { with_state(:opened, :reopened) } scope :opened, -> { with_state(:opened, :reopened) }
scope :only_opened, -> { with_state(:opened) }
scope :only_reopened, -> { with_state(:reopened) }
scope :closed, -> { with_state(:closed) } scope :closed, -> { with_state(:closed) }
   
delegate :name, delegate :name,
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment