We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 56dcc4f commit 1002939Copy full SHA for 1002939
lib/factbase/terms/aggregates.rb
@@ -50,7 +50,7 @@ def sum(_fact, maps)
50
maps.each do |m|
51
vv = m[k.to_s]
52
next if vv.nil?
53
- vv = [vv] unless vv.respond_to?(:each)
+ vv = [vv] unless vv.respond_to?(:to_a)
54
vv.each do |v|
55
sum += v
56
end
0 commit comments