debian-mirror-gitlab/app/controllers/concerns/merge_requests_action.rb
2016-09-13 17:45:13 +05:30

13 lines
354 B
Ruby

module MergeRequestsAction
extend ActiveSupport::Concern
include IssuableCollections
def merge_requests
@label = merge_requests_finder.labels.first
@merge_requests = merge_requests_collection
.non_archived
.preload(:author, :target_project)
.page(params[:page])
end
end