mongoid/mongoid — Issue #1353: Can't assign attribute to nested referenced document in callback
Author: tzar
Created: 2011-10-18 11:27:24+00:00
State: open

Hi,

I am new to mongoid so sorry if I'm just doing something wrong. I have spent a couple of hours trying out different callbacks and trying to get it to work properly/figure out why it's not working, but no luck so far.

Code + Failing Test can be found at the below gist:

https://gist.github.com/d98eb2b5c2ceb3c5f2ce

I'm running rails 3.1 and mongoid 2.3.1. Cheers