We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8997a97 commit 3ca62b5Copy full SHA for 3ca62b5
lib/factbase/terms/ordering.rb
@@ -24,7 +24,7 @@ def unique(fact, maps)
24
assert_args(1)
25
vv = the_values(0, fact, maps)
26
return false if vv.nil?
27
- vv = [vv] unless vv.respond_to?(:each)
+ vv = [vv] unless vv.respond_to?(:to_a)
28
vv.each do |v|
29
return false if @uniques.include?(v)
30
@uniques << v
0 commit comments