debian-mirror-gitlab/app/controllers/concerns/merge_requests_action.rb

21 lines
457 B
Ruby
Raw Normal View History

2015-12-23 02:04:40 +05:30
module MergeRequestsAction
extend ActiveSupport::Concern
2016-09-13 17:45:13 +05:30
include IssuableCollections
2015-12-23 02:04:40 +05:30
def merge_requests
2016-09-13 17:45:13 +05:30
@label = merge_requests_finder.labels.first
2016-04-02 18:10:28 +05:30
2016-09-13 17:45:13 +05:30
@merge_requests = merge_requests_collection
.page(params[:page])
2017-08-17 22:00:37 +05:30
@collection_type = "MergeRequest"
@issuable_meta_data = issuable_meta_data(@merge_requests, @collection_type)
end
private
def filter_params
super.merge(non_archived: true)
2015-12-23 02:04:40 +05:30
end
end