mercredi 1 novembre 2017

Remove duplicates from multiple Mongoid Criterias of single collection

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