Permalink
Browse files

Array() does the trick.

  • Loading branch information...
1 parent 3caae01 commit 8316312300be94ff17facdbfbd0ea3d9cc9df4a4 @jnunemaker jnunemaker committed May 7, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/plucky/criteria_merger.rb
View
2 lib/plucky/criteria_merger.rb
@@ -7,7 +7,7 @@ def self.merge(hash, other)
if other[key].is_a?(Hash)
target[key] = merge(target[key], other[key])
else
- target[key]['$in'].concat([other[key]].flatten).uniq!
+ target[key]['$in'].concat(Array(other[key])).uniq!
end
next
end

0 comments on commit 8316312

Please sign in to comment.