Sha256: ecf3ca03d9fc0319a2d011b1df90aa6238759d4a8722c2f13d6a91d6e9b9fdb3

Contents?: true

Size: 433 Bytes

Versions: 13

Compression:

Stored size: 433 Bytes

Contents

module Billing
  module BillItem
    extend ActiveSupport::Concern
    
    included do
      acts_as_paranoid if respond_to?(:acts_as_paranoid)
      has_paper_trail class_name: 'Billing::Version' if respond_to?(:has_paper_trail)
      
      delegate :save, to: :bill, prefix: :bill
      delegate :origins, :payment_types, :tax_groups, to: :bill
      
      after_save :bill_save
      after_destroy :bill_save
    end

  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
billing-0.0.9 app/models/concerns/billing/bill_item.rb
billing-0.0.8a app/models/concerns/billing/bill_item.rb
billing-0.0.8 app/models/concerns/billing/bill_item.rb
billing-0.0.7i app/models/concerns/billing/bill_item.rb
billing-0.0.7g app/models/concerns/billing/bill_item.rb
billing-0.0.7f app/models/concerns/billing/bill_item.rb
billing-0.0.7e app/models/concerns/billing/bill_item.rb
billing-0.0.7d app/models/concerns/billing/bill_item.rb
billing-0.0.7c app/models/concerns/billing/bill_item.rb
billing-0.0.7b app/models/concerns/billing/bill_item.rb
billing-0.0.7a app/models/concerns/billing/bill_item.rb
billing-0.0.7 app/models/concerns/billing/bill_item.rb
billing-0.0.6a app/models/concerns/billing/bill_item.rb