4d26ab28a9
counter This is done by: - Extending the IssuableFinder adding the non_archived option to the params - Overriding the #filter_params in the MergeRequestsAction - Passing the non_archived param in the nav/_group.html.haml navbar partial from the groups/merge_requests.html.haml
17 lines
335 B
Ruby
17 lines
335 B
Ruby
module MergeRequestsAction
|
|
extend ActiveSupport::Concern
|
|
include IssuableCollections
|
|
|
|
def merge_requests
|
|
@label = merge_requests_finder.labels.first
|
|
|
|
@merge_requests = merge_requests_collection
|
|
.page(params[:page])
|
|
end
|
|
|
|
private
|
|
|
|
def filter_params
|
|
super.merge(non_archived: true)
|
|
end
|
|
end
|