Aditi
unread,Jan 25, 2012, 7:05:46 AM1/25/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to MongoMapper, kira...@gmail.com
Hello,
I have this scenario
class A
include MongoMapper::Document
belongs_to: bs, :class => B
end
class B
include MongoMapper::Document
end
I want to be able to serialize 'bs' when I serialize an instance of
'A'.
Right now this is not happening.
The serialization works however if I make B a embedded document. I saw
unit test in mongo_mapper code base and there are unit tests only for
embedded document scenario.
Is serializing non-embedded associations even supported ? What are the
other alternatives ?
Thanks in advance
Aditi