Sha256: c12ae483b0503f28305c2790af77d1be05aa8ae5ce477abd7c2002de4263b9c1
Contents?: true
Size: 261 Bytes
Versions: 16
Compression:
Stored size: 261 Bytes
Contents
module Pacioli class Creditor < Party def self.for(creditor) Creditor.where(partyable_type: creditor.class.name, partyable_id: creditor.id).first || Creditor.create!(partyable_type: creditor.class.name, partyable_id: creditor.id) end end end
Version data entries
16 entries across 16 versions & 1 rubygems