Sha256: bcf467dc4f4e59feaf81007df3f9a8aa39141d5b1a3b327ec6f1c4367ce73135
Contents?: true
Size: 363 Bytes
Versions: 4
Compression:
Stored size: 363 Bytes
Contents
module Machinist module Generators #:nodoc: class ModelGenerator < Rails::Generators::NamedBase #:nodoc: argument :attributes, type: :array, default: [], banner: 'field:type field:type' def create_blueprint append_file 'spec/support/blueprints.rb', "\n#{class_name}.blueprint do\n # Attributes here\nend\n" end end end end
Version data entries
4 entries across 4 versions & 1 rubygems