railties/lib/rails/generators/rails/scaffold/scaffold_generator.rb
# frozen_string_literal: true
require "rails/generators/rails/resource/resource_generator"
module Rails
module Generators
class ScaffoldGenerator < ResourceGenerator # :nodoc:
remove_hook_for :resource_controller
remove_class_option :actions
class_option :api, type: :boolean,
desc: "Generate API-only controller and tests, with no view templates"
class_option :resource_route, type: :boolean
hook_for :scaffold_controller, required: true
end
end
end