method

generate_or_destroy

rails latest stable - Class: Rails::CommandsTasks

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v5.0.0.1) is shown here.

generate_or_destroy(command)
private

No documentation available.

# File railties/lib/rails/commands/commands_tasks.rb, line 141
      def generate_or_destroy(command)
        require 'rails/generators'
        require_application_and_environment!
        Rails.application.load_generators
        require_command!(command)
      end