Class: Generators::Avo::FieldGenerator

Inherits:
NamedBaseGenerator show all
Defined in:
lib/generators/avo/field_generator.rb

Instance Method Summary collapse

Methods inherited from NamedBaseGenerator

#initialize

Constructor Details

This class inherits a constructor from Generators::Avo::NamedBaseGenerator

Instance Method Details

#handleObject



13
14
15
16
17
18
# File 'lib/generators/avo/field_generator.rb', line 13

def handle
  return field_from_template if field_template.present?

  directory "field/components", destination_components_path
  template "field/%singular_name%_field.rb.tt", destination_field_path
end