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