lib/activefacts/api/role.rb in activefacts-0.7.2 vs lib/activefacts/api/role.rb in activefacts-0.7.3

- old
+ new

@@ -28,10 +28,10 @@ @counterpart_concept = counterpart_concept @counterpart = counterpart @name = name @mandatory = mandatory @unique = unique - @is_identifying = @owner.respond_to?(:identifying_role_names) && @owner.identifying_role_names.include?(@name) + @is_identifying = @owner.is_entity_type && @owner.identifying_role_names.include?(@name) end # Is this role a unary (created by maybe)? If so, it has no counterpart def unary? # N.B. A role with a forward reference looks unary until it is resolved.