aboutsummaryrefslogblamecommitdiffstats
path: root/railties/lib/rails/commands/destroy.rb
blob: a2eff377ce202cd3d6311c6368e752f2c44bf265 (plain) (tree)
1
2
3
4
5
6
7
8
9


                            





                        
                                                                                          
require 'rails/generators'
Rails::Generators.configure!

if ARGV.size == 0
  Rails::Generators.help
  exit
end

name = ARGV.shift
Rails::Generators.invoke name, ARGV, :behavior => :revoke, :destination_root => Rails.root