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