Method: Datamappify::Repository::MappingDSL#for_entity
- Defined in:
- lib/datamappify/repository/mapping_dsl.rb
#for_entity(entity_class) ⇒ void
This method returns an undefined value.
If the entity is lazy loaded then it assigns the repository itself back to the entity
12 13 14 15 16 |
# File 'lib/datamappify/repository/mapping_dsl.rb', line 12 def for_entity(entity_class) data_mapper.entity_class = entity_class assign_to_entity if lazy_load? end |