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 | |
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')
-rw-r--r-- | railties/lib/rails/commands/destroy.rb | 2 | ||||
-rwxr-xr-x | railties/lib/rails/commands/generate.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails/commands/destroy.rb b/railties/lib/rails/commands/destroy.rb index f85c17bb94..a2eff377ce 100644 --- a/railties/lib/rails/commands/destroy.rb +++ b/railties/lib/rails/commands/destroy.rb @@ -7,4 +7,4 @@ if ARGV.size == 0 end name = ARGV.shift -Rails::Generators.invoke name, ARGV, :behavior => :revoke +Rails::Generators.invoke name, ARGV, :behavior => :revoke, :destination_root => Rails.root 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 |