diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-10-16 18:58:35 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-10-16 18:58:35 -0500 |
commit | d8594026962704b6b51e188a29406fbd22bb31ce (patch) | |
tree | 60e24269b4cabaebfcf21a6c9c7b5da0f05f1f29 /railties/lib/rails/commands/generate.rb | |
parent | 92bfc693f2293fe5d459a6edb4216594cd5a7eb2 (diff) | |
download | rails-d8594026962704b6b51e188a29406fbd22bb31ce.tar.gz rails-d8594026962704b6b51e188a29406fbd22bb31ce.tar.bz2 rails-d8594026962704b6b51e188a29406fbd22bb31ce.zip |
Use Rails.initialize! where we just want to run the initializers and aren't concerned about the config
Diffstat (limited to 'railties/lib/rails/commands/generate.rb')
-rwxr-xr-x | railties/lib/rails/commands/generate.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/commands/generate.rb b/railties/lib/rails/commands/generate.rb index cfa6a51d94..22aefa803a 100755 --- a/railties/lib/rails/commands/generate.rb +++ b/railties/lib/rails/commands/generate.rb @@ -1,5 +1,5 @@ require File.expand_path(File.join(File.dirname(__FILE__), '..', 'generators')) -Rails.application.new +Rails.initialize! if ARGV.size == 0 Rails::Generators.help |