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

Version Path
pacioli-0.0.29 lib/pacioli/creditor.rb
pacioli-0.0.28 lib/pacioli/creditor.rb
pacioli-0.0.27 lib/pacioli/creditor.rb
pacioli-0.0.26 lib/pacioli/creditor.rb
pacioli-0.0.25 lib/pacioli/creditor.rb
pacioli-0.0.24 lib/pacioli/creditor.rb
pacioli-0.0.23 lib/pacioli/creditor.rb
pacioli-0.0.22 lib/pacioli/creditor.rb
pacioli-0.0.21 lib/pacioli/creditor.rb
pacioli-0.0.20 lib/pacioli/creditor.rb
pacioli-0.0.19 lib/pacioli/creditor.rb
pacioli-0.0.18 lib/pacioli/creditor.rb
pacioli-0.0.17 lib/pacioli/creditor.rb
pacioli-0.0.16 lib/pacioli/creditor.rb
pacioli-0.0.15 lib/pacioli/creditor.rb
pacioli-0.0.14 lib/pacioli/creditor.rb