-
Notifications
You must be signed in to change notification settings - Fork 198
Save response form documents as draft assets until publication v2 [WHIT-3750] #11764
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
396c4d8
a89d197
60d4e5f
5a88b0d
60b8472
bfe0344
033792c
8276923
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,11 +15,8 @@ def create_attachment(attachment_data:, edition:) | |
| end | ||
| end | ||
|
|
||
| # Defining an explicit list, since models like Consultation response form data | ||
| # also includes AssetData but can't run generically like Attachment/Image. | ||
|
eYinka marked this conversation as resolved.
|
||
| def for_each_asset_data_type(&block) | ||
| asset_data_types = ApplicationRecord | ||
| .descendants | ||
| .select { |klass| klass.include?(AssetData) } | ||
| .map(&:name) | ||
|
|
||
| asset_data_types.each(&block) | ||
| %w[AttachmentData ImageData].each(&block) | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| end | ||
Uh oh!
There was an error while loading. Please reload this page.