I’d like to use the addToSet method of MongoDB, but Mongoid doesn’t currently support this yet. Is there a way of directly accessing the MongoDB driver from my Rails model?
I’d like to use the addToSet method of MongoDB, but Mongoid doesn’t currently support
Share
I asked this question on Mongoid group and this was the best response:
Also, you can access the record collection using ModelName.collection.