Class: ActiveFacts::API::Role
- Inherits:
-
Object
- Object
- ActiveFacts::API::Role
- Defined in:
- lib/activefacts/rmap/object_type.rb
Overview
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)
Instance Method Summary collapse
Instance Method Details
#counterpart_unary_has_precedence ⇒ Object
176 177 178 179 180 |
# 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 |