gitlab-org--gitlab-foss/app/controllers/concerns/merge_requests_action.rb

12 lines
367 B
Ruby
Raw Normal View History

module MergeRequestsAction
extend ActiveSupport::Concern
def merge_requests
@merge_requests = get_merge_requests_collection.non_archived
@merge_requests = @merge_requests.page(params[:page]).per(ApplicationController::PER_PAGE)
@merge_requests = @merge_requests.preload(:author, :target_project)
2016-02-19 00:27:41 -05:00
@label = @issuable_finder.labels.first
end
end