diff options
author | José Valim <jose.valim@gmail.com> | 2010-06-02 08:45:03 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-06-02 08:45:33 +0200 |
commit | afc102698672cdf546a15424471d3287a39dbb06 (patch) | |
tree | cdbd7d2722f3dc38830db3b0e97c0a57bb90aef9 /railties/lib/rails/commands/generate.rb | |
parent | fdd203f964e31fd81a16be8f68462a64a17b0d92 (diff) | |
download | rails-afc102698672cdf546a15424471d3287a39dbb06.tar.gz rails-afc102698672cdf546a15424471d3287a39dbb06.tar.bz2 rails-afc102698672cdf546a15424471d3287a39dbb06.zip |
Still copy application configuration to generator even if they are required earlier. Also tidy up the guide a little bit.
Diffstat (limited to 'railties/lib/rails/commands/generate.rb')
-rwxr-xr-x | railties/lib/rails/commands/generate.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/railties/lib/rails/commands/generate.rb b/railties/lib/rails/commands/generate.rb index 7d05a30de8..1b3eef504a 100755 --- a/railties/lib/rails/commands/generate.rb +++ b/railties/lib/rails/commands/generate.rb @@ -1,4 +1,5 @@ require 'rails/generators' +Rails::Generators.configure! if [nil, "-h", "--help"].include?(ARGV.first) Rails::Generators.help 'generate' |