I am performing some search operations on Manufacturer table and have couple of Mongoid::Criterias from them. I want to remove duplicates from them.
a = Manufacturer.where(daily_manu_tracking: false)
b = Manufacturer.where(current_costumer: true)
I want c as c = a + b by removing duplicates if any
Aucun commentaire:
Enregistrer un commentaire