mirror of
https://github.com/docusealco/docuseal
synced 2026-11-07 23:32:33 -05:00
allow to unarchive submissions
This commit is contained in:
1 parent
ff14caa9f7
commit
22d4833496
4 files changed
+33
-4
No files matched your search
@@ -0,0 +1,11 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class SubmissionsUnarchiveController < ApplicationController
|
||||
load_and_authorize_resource :submission
|
||||
|
||||
def create
|
||||
@submission.update!(archived_at: nil)
|
||||
|
||||
redirect_to submission_path(@submission), notice: I18n.t('submission_has_been_unarchived')
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user