summaryrefslogtreecommitdiff
path: root/bin/rails-engine
diff options
context:
space:
mode:
authorAlessandro Desantis <desa.alessandro@gmail.com>2020-06-13 17:22:13 +0200
committerAlessandro Desantis <desa.alessandro@gmail.com>2020-06-13 17:29:14 +0200
commit5b1b4c685e6baa5c6fa52ef2da479205f2c6e632 (patch)
tree863dfc0ba12468d3f9c02a72001d336b51225ee7 /bin/rails-engine
parentf0e6a42a0229f42b3ad42fbd157c958696388e2e (diff)
Update to the latest solidus_dev_support
Diffstat (limited to 'bin/rails-engine')
-rwxr-xr-xbin/rails-engine13
1 files changed, 13 insertions, 0 deletions
diff --git a/bin/rails-engine b/bin/rails-engine
new file mode 100755
index 0000000..9b4844e
--- /dev/null
+++ b/bin/rails-engine
@@ -0,0 +1,13 @@
+#!/usr/bin/env ruby
+# This command will automatically be run when you run "rails" with Rails gems
+# installed from the root of your application.
+
+ENGINE_ROOT = File.expand_path('..', __dir__)
+ENGINE_PATH = File.expand_path('../lib/solidus_subscriptions/engine', __dir__)
+
+# Set up gems listed in the Gemfile.
+ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__)
+require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
+
+require 'rails/all'
+require 'rails/engine/commands'