Method: ActiveEntity::Reflection::MacroEmbeddedReflection#==

Defined in:
lib/active_entity/reflection.rb

#==(other_aggregation) ⇒ Object

Returns true if self and other_aggregation have the same name attribute, active_entity attribute, and other_aggregation has an options hash assigned to it.



244
245
246
247
248
249
250
# File 'lib/active_entity/reflection.rb', line 244

def ==(other_aggregation)
  super ||
    other_aggregation.kind_of?(self.class) &&
      name == other_aggregation.name &&
      !other_aggregation.options.nil? &&
      active_entity == other_aggregation.active_entity
end