fix pagination

This commit is contained in:
Pete Matsyburka
2024-10-04 16:37:41 +03:00
committed by Oleksandr Turchyn
parent eefa994724
commit dea80a82d8
4 changed files with 5 additions and 5 deletions
@@ -7,6 +7,6 @@ class TemplatesArchivedController < ApplicationController
@templates = @templates.where.not(archived_at: nil).preload(:author, :folder).order(id: :desc)
@templates = Templates.search(@templates, params[:q])
@pagy, @templates = pagy(@templates, items: 12)
@pagy, @templates = pagy(@templates, limit: 12)
end
end