Module: SolidusTaxCloud::Spree::AppConfigurationDecorator
- Defined in:
- app/decorators/models/solidus_tax_cloud/spree/app_configuration_decorator.rb
Class Method Summary collapse
Class Method Details
.prepended(base) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'app/decorators/models/solidus_tax_cloud/spree/app_configuration_decorator.rb', line 6 def self.prepended(base) base.class_eval do preference :taxcloud_default_product_tic, :string, default: '00000' preference :taxcloud_shipping_tic, :string, default: '11010' end Rails.application.config.spree.calculators.tax_rates << ::Spree::Calculator::TaxCloudCalculator end |