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