class ActiveFacts::API::Role

A one-to-one can be absorbed into either table. We decide which by comparing the names, just as happens in ObjectType.populate_reference (see reference.rb)

Public Instance Methods

counterpart_unary_has_precedence() click to toggle source
# File lib/activefacts/rmap/object_type.rb, line 176
def counterpart_unary_has_precedence
  counterpart_object_type.is_table_subtype and
    counterpart.unique and
    owner.name.downcase < counterpart.owner.name.downcase
end