Files
docuseal/app/controllers/templates_restore_controller.rb
T
Oleksandr Turchyn e9d728fa4a add i18n
2024-09-23 11:45:07 +03:00

12 lines
282 B
Ruby

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