You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Mongoid
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?
Brian Ploetz
unread,
Jan 24, 2011, 9:46:38 AM1/24/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Mongoid
Assuming your model object is a Mongoid::Document, simply call the
"db" method on it to get a handle to the Mongo::DB object that Mongoid
is using under the hood.