lib/ledger_sync/domains/operation.rb in ledger_sync-domains-1.0.0.rc9 vs lib/ledger_sync/domains/operation.rb in ledger_sync-domains-1.0.0.rc10
- old
+ new
@@ -157,10 +157,10 @@
@result = OperationResult.Success(deep_serialize(value), meta: meta)
end
def deep_serialize(value)
case value
- when ActiveRecord::Base#, LedgerSync::Resource
+ when ActiveRecord::Base # , LedgerSync::Resource
serialize(resource: value)
when Hash
value.transform_values { deep_serialize(_1) }
when Array
value.map { deep_serialize(_1) }