Module: Invoicing::TaxRate::ActMethods

Defined in:
lib/invoicing/tax_rate.rb

Instance Method Summary collapse

Instance Method Details

#acts_as_tax_rate(*args) ⇒ Object


4
5
6
7
8
9
10
11
12
# File 'lib/invoicing/tax_rate.rb', line 4

def acts_as_tax_rate(*args)
  Invoicing::ClassInfo.acts_as(Invoicing::TaxRate, self, args)

  info = tax_rate_class_info
  if info.previous_info.nil? # Called for the first time?
    # Import TimeDependent functionality
    acts_as_time_dependent :value => :rate
  end
end