script/rails in solidus_frontend-2.5.2 vs script/rails in solidus_frontend-2.6.0.rc1
- old
+ new
@@ -1,8 +1,10 @@
#!/usr/bin/env ruby
+# frozen_string_literal: true
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
-ENGINE_ROOT = File.expand_path('../..', __FILE__)
-ENGINE_PATH = File.expand_path('../../lib/spree/frontend/engine', __FILE__)
+ENGINE_ROOT = File.expand_path('..', __dir__)
+ENGINE_PATH = File.expand_path('../lib/spree/frontend/engine', __dir__)
require 'rails/all'
require 'rails/engine/commands'