aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/commands/destroy.rb
diff options
context:
space:
mode:
Diffstat (limited to 'railties/lib/commands/destroy.rb')
-rw-r--r--railties/lib/commands/destroy.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/railties/lib/commands/destroy.rb b/railties/lib/commands/destroy.rb
new file mode 100644
index 0000000000..f4b81d6511
--- /dev/null
+++ b/railties/lib/commands/destroy.rb
@@ -0,0 +1,6 @@
+require "#{RAILS_ROOT}/config/environment"
+require 'rails_generator'
+require 'rails_generator/scripts/destroy'
+
+ARGV.shift if ['--help', '-h'].include?(ARGV[0])
+Rails::Generator::Scripts::Destroy.new.run(ARGV)