Class: Generators::Avo::FieldGenerator
- Inherits:
-
NamedBaseGenerator
- Object
- Rails::Generators::NamedBase
- NamedBaseGenerator
- Generators::Avo::FieldGenerator
- Defined in:
- lib/generators/avo/field_generator.rb
Instance Method Summary collapse
Methods inherited from NamedBaseGenerator
Constructor Details
This class inherits a constructor from Generators::Avo::NamedBaseGenerator
Instance Method Details
#handle ⇒ Object
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 |