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