lib/rbbt/association/item.rb in rbbt-util-5.5.12 vs lib/rbbt/association/item.rb in rbbt-util-5.5.13
- old
+ new
@@ -19,10 +19,10 @@
self.clean_annotations.collect{|p| p[/[^~]+/] }
end
property :target_entity => :array2single do
type = reverse ? knowledge_base.source(database) : knowledge_base.target(database)
- knowledge_base.annotate self.target, type if self.target.any?
+ knowledge_base.annotate self.target, type, database if self.target.any?
end
property :source_entity => :array2single do
type = reverse ? knowledge_base.target(database) : knowledge_base.source(database)
knowledge_base.annotate self.source, type if self.target.any?