Module: MergeRequestsAction

Extended by:
ActiveSupport::Concern
Included in:
DashboardController, GroupsController
Defined in:
app/controllers/concerns/merge_requests_action.rb

Instance Method Summary collapse

Instance Method Details

#merge_requestsObject


4
5
6
7
8
9
10
# File 'app/controllers/concerns/merge_requests_action.rb', line 4

def merge_requests
  @merge_requests = get_merge_requests_collection.non_archived
  @merge_requests = @merge_requests.page(params[:page])
  @merge_requests = @merge_requests.preload(:author, :target_project)

  @label = @issuable_finder.labels.first
end