aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/commands/destroy.rb
diff options
context:
space:
mode:
Diffstat (limited to 'railties/lib/rails/commands/destroy.rb')
-rw-r--r--railties/lib/rails/commands/destroy.rb11
1 files changed, 0 insertions, 11 deletions
diff --git a/railties/lib/rails/commands/destroy.rb b/railties/lib/rails/commands/destroy.rb
deleted file mode 100644
index ce26cc3fde..0000000000
--- a/railties/lib/rails/commands/destroy.rb
+++ /dev/null
@@ -1,11 +0,0 @@
-require 'rails/generators'
-
-#if no argument/-h/--help is passed to rails destroy command, then
-#it generates the help associated.
-if [nil, "-h", "--help"].include?(ARGV.first)
- Rails::Generators.help 'destroy'
- exit
-end
-
-name = ARGV.shift
-Rails::Generators.invoke name, ARGV, behavior: :revoke, destination_root: Rails.root