Sha256: 0ac2598eac25c8edea8c73b51c646abd57667fe87e17437a4c1ada66d3c7c63f
Contents?: true
Size: 660 Bytes
Versions: 39
Compression:
Stored size: 660 Bytes
Contents
# frozen_string_literal: true require "rails/generators" module Rails module Command class DestroyCommand < Base # :nodoc: no_commands do def help boot_application! load_generators Rails::Generators.help self.class.command_name end end desc "destroy GENERATOR", "Remove code generated by `bin/rails generate`" def perform(*) generator = args.shift return help unless generator boot_application! load_generators Rails::Generators.invoke generator, args, behavior: :revoke, destination_root: Rails::Command.root end end end end
Version data entries
39 entries across 39 versions & 5 rubygems