Files
docuseal/app/controllers/templates_restore_controller.rb
T
2026-03-18 08:36:36 +02:00

14 lines
345 B
Ruby

# frozen_string_literal: true
class TemplatesRestoreController < ApplicationController
load_and_authorize_resource :template
def create
@template.update!(archived_at: nil)
WebhookUrls.enqueue_events(@template, 'template.updated')
redirect_to template_path(@template), notice: I18n.t('template_has_been_unarchived')
end
end