templates/rails_app/bin/rails in railman-0.6.20 vs templates/rails_app/bin/rails in railman-1.0.0

- old
+ new

@@ -1,4 +1,9 @@ #!/usr/bin/env ruby -APP_PATH = File.expand_path('../../config/application', __FILE__) +begin + load File.expand_path('../spring', __FILE__) +rescue LoadError => e + raise unless e.message.include?('spring') +end +APP_PATH = File.expand_path('../config/application', __dir__) require_relative '../config/boot' require 'rails/commands'