diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-10-16 19:24:19 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-10-16 19:24:19 -0500 |
commit | c40f79f3304ecfb45699a540da8a5e68c2a2af44 (patch) | |
tree | 80cd1646e839268ea26b7e0da5c7f32e576f658f | |
parent | 4cebd41d9e9764b29a5673a298a71b0c530b2bf6 (diff) | |
download | rails-c40f79f3304ecfb45699a540da8a5e68c2a2af44.tar.gz rails-c40f79f3304ecfb45699a540da8a5e68c2a2af44.tar.bz2 rails-c40f79f3304ecfb45699a540da8a5e68c2a2af44.zip |
script/about should require environment
-rw-r--r-- | railties/lib/rails/commands/about.rb | 1 | ||||
-rwxr-xr-x | railties/lib/rails/generators/rails/app/templates/script/about.tt | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/railties/lib/rails/commands/about.rb b/railties/lib/rails/commands/about.rb index 6fdbc08027..d4c30bbeb2 100644 --- a/railties/lib/rails/commands/about.rb +++ b/railties/lib/rails/commands/about.rb @@ -1,3 +1,2 @@ -Rails.initialize! require 'rails/info' puts Rails::Info diff --git a/railties/lib/rails/generators/rails/app/templates/script/about.tt b/railties/lib/rails/generators/rails/app/templates/script/about.tt index 90a320297e..7639d4040f 100755 --- a/railties/lib/rails/generators/rails/app/templates/script/about.tt +++ b/railties/lib/rails/generators/rails/app/templates/script/about.tt @@ -1,4 +1,4 @@ <%= shebang %> -require File.expand_path('../../config/application', __FILE__) +require File.expand_path('../../config/environment', __FILE__) $LOAD_PATH.unshift "#{RAILTIES_PATH}/builtin/rails_info" require 'rails/commands/about' |