Added Attribute Mapping DSL

This commit is contained in:
2026-03-13 08:32:55 -04:00
parent eb6954ddf1
commit c87e18810b
4 changed files with 122 additions and 17 deletions

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