blob: d082ba592c470f4176821984a9921b5145d8c7b8 (
plain) (
tree)
|
|
require 'rails/generators'
require 'active_support/core_ext/object/inclusion'
Rails::Generators.configure!
if ARGV.first.among?(nil, "-h", "--help")
Rails::Generators.help 'destroy'
exit
end
name = ARGV.shift
Rails::Generators.invoke name, ARGV, :behavior => :revoke, :destination_root => Rails.root
|