So if i have an N..N relationship between Site and User if i do the
following
@site.create
user = @
site.users.new()
user.save
@site will end up with no user in site_ids.
Is it by design that I have to explicitly call save on both the site
and the user for them to store each others id's? I would expect @site
to get some sort of callback to save the user id when the user is
saved. The docs at:
http://mongoid.org/docs/relations/referenced/n-n.html
also make it sounds like that's what is supposed to happen.
Cheers