lib/spree_cmd/templates/extension/script/rails.tt in spree_cmd-1.0.7 vs lib/spree_cmd/templates/extension/script/rails.tt in spree_cmd-1.1.0.rc1
- old
+ new
@@ -1,5 +1,7 @@
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
-APP_PATH = File.expand_path('../../config/application', __FILE__)
-require File.expand_path('../../config/boot', __FILE__)
-require 'rails/commands'
+ENGINE_ROOT = File.expand_path('../..', __FILE__)
+ENGINE_PATH = File.expand_path('../../lib/<%= file_name -%>/engine', __FILE__)
+
+require 'rails/all'
+require 'rails/engine/commands'