clone template preferences

pull/257/head
Pete Matsyburka 2 years ago
parent fbae4933f6
commit 3168feb3d6

@ -11,6 +11,7 @@ module Templates
template.external_id = external_id template.external_id = external_id
template.author = author template.author = author
template.preferences = original_template.preferences.deep_dup
template.name = name || "#{original_template.name} (Clone)" template.name = name || "#{original_template.name} (Clone)"
template.assign_attributes(original_template.slice(:folder_id, :schema)) template.assign_attributes(original_template.slice(:folder_id, :schema))

Loading…
Cancel
Save