1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/railties/lib/commands/destroy.rb

11 lines
183 B
Ruby
Raw Normal View History

require "#{RAILS_ROOT}/config/environment"
2009-07-02 05:08:07 -04:00
require 'generators'
2009-07-02 05:08:07 -04:00
if ARGV.size == 0
Rails::Generators.help
exit
end
name = ARGV.shift
Rails::Generators.invoke name, ARGV, :revoke