For performance reason, I use as often as possible the only()
keyword when writing up a mongoid query in order to specify the fields I want to load.
The
I think you need to denormalize here. First of all, read A Note on Denormalization.
You can implement denormalization by self using mongoid events or use great mongoid_denormalize gem. It pretty straight and after implementing it you could use p.user_email
or something in your queries.
Answer from creator of Mongoid. It's not possible yet. It's been added as feature request.