lib/rbbt/association/item.rb in rbbt-util-5.19.24 vs lib/rbbt/association/item.rb in rbbt-util-5.19.25

- old
+ new

@@ -55,36 +55,35 @@ property :source_entity_type => :both do Entity.formats[source_type].to_s end property :target_type => :both do - type = reverse ? knowledge_base.source(database) : knowledge_base.target(database) + knowledge_base.target(database) end property :source_type => :both do - reverse ? knowledge_base.target(database) : knowledge_base.source(database) + knowledge_base.source(database) end property :undirected => :both do knowledge_base.undirected(database) end property :target_entity => :array2single do - type = reverse ? knowledge_base.source(database) : knowledge_base.target(database) + type = knowledge_base.target(database) 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) + type = knowledge_base.source(database) knowledge_base.annotate self.source, type, database #if self.source.any? end property :index => :both do |database| @index ||= knowledge_base.get_index(database) end property :value => :array2single do index = index(database) - #value = (reverse ? index.reverse : index).chunked_values_at self value = index.chunked_values_at self value.collect{|v| NamedArray.setup(v, index.fields)} end property :info_fields => :both do