debian-mirror-gitlab/app/controllers/concerns/merge_requests_action.rb

12 lines
354 B
Ruby
Raw Normal View History

2015-12-23 02:04:40 +05:30
module MergeRequestsAction
extend ActiveSupport::Concern
def merge_requests
@merge_requests = get_merge_requests_collection
@merge_requests = @merge_requests.page(params[:page]).per(ApplicationController::PER_PAGE)
@merge_requests = @merge_requests.preload(:author, :target_project)
2016-04-02 18:10:28 +05:30
@label = @issuable_finder.labels.first
2015-12-23 02:04:40 +05:30
end
end