lib/superstore/scope/finder_methods.rb in superstore-2.1.1 vs lib/superstore/scope/finder_methods.rb in superstore-2.1.2
- old
+ new
@@ -38,12 +38,13 @@
end
end
def find_some(ids)
ids = ids.flatten
+ ids.compact!
return [] if ids.empty?
- ids = ids.compact.map(&:to_s).uniq
+ ids = ids.map(&:to_s).uniq
where_ids(ids).to_a
end
end
end