summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Van Doorn <nick@super.gd>2021-02-24 15:59:58 -0800
committerGitHub <noreply@github.com>2021-02-24 15:59:58 -0800
commite5b3490f518f0ae56fa50cbf2ab70fdfcd61241c (patch)
tree9d28683507abf83700789e7585d6b08aceb4ebe9
parent2f2b1d03ca7c6435298daa0705918b4b9f0fcd04 (diff)
parenta6d72165bb3edfa95c2f681ff032619e293e4181 (diff)
Merge pull request #39 from Noah-Silvera/add-taxjar-rails-engine
Add taxjar rails engine
-rw-r--r--CHANGELOG.md1
-rw-r--r--lib/super_good-solidus_taxjar.rb3
-rw-r--r--lib/super_good/engine.rb8
3 files changed, 12 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 75cdefb..8e455dc 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,7 @@
- [#21](https://github.com/SuperGoodSoft/solidus_taxjar/pull/21) Migrated project to `solidus_dev_support`
- [#22](https://github.com/SuperGoodSoft/solidus_taxjar/pull/22) Added support for TaxJar address validation API through `SuperGood::SolidusTaxJar::Addresses` class
- [#34](https://github.com/SuperGoodSoft/solidus_taxjar/pull/34) Include API version in request headers
+- [#38](https://github.com/SuperGoodSoft/solidus_taxjar/pull/38) Added a rails engine to support future solidus backend UI
## v0.17.1
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