lib/activefacts/api/instance.rb in activefacts-api-0.9.4 vs lib/activefacts/api/instance.rb in activefacts-api-0.9.5
- old
+ new
@@ -44,10 +44,10 @@
next false unless klass.identifying_roles.include?(role)
irns = klass.identifying_role_names
if last_irns != irns
last_identity = identifying_role_values(klass)
role_position = irns.index(role.name)
- last_identity[role_position] = value
+ last_identity[role_position] = value.identifying_role_values
end
@constellation.instances[klass][last_identity]
end
raise DuplicateIdentifyingValueException.new(self.class, role.name, value) if duplicate