Commit 2b7bcc9d authored by Alper Akgun's avatar Alper Akgun

Remove closed_and_merged scope

parent bff6c914
...@@ -268,7 +268,6 @@ class MergeRequest < ApplicationRecord ...@@ -268,7 +268,6 @@ class MergeRequest < ApplicationRecord
from_fork.where('source_project_id = ? OR target_project_id = ?', project.id, project.id) from_fork.where('source_project_id = ? OR target_project_id = ?', project.id, project.id)
end end
scope :merged, -> { with_state(:merged) } scope :merged, -> { with_state(:merged) }
scope :closed_and_merged, -> { with_states(:closed, :merged) }
scope :open_and_closed, -> { with_states(:opened, :closed) } scope :open_and_closed, -> { with_states(:opened, :closed) }
scope :drafts, -> { where(draft: true) } scope :drafts, -> { where(draft: true) }
scope :from_source_branches, ->(branches) { where(source_branch: branches) } scope :from_source_branches, ->(branches) { where(source_branch: branches) }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment