diff options
author | José Valim <jose.valim@gmail.com> | 2009-07-08 12:55:50 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2009-07-08 12:55:50 +0200 |
commit | 09c288f0c5b5f9da4473bb321cccb766d9f59d7e (patch) | |
tree | d12cb86acdbe32ca2c6c9971ff9921360a02b1ef /railties/lib/commands | |
parent | c9ea21717eefb9e9b49891c519cc4d121ef7bb74 (diff) | |
download | rails-09c288f0c5b5f9da4473bb321cccb766d9f59d7e.tar.gz rails-09c288f0c5b5f9da4473bb321cccb766d9f59d7e.tar.bz2 rails-09c288f0c5b5f9da4473bb321cccb766d9f59d7e.zip |
Add the new generators environment and update commands.
Diffstat (limited to 'railties/lib/commands')
-rw-r--r-- | railties/lib/commands/destroy.rb | 2 | ||||
-rwxr-xr-x | railties/lib/commands/generate.rb | 2 | ||||
-rw-r--r-- | railties/lib/commands/update.rb | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/railties/lib/commands/destroy.rb b/railties/lib/commands/destroy.rb index 075fe5bb12..6e740bb754 100644 --- a/railties/lib/commands/destroy.rb +++ b/railties/lib/commands/destroy.rb @@ -1,5 +1,5 @@ +RAILS_ENV.replace "generators" require "#{RAILS_ROOT}/config/environment" -require 'generators' if ARGV.size == 0 Rails::Generators.help diff --git a/railties/lib/commands/generate.rb b/railties/lib/commands/generate.rb index f6db965960..5408e78157 100755 --- a/railties/lib/commands/generate.rb +++ b/railties/lib/commands/generate.rb @@ -1,5 +1,5 @@ +RAILS_ENV.replace "generators" require "#{RAILS_ROOT}/config/environment" -require 'generators' if ARGV.size == 0 Rails::Generators.help diff --git a/railties/lib/commands/update.rb b/railties/lib/commands/update.rb index 50b7d73e0e..5ce1068e1a 100644 --- a/railties/lib/commands/update.rb +++ b/railties/lib/commands/update.rb @@ -1,5 +1,5 @@ +RAILS_ENV.replace "generators" require "#{RAILS_ROOT}/config/environment" -require 'generators' if ARGV.size == 0 Rails::Generators.help |