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

14 lines
354 B
Ruby
Raw Normal View History

2015-12-23 02:04:40 +05:30
module MergeRequestsAction
extend ActiveSupport::Concern
2016-09-13 17:45:13 +05:30
include IssuableCollections
2015-12-23 02:04:40 +05:30
def merge_requests
2016-09-13 17:45:13 +05:30
@label = merge_requests_finder.labels.first
2016-04-02 18:10:28 +05:30
2016-09-13 17:45:13 +05:30
@merge_requests = merge_requests_collection
.non_archived
.preload(:author, :target_project)
.page(params[:page])
2015-12-23 02:04:40 +05:30
end
end