diff --git a/app/models/datum/ext/export.rb b/app/models/datum/ext/export.rb index abf12e2..4b74ed3 100644 --- a/app/models/datum/ext/export.rb +++ b/app/models/datum/ext/export.rb @@ -5,6 +5,7 @@ module Ext::Export included do attribute :code, :string + attribute :formats, :json, default: {} belongs_to :template, class_name: 'Datum::Template' @@ -13,6 +14,7 @@ module Ext::Export def sync_code self.code = template&.code + self.formats = template.parameters end def workbook