Sha256: b759d3ed306411776927766bc1a521e9cac6d3bc942bceef576d034d73183dec

Contents?: true

Size: 406 Bytes

Versions: 6

Compression:

Stored size: 406 Bytes

Contents

# frozen_string_literal: true

require "rails/generators/rails/resource/resource_generator"

module Inertia
  module Generators
    class ScaffoldGenerator < Rails::Generators::ResourceGenerator # :nodoc:
      remove_hook_for :resource_controller
      remove_class_option :actions

      class_option :resource_route, type: :boolean

      hook_for :scaffold_controller, required: true
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
inertia_rails-contrib-0.3.0 lib/generators/inertia/scaffold/scaffold_generator.rb
inertia_rails-contrib-0.2.2 lib/generators/inertia/scaffold/scaffold_generator.rb
inertia_rails-contrib-0.2.1 lib/generators/inertia/scaffold/scaffold_generator.rb
inertia_rails-contrib-0.2.0 lib/generators/inertia/scaffold/scaffold_generator.rb
inertia_rails-contrib-0.1.1 lib/generators/inertia/scaffold/scaffold_generator.rb
inertia_rails-contrib-0.1.0 lib/generators/inertia/scaffold/scaffold_generator.rb