merge_requests_action.rb 487 Bytes
Newer Older
1 2
module MergeRequestsAction
  extend ActiveSupport::Concern
3
  include IssuableCollections
4

5
  # rubocop:disable Gitlab/ModuleWithInstanceVariables
6
  def merge_requests
7
    @finder_type = MergeRequestsFinder
Tap's avatar
Tap committed
8

9
    @merge_requests = issuables_collection.page(params[:page])
10

11
    @issuable_meta_data = issuable_meta_data(@merge_requests, collection_type)
12
  end
13
  # rubocop:enable Gitlab/ModuleWithInstanceVariables
14 15 16 17 18 19

  private

  def filter_params
    super.merge(non_archived: true)
  end
20
end