diff options
author | José Valim <jose.valim@gmail.com> | 2010-01-07 21:24:50 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-01-07 21:24:50 +0100 |
commit | 3022ce4f723075d201d9a20f7bca3537aa76a7d8 (patch) | |
tree | 37f6413dd2809d7efb7296b5e1138965544b909f /railties/lib/rails/commands/generate.rb | |
parent | ccc9f0b7de02158a42e5f654cf00ed8b40e79781 (diff) | |
download | rails-3022ce4f723075d201d9a20f7bca3537aa76a7d8.tar.gz rails-3022ce4f723075d201d9a20f7bca3537aa76a7d8.tar.bz2 rails-3022ce4f723075d201d9a20f7bca3537aa76a7d8.zip |
No more hacks to ensure generators are executed inside Rails.root.
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 c5e3ae3529..c1120aad74 100755 --- a/railties/lib/rails/commands/generate.rb +++ b/railties/lib/rails/commands/generate.rb @@ -7,4 +7,4 @@ if ARGV.size == 0 end name = ARGV.shift -Rails::Generators.invoke name, ARGV, :behavior => :invoke +Rails::Generators.invoke name, ARGV, :behavior => :invoke, :destination_root => Rails.root |