gitlab-org--gitlab-foss/app/controllers/concerns/merge_requests_action.rb
Rémy Coutable d4e91b22fc
Revert part of "Merge branch 'update_issues_mr_counter' into 'master'
Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-09-22 15:43:43 +02:00

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