summaryrefslogtreecommitdiff
path: root/lib/super_good/solidus_taxjar.rb
diff options
context:
space:
mode:
authorJared Norman <jared@super.gd>2019-01-28 10:52:23 -0800
committerJared Norman <jared@super.gd>2019-01-28 10:52:23 -0800
commitc5834b26aae6cab5770b949b22bb11a685506ba5 (patch)
treedcf1603e46d1277cb0aa480c917e303241d6d27d /lib/super_good/solidus_taxjar.rb
parentc1bf02cf6586b537535956a98c3864d05ecdecc6 (diff)
Add test mode for disabling calculator
Diffstat (limited to 'lib/super_good/solidus_taxjar.rb')
-rw-r--r--lib/super_good/solidus_taxjar.rb2
1 files changed, 2 insertions, 0 deletions
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