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