mirror of
https://github.com/docusealco/docuseal.git
synced 2026-08-07 07:14:43 +00:00
14 lines
335 B
Ruby
14 lines
335 B
Ruby
# frozen_string_literal: true
|
|
|
|
class SubmissionsUnarchiveController < ApplicationController
|
|
load_and_authorize_resource :submission
|
|
|
|
def create
|
|
authorize!(:destroy, @submission)
|
|
|
|
@submission.update!(archived_at: nil)
|
|
|
|
redirect_to submission_path(@submission), notice: I18n.t('submission_has_been_unarchived')
|
|
end
|
|
end
|