Sha256: 8a5b3660a258dd7938dc653abdace336bb5bbd1cd6456a5038cb725794e03488

Contents?: true

Size: 521 Bytes

Versions: 8

Compression:

Stored size: 521 Bytes

Contents

# frozen_string_literal: true

# load original rails scaffold_controller generator
require 'rails/generators/rails/scaffold_controller/scaffold_controller_generator'

# override rails genarator to switch template directory
module Rails
  module Generators
    class ActionArgsScaffoldControllerGenerator < ::Rails::Generators::ScaffoldControllerGenerator
      argument :attributes, type: :array, default: [], banner: 'field:type field:type'
      source_root File.expand_path('../templates', __FILE__)
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
action_args-2.7.3 lib/generators/rails/action_args_scaffold_controller_generator.rb
action_args-2.7.2 lib/generators/rails/action_args_scaffold_controller_generator.rb
action_args-2.7.1 lib/generators/rails/action_args_scaffold_controller_generator.rb
action_args-2.7.0 lib/generators/rails/action_args_scaffold_controller_generator.rb
action_args-2.6.0 lib/generators/rails/action_args_scaffold_controller_generator.rb
action_args-2.5.0 lib/generators/rails/action_args_scaffold_controller_generator.rb
action_args-2.4.0 lib/generators/rails/action_args_scaffold_controller_generator.rb
action_args-2.3.2 lib/generators/rails/action_args_scaffold_controller_generator.rb