Module: Importer::Adapters::DataMapperAdapter::InstanceMethods
- Defined in:
- lib/importer/adapters/data_mapper_adapter.rb
Instance Method Summary collapse
-
#merge_attributes_on_import(import, attributes) ⇒ Object
Merges attributes of a detected object with current object’s ones.
Instance Method Details
#merge_attributes_on_import(import, attributes) ⇒ Object
Merges attributes of a detected object with current object’s ones. By default it simply assigns detected attributes to the object. Override this method in your model to provide some more sophisticated behavior.
-
import
- current import -
attributes
- detected object’s attributes hash
98 99 100 |
# File 'lib/importer/adapters/data_mapper_adapter.rb', line 98 def merge_attributes_on_import(import, attributes) self.attributes = attributes end |