1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix generators load paths

This commit is contained in:
Jeremy Kemper 2009-10-11 12:32:28 -07:00
parent 0cd7d4d8cf
commit 7b8f9d254a
2 changed files with 3 additions and 2 deletions

View file

@ -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))

View file

@ -1,4 +1,4 @@
activesupport_path = "#{File.dirname(__FILE__)}/../../activesupport/lib"
activesupport_path = "#{File.dirname(__FILE__)}/../../../activesupport/lib"
$LOAD_PATH.unshift(activesupport_path) if File.directory?(activesupport_path)
require 'active_support'
require 'active_support/core_ext/object/blank'