Class: ActiveEntity::Reflection::AggregateReflection

Inherits:
MacroEmbeddedReflection show all
Defined in:
lib/active_entity/reflection.rb

Overview

Holds all the metadata about an aggregation as it was specified in the Active Entity class.

Instance Attribute Summary

Attributes inherited from MacroEmbeddedReflection

#active_entity, #name, #options

Instance Method Summary collapse

Methods inherited from MacroEmbeddedReflection

#==, #compute_class, #initialize, #klass

Methods inherited from AbstractEmbeddedReflection

#build_association, #check_validity_of_inverse!, #class_name, #embedded?, #inverse_of, #through_reflection?

Methods inherited from AbstractReflection

#embedded?

Constructor Details

This class inherits a constructor from ActiveEntity::Reflection::MacroEmbeddedReflection

Instance Method Details

#mappingObject

:nodoc:



262
263
264
265
# File 'lib/active_entity/reflection.rb', line 262

def mapping
  mapping = options[:mapping] || [name, name]
  mapping.first.is_a?(Array) ? mapping : [mapping]
end