lib/usher/route/util.rb in joshbuddy-usher-0.5.6 vs lib/usher/route/util.rb in joshbuddy-usher-0.5.7
- old
+ new
@@ -20,10 +20,10 @@
def self.cartesian_product!(lval, rval)
product = []
(lval.size * rval.size).times do |index|
val = []
val.push(*lval[index % lval.size])
- val.push(*rval[index % rval.size])
+ val.push(*rval[index / lval.size])
product << val
end
lval.replace(product)
end
\ No newline at end of file