diff options
author | Noah Silvera <noah@super.gd> | 2021-03-17 11:09:17 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-17 11:09:17 -0700 |
commit | 644ea96100790569379cb1b429039df71d6b62b3 (patch) | |
tree | d842dcc04299bd4d7936118ebeb87d1071cb0347 /lib/super_good/solidus_taxjar.rb | |
parent | 6fe0283f541a7a2a8c4940f4ce3626e754a292d9 (diff) | |
parent | 68b258ac1a70346d121b57e8dfdf09a1b3df02ee (diff) |
Merge pull request #43 from Noah-Silvera/support-zeitwerk-loading0.18.0
Support zeitwerk loading (0.18.0)
Diffstat (limited to 'lib/super_good/solidus_taxjar.rb')
-rw-r--r-- | lib/super_good/solidus_taxjar.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/super_good/solidus_taxjar.rb b/lib/super_good/solidus_taxjar.rb index 7bdeb03..36b5d85 100644 --- a/lib/super_good/solidus_taxjar.rb +++ b/lib/super_good/solidus_taxjar.rb @@ -12,7 +12,7 @@ require "super_good/solidus_taxjar/discount_calculator" require "super_good/solidus_taxjar/addresses" module SuperGood - module SolidusTaxJar + module SolidusTaxjar class << self attr_accessor :cache_duration attr_accessor :cache_key @@ -28,17 +28,17 @@ module SuperGood attr_accessor :test_mode def api - ::SuperGood::SolidusTaxJar::API.new + ::SuperGood::SolidusTaxjar::Api.new end end self.cache_duration = 3.hours self.cache_key = ->(record) { record_type = record.class.name.demodulize.underscore - APIParams.send("#{record_type}_params", record).to_json + ApiParams.send("#{record_type}_params", record).to_json } self.custom_order_params = ->(order) { {} } - self.discount_calculator = ::SuperGood::SolidusTaxJar::DiscountCalculator + self.discount_calculator = ::SuperGood::SolidusTaxjar::DiscountCalculator self.exception_handler = ->(e) { Rails.logger.error "An error occurred while fetching TaxJar tax rates - #{e}: #{e.message}" } |