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:
parent
0cd7d4d8cf
commit
7b8f9d254a
2 changed files with 3 additions and 2 deletions
|
@ -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))
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue