diff options
author | Adnan Abdulally <adnan.abdulally@printivity.com> | 2021-01-29 10:27:06 -0800 |
---|---|---|
committer | Noah Silvera <noah@super.gd> | 2021-03-17 07:11:08 -0700 |
commit | 37fa5e7c81ee44012c86eabb140db760d55eae3b (patch) | |
tree | 0d8b8b9efe31b8999f06b3d18ea5f6f50049ef96 /lib/super_good/solidus_taxjar.rb | |
parent | 51ff05c3de3500fdc6aee55e2919646028055286 (diff) |
Rename classes that have API in their name to Api
This done so Zeitwerk can correctly can correctly load the class
from the filename.
Co-authored-by: Nick Van Doorn <nick@super.gd>
Diffstat (limited to 'lib/super_good/solidus_taxjar.rb')
-rw-r--r-- | lib/super_good/solidus_taxjar.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/super_good/solidus_taxjar.rb b/lib/super_good/solidus_taxjar.rb index 9c773be..36b5d85 100644 --- a/lib/super_good/solidus_taxjar.rb +++ b/lib/super_good/solidus_taxjar.rb @@ -28,14 +28,14 @@ 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 |