Class: CSVStepImporter::Model::ImportableModel

Inherits:
Model show all
Defined in:
lib/csv_step_importer/model/importable_model.rb

Instance Attribute Summary

Attributes inherited from Model

#dao_values

Attributes inherited from Node

#children, #env, #parent

Instance Method Summary collapse

Methods inherited from Model

#add_daos, #build_daos_for_row, cache_key, #dao_node, #daos, #filter_daos!, #initialize, #link_rows_to_daos

Methods inherited from Node

#add_children, #build_env, #create_or_update, #initialize, #run_validations!, #validate_children

Methods inherited from Base

#ancestors, #assign_attributes, #create_or_update, #inspect, #persisted?, #save, #save!, set, #to_s, #update

Constructor Details

This class inherits a constructor from CSVStepImporter::Model::Model

Instance Method Details

#add_model_childrenObject

Logic



41
42
43
# File 'lib/csv_step_importer/model/importable_model.rb', line 41

def add_model_children
  add_children [dao_node, importer_class, reflector_class], prepend: true
end