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
|
|
|
|
.non_archived
|
|
|
|
.preload(:author, :target_project)
|
|
|
|
.page(params[:page])
|
2015-11-17 05:03:18 -05:00
|
|
|
end
|
|
|
|
end
|