aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/generators/rails
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@gmail.com>2010-02-08 16:05:22 +0100
committerJosé Valim <jose.valim@gmail.com>2010-02-08 16:05:22 +0100
commit7f7dfd2babf0de37f64a1caf5c0f9e65a91112d1 (patch)
tree0e4ceb145bc215051bc845d5522cdca1dcf3c64d /railties/lib/generators/rails
parent17b451898c09f560cef105ea120d8e767256555a (diff)
downloadrails-7f7dfd2babf0de37f64a1caf5c0f9e65a91112d1.tar.gz
rails-7f7dfd2babf0de37f64a1caf5c0f9e65a91112d1.tar.bz2
rails-7f7dfd2babf0de37f64a1caf5c0f9e65a91112d1.zip
Take into account gem versions (so script/rails server can work outside the application) and use Rails::Application.root instead of ROOT_PATH.
Diffstat (limited to 'railties/lib/generators/rails')
-rw-r--r--railties/lib/generators/rails/app/templates/script/rails1
1 files changed, 0 insertions, 1 deletions
diff --git a/railties/lib/generators/rails/app/templates/script/rails b/railties/lib/generators/rails/app/templates/script/rails
index 2fcf6d09b5..b01d1ee183 100644
--- a/railties/lib/generators/rails/app/templates/script/rails
+++ b/railties/lib/generators/rails/app/templates/script/rails
@@ -3,7 +3,6 @@
ENV_PATH = File.expand_path('../../config/environment', __FILE__)
BOOT_PATH = File.expand_path('../../config/boot', __FILE__)
APP_PATH = File.expand_path('../../config/application', __FILE__)
-ROOT_PATH = File.expand_path('../..', __FILE__)
require BOOT_PATH
require 'rails/commands'