2015-11-17 10:03:18 +00:00
|
|
|
module MergeRequestsAction
|
|
|
|
extend ActiveSupport::Concern
|
2016-07-23 23:28:12 +00:00
|
|
|
include IssuableCollections
|
2015-11-17 10:03:18 +00:00
|
|
|
|
|
|
|
def merge_requests
|
2016-07-23 23:28:12 +00:00
|
|
|
@label = merge_requests_finder.labels.first
|
2016-02-17 13:52:12 +00:00
|
|
|
|
2016-07-23 23:28:12 +00:00
|
|
|
@merge_requests = merge_requests_collection
|
|
|
|
.page(params[:page])
|
2015-11-17 10:03:18 +00:00
|
|
|
end
|
2016-11-27 10:33:15 +00:00
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def filter_params
|
|
|
|
super.merge(non_archived: true)
|
|
|
|
end
|
2015-11-17 10:03:18 +00:00
|
|
|
end
|