Module: Importer::Adapters::MongoMapperAdapter::InstanceMethods
- Defined in:
- lib/importer/adapters/mongo_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
99 100 101 |
# File 'lib/importer/adapters/mongo_mapper_adapter.rb', line 99 def merge_attributes_on_import(import, attributes) self.attributes = attributes end |