{"comment":{"created_at":"2011-10-19T02:22:52Z","body":"It's all good, mate. I'm glad you got it sorted out.","updated_at":"2011-10-19T02:22:52Z","url":"https://api.github.com/repos/mongoid/mongoid/issues/comments/2451259","id":2451259,"user":{"gravatar_id":"49de4cd2f26705785cbef2b15a9df7aa","avatar_url":"https://secure.gravatar.com/avatar/49de4cd2f26705785cbef2b15a9df7aa?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/nickhoffman","id":21668,"login":"nickhoffman"}},"action":"created","issue":{"number":1353,"created_at":"2011-10-18T11:27:24Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"Hi,\r\n\r\nI 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.\r\n\r\nCode + Failing Test can be found at the below gist:\r\n\r\nhttps://gist.github.com/d98eb2b5c2ceb3c5f2ce\r\n\r\nI'm running rails 3.1 and mongoid 2.3.1. Cheers","comments":8,"title":"Can't assign attribute to nested referenced document in callback","updated_at":"2011-10-19T02:22:52Z","url":"https://api.github.com/repos/mongoid/mongoid/issues/1353","id":1938478,"assignee":null,"milestone":null,"closed_at":"2011-10-19T02:21:24Z","user":{"gravatar_id":"784d640603d7fccd10cbec3b45e41d32","avatar_url":"https://secure.gravatar.com/avatar/784d640603d7fccd10cbec3b45e41d32?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/tzar","id":497261,"login":"tzar"},"html_url":"https://github.com/mongoid/mongoid/issues/1353","labels":[{"name":"could not reproduce","url":"https://api.github.com/repos/mongoid/mongoid/labels/could+not+reproduce","color":"825D1E"}],"state":"closed"},"legacy":{"issue_id":1938478,"comment_id":2451259}}