Class: AwsRecord::Generators::ScaffoldGenerator

Inherits:
ResourceGenerator show all
Defined in:
lib/generators/aws_record/scaffold/scaffold_generator.rb

Instance Attribute Summary

Attributes inherited from Base

#gsi_rw_units, #gsis, #length_validations, #primary_read_units, #primary_write_units, #required_attrs

Instance Method Summary collapse

Methods inherited from ModelGenerator

#create_model, #create_table_config

Instance Method Details

#handle_skipObject



32
33
34
35
# File 'lib/generators/aws_record/scaffold/scaffold_generator.rb', line 32

def handle_skip
  @options = @options.merge(stylesheets: false) unless options[:assets]
  @options = @options.merge(stylesheet_engine: false) unless options[:stylesheets] && options[:scaffold_stylesheet]
end