Skip to content

Commit

Permalink
date format
Browse files Browse the repository at this point in the history
  • Loading branch information
xuling1979 committed Jan 5, 2025
1 parent 9a747d8 commit 638c3ef
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/datum/ext/export.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ module Ext::Export

included do
attribute :code, :string
attribute :formats, :json, default: {}

belongs_to :template, class_name: 'Datum::Template'

Expand All @@ -13,6 +14,7 @@ module Ext::Export

def sync_code
self.code = template&.code
self.formats = template.parameters
end

def workbook
Expand Down

0 comments on commit 638c3ef

Please sign in to comment.