{"action":"created","issue":{"url":"https://api.github.com/repos/thetron/mongoid_token/issues/52","labels_url":"https://api.github.com/repos/thetron/mongoid_token/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/thetron/mongoid_token/issues/52/comments","events_url":"https://api.github.com/repos/thetron/mongoid_token/issues/52/events","html_url":"https://github.com/thetron/mongoid_token/issues/52","id":43943604,"number":52,"title":"Am I using mongoid_token incorrectly? or is this a bug?","user":{"login":"Igneous","id":113178,"avatar_url":"https://avatars.githubusercontent.com/u/113178?v=3","gravatar_id":"","url":"https://api.github.com/users/Igneous","html_url":"https://github.com/Igneous","followers_url":"https://api.github.com/users/Igneous/followers","following_url":"https://api.github.com/users/Igneous/following{/other_user}","gists_url":"https://api.github.com/users/Igneous/gists{/gist_id}","starred_url":"https://api.github.com/users/Igneous/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Igneous/subscriptions","organizations_url":"https://api.github.com/users/Igneous/orgs","repos_url":"https://api.github.com/users/Igneous/repos","events_url":"https://api.github.com/users/Igneous/events{/privacy}","received_events_url":"https://api.github.com/users/Igneous/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-09-25T17:14:15Z","updated_at":"2015-07-22T00:35:48Z","closed_at":null,"body":"If I create an object and some embedded children at once, _then_ call .save on it, it seems like only the root object gets a token, and the embedded ones don't ever get tokens generated for them.\r\n\r\nHere's a gist of what I'm doing:\r\nhttps://gist.github.com/anonymous/45942d8f240da1288852"},"comment":{"url":"https://api.github.com/repos/thetron/mongoid_token/issues/comments/123517178","html_url":"https://github.com/thetron/mongoid_token/issues/52#issuecomment-123517178","issue_url":"https://api.github.com/repos/thetron/mongoid_token/issues/52","id":123517178,"user":{"login":"thetron","id":64073,"avatar_url":"https://avatars.githubusercontent.com/u/64073?v=3","gravatar_id":"","url":"https://api.github.com/users/thetron","html_url":"https://github.com/thetron","followers_url":"https://api.github.com/users/thetron/followers","following_url":"https://api.github.com/users/thetron/following{/other_user}","gists_url":"https://api.github.com/users/thetron/gists{/gist_id}","starred_url":"https://api.github.com/users/thetron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thetron/subscriptions","organizations_url":"https://api.github.com/users/thetron/orgs","repos_url":"https://api.github.com/users/thetron/repos","events_url":"https://api.github.com/users/thetron/events{/privacy}","received_events_url":"https://api.github.com/users/thetron/received_events","type":"User","site_admin":false},"created_at":"2015-07-22T00:35:48Z","updated_at":"2015-07-22T00:35:48Z","body":"Sorry for the delay on this one @Igneous  - I was able to replicate your issue, and have added a failing test case. I know it's probably too late you help you on whatever you were working on at the time - but I'm going to see about getting this patched ASAP."}}