Files
docuseal/app/controllers/templates_archived_controller.rb
T
2023-09-15 00:47:35 +03:00

10 lines
266 B
Ruby

# frozen_string_literal: true
class TemplatesArchivedController < ApplicationController
def index
templates = current_account.templates.where.not(deleted_at: nil).preload(:author).order(id: :desc)
@pagy, @templates = pagy(templates, items: 12)
end
end