aboutsummaryrefslogtreecommitdiffstats
path: root/railties/Rakefile
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2009-10-11 12:32:28 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2009-10-11 12:35:01 -0700
commit7b8f9d254a331dfae0920d6112e94b23e9c95283 (patch)
tree41572783c74e1e1d7ddb0089eca45698be59b474 /railties/Rakefile
parent0cd7d4d8cfaa04f77248eefd4fbb00348fece0c0 (diff)
downloadrails-7b8f9d254a331dfae0920d6112e94b23e9c95283.tar.gz
rails-7b8f9d254a331dfae0920d6112e94b23e9c95283.tar.bz2
rails-7b8f9d254a331dfae0920d6112e94b23e9c95283.zip
Fix generators load paths
Diffstat (limited to 'railties/Rakefile')
-rw-r--r--railties/Rakefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/railties/Rakefile b/railties/Rakefile
index 52175a8949..23f9603b65 100644
--- a/railties/Rakefile
+++ b/railties/Rakefile
@@ -80,7 +80,8 @@ end
# Run application generator -------------------------------------------------------------
task :create_rails do
- require File.join(File.dirname(__FILE__), 'lib', 'rails', 'generators')
+ $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" ],
:destination_root => File.expand_path(File.dirname(PKG_DESTINATION))