Skip to content

Commit 3ca62b5

Browse files
committed
#182: to_a
1 parent 8997a97 commit 3ca62b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/factbase/terms/ordering.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def unique(fact, maps)
2424
assert_args(1)
2525
vv = the_values(0, fact, maps)
2626
return false if vv.nil?
27-
vv = [vv] unless vv.respond_to?(:each)
27+
vv = [vv] unless vv.respond_to?(:to_a)
2828
vv.each do |v|
2929
return false if @uniques.include?(v)
3030
@uniques << v

0 commit comments

Comments
 (0)