blob: c802910b5d25bdd5aa626cc304991cf869aed6bd (
plain) (
tree)
|
|
require "rails/generators"
module Rails
module Command
class DestroyCommand < Base # :nodoc:
no_commands do
def help
Rails::Generators.help self.class.command_name
end
end
def perform(*)
generator = args.shift
return help unless generator
require_application_and_environment!
Rails.application.load_generators
Rails::Generators.invoke generator, args, behavior: :revoke, destination_root: Rails.root
end
end
end
end
|