diff options
author | José Valim <jose.valim@gmail.com> | 2009-10-21 11:12:30 -0200 |
---|---|---|
committer | Yehuda Katz <wycats@gmail.com> | 2009-10-27 16:46:19 -0700 |
commit | c28a45ad8bb72896d84285158e7f5dc728933062 (patch) | |
tree | 2dceaf28acf656e2b6696925f1194f3325c3a8d0 /railties/Rakefile | |
parent | b30294b54ab019b0e53402c6927981f8c306e976 (diff) | |
download | rails-c28a45ad8bb72896d84285158e7f5dc728933062.tar.gz rails-c28a45ad8bb72896d84285158e7f5dc728933062.tar.bz2 rails-c28a45ad8bb72896d84285158e7f5dc728933062.zip |
Fix rake dev and update vendored Thor.
Signed-off-by: Yehuda Katz <wycats@gmail.com>
Diffstat (limited to 'railties/Rakefile')
-rw-r--r-- | railties/Rakefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/Rakefile b/railties/Rakefile index 0ba5ca10c2..ebac90a403 100644 --- a/railties/Rakefile +++ b/railties/Rakefile @@ -6,7 +6,8 @@ require 'rake/gempackagetask' require 'date' require 'rbconfig' -require File.join(File.dirname(__FILE__), 'lib/rails', 'version') +$LOAD_PATH.unshift "#{File.dirname(__FILE__)}/lib" +require 'rails' PKG_BUILD = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : '' PKG_NAME = ENV['PKG_NAME'] || 'rails' @@ -81,7 +82,6 @@ end # Run application generator ------------------------------------------------------------- task :create_rails do - $LOAD_PATH.unshift "#{File.dirname(__FILE__)}/lib" require 'rails/generators' require 'rails/generators/rails/app/app_generator' Rails::Generators::AppGenerator.start [ File.basename(PKG_DESTINATION), "--quiet" ], |