lib/rbbt/association/item.rb in rbbt-util-5.5.4 vs lib/rbbt/association/item.rb in rbbt-util-5.5.5
- old
+ new
@@ -35,10 +35,11 @@
end
property :info => :array2single do
fields = knowledge_base.index_fields(database)
return [{}] * self.length if fields.nil? or fields.empty?
+
value.collect{|v|
- Hash[*v.zip(fields).flatten]
+ Hash[*fields.zip(v).flatten]
}
end
end