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



                 
                                                                                    
require 'rails/generators'

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