From c5834b26aae6cab5770b949b22bb11a685506ba5 Mon Sep 17 00:00:00 2001 From: Jared Norman Date: Mon, 28 Jan 2019 10:52:23 -0800 Subject: Add test mode for disabling calculator --- lib/super_good/solidus_taxjar.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/super_good/solidus_taxjar.rb') diff --git a/lib/super_good/solidus_taxjar.rb b/lib/super_good/solidus_taxjar.rb index f525ee7..82f9500 100644 --- a/lib/super_good/solidus_taxjar.rb +++ b/lib/super_good/solidus_taxjar.rb @@ -11,8 +11,10 @@ module SuperGood module SolidusTaxJar class << self attr_accessor :discount_calculator + attr_accessor :test_mode end self.discount_calculator = ::SuperGood::SolidusTaxJar::DiscountCalculator + self.test_mode = false end end -- cgit v1.2.3