diff options
author | Rubén Dávila <rdavila84@gmail.com> | 2016-02-22 19:08:00 -0500 |
---|---|---|
committer | Rubén Dávila <rdavila84@gmail.com> | 2016-03-04 22:37:03 -0500 |
commit | a056dfa9a077def4c3ffb958d3f86f7c9d7c2096 (patch) | |
tree | d244e57faf58dc2be08c1412c66874c694f8913e /app/models/merge_request.rb | |
parent | 3231ea10b7319f6fe50c0ec1407ddaac69089641 (diff) | |
download | gitlab-ce-a056dfa9a077def4c3ffb958d3f86f7c9d7c2096.tar.gz |
Refactor GlobalMilestone queries.
Make methods return ActiveRecord Relations instead of Arrays.
Diffstat (limited to 'app/models/merge_request.rb')
-rw-r--r-- | app/models/merge_request.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/app/models/merge_request.rb b/app/models/merge_request.rb index 025b522cf66..f575494e2bf 100644 --- a/app/models/merge_request.rb +++ b/app/models/merge_request.rb @@ -139,7 +139,6 @@ class MergeRequest < ActiveRecord::Base scope :of_projects, ->(ids) { where(target_project_id: ids) } scope :opened, -> { with_states(:opened, :reopened) } scope :merged, -> { with_state(:merged) } - scope :closed, -> { with_state(:closed) } scope :closed_and_merged, -> { with_states(:closed, :merged) } scope :join_project, -> { joins(:target_project) } |