mirror of https://github.com/docusealco/docuseal
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
374 B
12 lines
374 B
# frozen_string_literal: true
|
|
|
|
class TemplatesArchivedSubmissionsController < ApplicationController
|
|
def show
|
|
@template = current_account.templates.find(params[:template_id])
|
|
|
|
@pagy, @submissions = pagy(@template.submissions.where.not(deleted_at: nil).preload(:submitters).order(id: :desc))
|
|
rescue ActiveRecord::RecordNotFound
|
|
redirect_to root_path
|
|
end
|
|
end
|