Sha256: 5940a235eb5608a606e135b5f0494bd90d791a3ffde8e61494845d2433dca87e

Contents?: true

Size: 474 Bytes

Versions: 15

Compression:

Stored size: 474 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
      
      validates_presence_of :bill
      
      after_save :bill_save
      after_destroy :bill_save
    end

  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
billing-0.2.2 app/models/concerns/billing/bill_item.rb
billing-0.2.1 app/models/concerns/billing/bill_item.rb
billing-0.2.0 app/models/concerns/billing/bill_item.rb
billing-0.1.9 app/models/concerns/billing/bill_item.rb
billing-0.1.8 app/models/concerns/billing/bill_item.rb
billing-0.1.7 app/models/concerns/billing/bill_item.rb
billing-0.1.6 app/models/concerns/billing/bill_item.rb
billing-0.1.5 app/models/concerns/billing/bill_item.rb
billing-0.1.4 app/models/concerns/billing/bill_item.rb
billing-0.1.3 app/models/concerns/billing/bill_item.rb
billing-0.1.2a app/models/concerns/billing/bill_item.rb
billing-0.1.2 app/models/concerns/billing/bill_item.rb
billing-0.1.1 app/models/concerns/billing/bill_item.rb
billing-0.1.0a app/models/concerns/billing/bill_item.rb
billing-0.1.0 app/models/concerns/billing/bill_item.rb