{"action":"opened","issue":{"url":"https://api.github.com/repos/aexmachina/factory-girl/issues/26","labels_url":"https://api.github.com/repos/aexmachina/factory-girl/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/aexmachina/factory-girl/issues/26/comments","events_url":"https://api.github.com/repos/aexmachina/factory-girl/issues/26/events","html_url":"https://github.com/aexmachina/factory-girl/issues/26","id":119484616,"number":26,"title":"What's the best way to go about making a factory for a SubDocument?","user":{"login":"jmnsf","id":6831662,"avatar_url":"https://avatars.githubusercontent.com/u/6831662?v=3","gravatar_id":"","url":"https://api.github.com/users/jmnsf","html_url":"https://github.com/jmnsf","followers_url":"https://api.github.com/users/jmnsf/followers","following_url":"https://api.github.com/users/jmnsf/following{/other_user}","gists_url":"https://api.github.com/users/jmnsf/gists{/gist_id}","starred_url":"https://api.github.com/users/jmnsf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmnsf/subscriptions","organizations_url":"https://api.github.com/users/jmnsf/orgs","repos_url":"https://api.github.com/users/jmnsf/repos","events_url":"https://api.github.com/users/jmnsf/events{/privacy}","received_events_url":"https://api.github.com/users/jmnsf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-30T12:41:57Z","updated_at":"2015-11-30T12:41:57Z","closed_at":null,"body":"In this particular case, I'm using mongoose.\r\n\r\nSay I have a document `Post` with embedded `Comment`s. I want to create specific comments through factories, but there isn't a Comment model from which I can base the factory.\r\n\r\nShould I skip the adapter in this case and just use the schema in the factory declaration, or is there another way to do this?"}}