summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoah Silvera <noah@super.gd>2021-02-17 10:20:52 -0800
committerNoah Silvera <noah@super.gd>2021-02-22 12:44:03 -0800
commit4be2a36aabf575c7e02cf021eff8d67fc6d9eb66 (patch)
treeb9d599c302c301273e8ffb700c88047feb006a94
parent2f2b1d03ca7c6435298daa0705918b4b9f0fcd04 (diff)
Add Taxjar Rails engine
Upcoming work to get this extension officially certified with Taxjar will require the addition of UI components into the solidus backend. Creating a rails engine for the new rails components of this extension is a prerequisite to any UI work. Co-authored-by: Nick Van Doorn <nick@super.gd> Co-authored-by: Adam Mueller <adam@super.gd>
-rw-r--r--lib/super_good-solidus_taxjar.rb3
-rw-r--r--lib/super_good/engine.rb8
2 files changed, 11 insertions, 0 deletions
diff --git a/lib/super_good-solidus_taxjar.rb b/lib/super_good-solidus_taxjar.rb
index f7f97c7..768d9f8 100644
--- a/lib/super_good-solidus_taxjar.rb
+++ b/lib/super_good-solidus_taxjar.rb
@@ -1 +1,4 @@
+# frozen_string_literal: true
+
require "super_good/solidus_taxjar"
+require "super_good/engine"
diff --git a/lib/super_good/engine.rb b/lib/super_good/engine.rb
new file mode 100644
index 0000000..a73edd5
--- /dev/null
+++ b/lib/super_good/engine.rb
@@ -0,0 +1,8 @@
+# frozen_string_literal: true
+
+module SuperGoodSolidusTaxjar
+ class Engine < Rails::Engine
+ isolate_namespace Spree
+ engine_name 'super_good-solidus_taxjar'
+ end
+end