Added Attribute Mapping DSL

This commit is contained in:
ricky committed 2026-03-13 08:32:55 -04:00
1 parent eb6954ddf1
commit c87e18810b
4 files changed
+122 -17

No files matched your search

+2 -1
View File
@@ -17,6 +17,7 @@ class EstimateSyncService < SyncServiceBase
Estimate
end
map_attribute :customer, ->(remote) { Customer.find_by(id: remote.customer_ref&.value) }
map_attributes :doc_number, :txn_date
map_belongs_to :customer
end