Skip to content

Commit 1002939

Browse files
committed
#182: to_a
1 parent 56dcc4f commit 1002939

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/factbase/terms/aggregates.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def sum(_fact, maps)
5050
maps.each do |m|
5151
vv = m[k.to_s]
5252
next if vv.nil?
53-
vv = [vv] unless vv.respond_to?(:each)
53+
vv = [vv] unless vv.respond_to?(:to_a)
5454
vv.each do |v|
5555
sum += v
5656
end

0 commit comments

Comments
 (0)