aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/commands/destroy.rb
blob: 1270fdd03396bd3bf6b52741b2aa87c95912fec1 (plain) (blame)
1
2
3
4
5
6
7
8
9
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'generators'))

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

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