Determine relation name to _parent from embedded object
27 views
Skip to first unread message
Benjamin
unread,
Jul 23, 2015, 2:48:07 PM7/23/15
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
I'm writing a module which gets mixed in to an embedded document, and I need to determine the name of the relation to the _parent. After digging around the docs and source, I can't figure out how to do this nicely. Is there a way to do with relations?