{"action":"created","comment":{"url":"https://api.github.com/repos/dchester/epilogue/pulls/comments/32416031","id":32416031,"diff_hunk":"@@ -30,6 +45,20 @@ Create.prototype.write = function(req, res, context) {\n         res.header('Location', location);\n       }\n \n+      if(\n+        self.include && self.include.length","path":"lib/Controllers/create.js","position":32,"original_position":32,"commit_id":"46af100d94fbf4a20eec69c4623bb400f9b405c7","original_commit_id":"46af100d94fbf4a20eec69c4623bb400f9b405c7","user":{"login":"mbroadst","id":312966,"avatar_url":"https://avatars.githubusercontent.com/u/312966?v=3","gravatar_id":"","url":"https://api.github.com/users/mbroadst","html_url":"https://github.com/mbroadst","followers_url":"https://api.github.com/users/mbroadst/followers","following_url":"https://api.github.com/users/mbroadst/following{/other_user}","gists_url":"https://api.github.com/users/mbroadst/gists{/gist_id}","starred_url":"https://api.github.com/users/mbroadst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbroadst/subscriptions","organizations_url":"https://api.github.com/users/mbroadst/orgs","repos_url":"https://api.github.com/users/mbroadst/repos","events_url":"https://api.github.com/users/mbroadst/events{/privacy}","received_events_url":"https://api.github.com/users/mbroadst/received_events","type":"User","site_admin":false},"body":"I don't think you need to check for any of this anymore, basically if someone specifies ```reloadOnCreate: true``` then you should just reload the instance no need to check if it has includes, or if you find the properties in context etc","created_at":"2015-06-15T12:54:57Z","updated_at":"2015-06-15T12:54:57Z","html_url":"https://github.com/dchester/epilogue/pull/75#discussion_r32416031","pull_request_url":"https://api.github.com/repos/dchester/epilogue/pulls/75","_links":{"self":{"href":"https://api.github.com/repos/dchester/epilogue/pulls/comments/32416031"},"html":{"href":"https://github.com/dchester/epilogue/pull/75#discussion_r32416031"},"pull_request":{"href":"https://api.github.com/repos/dchester/epilogue/pulls/75"}}},"pull_request":{"url":"https://api.github.com/repos/dchester/epilogue/pulls/75","id":37461204,"html_url":"https://github.com/dchester/epilogue/pull/75","diff_url":"https://github.com/dchester/epilogue/pull/75.diff","patch_url":"https://github.com/dchester/epilogue/pull/75.patch","issue_url":"https://api.github.com/repos/dchester/epilogue/issues/75","number":75,"state":"open","locked":false,"title":"The controller \"create\" respects the association","user":{"login":"Fridus","id":3214565,"avatar_url":"https://avatars.githubusercontent.com/u/3214565?v=3","gravatar_id":"","url":"https://api.github.com/users/Fridus","html_url":"https://github.com/Fridus","followers_url":"https://api.github.com/users/Fridus/followers","following_url":"https://api.github.com/users/Fridus/following{/other_user}","gists_url":"https://api.github.com/users/Fridus/gists{/gist_id}","starred_url":"https://api.github.com/users/Fridus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fridus/subscriptions","organizations_url":"https://api.github.com/users/Fridus/orgs","repos_url":"https://api.github.com/users/Fridus/repos","events_url":"https://api.github.com/users/Fridus/events{/privacy}","received_events_url":"https://api.github.com/users/Fridus/received_events","type":"User","site_admin":false},"body":"- update controller `create`\r\n- add tests\r\n\r\n@mbroadst ","created_at":"2015-06-11T13:09:14Z","updated_at":"2015-06-15T12:54:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"228642bc6d4467fe02e913c1a727e1d1ee0d7728","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dchester/epilogue/pulls/75/commits","review_comments_url":"https://api.github.com/repos/dchester/epilogue/pulls/75/comments","review_comment_url":"https://api.github.com/repos/dchester/epilogue/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dchester/epilogue/issues/75/comments","statuses_url":"https://api.github.com/repos/dchester/epilogue/statuses/46af100d94fbf4a20eec69c4623bb400f9b405c7","head":{"label":"Fridus:create-include","ref":"create-include","sha":"46af100d94fbf4a20eec69c4623bb400f9b405c7","user":{"login":"Fridus","id":3214565,"avatar_url":"https://avatars.githubusercontent.com/u/3214565?v=3","gravatar_id":"","url":"https://api.github.com/users/Fridus","html_url":"https://github.com/Fridus","followers_url":"https://api.github.com/users/Fridus/followers","following_url":"https://api.github.com/users/Fridus/following{/other_user}","gists_url":"https://api.github.com/users/Fridus/gists{/gist_id}","starred_url":"https://api.github.com/users/Fridus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fridus/subscriptions","organizations_url":"https://api.github.com/users/Fridus/orgs","repos_url":"https://api.github.com/users/Fridus/repos","events_url":"https://api.github.com/users/Fridus/events{/privacy}","received_events_url":"https://api.github.com/users/Fridus/received_events","type":"User","site_admin":false},"repo":{"id":36304400,"name":"epilogue","full_name":"Fridus/epilogue","owner":{"login":"Fridus","id":3214565,"avatar_url":"https://avatars.githubusercontent.com/u/3214565?v=3","gravatar_id":"","url":"https://api.github.com/users/Fridus","html_url":"https://github.com/Fridus","followers_url":"https://api.github.com/users/Fridus/followers","following_url":"https://api.github.com/users/Fridus/following{/other_user}","gists_url":"https://api.github.com/users/Fridus/gists{/gist_id}","starred_url":"https://api.github.com/users/Fridus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fridus/subscriptions","organizations_url":"https://api.github.com/users/Fridus/orgs","repos_url":"https://api.github.com/users/Fridus/repos","events_url":"https://api.github.com/users/Fridus/events{/privacy}","received_events_url":"https://api.github.com/users/Fridus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Fridus/epilogue","description":"Create flexible REST endpoints and controllers from Sequelize models in your Express app","fork":true,"url":"https://api.github.com/repos/Fridus/epilogue","forks_url":"https://api.github.com/repos/Fridus/epilogue/forks","keys_url":"https://api.github.com/repos/Fridus/epilogue/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Fridus/epilogue/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Fridus/epilogue/teams","hooks_url":"https://api.github.com/repos/Fridus/epilogue/hooks","issue_events_url":"https://api.github.com/repos/Fridus/epilogue/issues/events{/number}","events_url":"https://api.github.com/repos/Fridus/epilogue/events","assignees_url":"https://api.github.com/repos/Fridus/epilogue/assignees{/user}","branches_url":"https://api.github.com/repos/Fridus/epilogue/branches{/branch}","tags_url":"https://api.github.com/repos/Fridus/epilogue/tags","blobs_url":"https://api.github.com/repos/Fridus/epilogue/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Fridus/epilogue/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Fridus/epilogue/git/refs{/sha}","trees_url":"https://api.github.com/repos/Fridus/epilogue/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Fridus/epilogue/statuses/{sha}","languages_url":"https://api.github.com/repos/Fridus/epilogue/languages","stargazers_url":"https://api.github.com/repos/Fridus/epilogue/stargazers","contributors_url":"https://api.github.com/repos/Fridus/epilogue/contributors","subscribers_url":"https://api.github.com/repos/Fridus/epilogue/subscribers","subscription_url":"https://api.github.com/repos/Fridus/epilogue/subscription","commits_url":"https://api.github.com/repos/Fridus/epilogue/commits{/sha}","git_commits_url":"https://api.github.com/repos/Fridus/epilogue/git/commits{/sha}","comments_url":"https://api.github.com/repos/Fridus/epilogue/comments{/number}","issue_comment_url":"https://api.github.com/repos/Fridus/epilogue/issues/comments{/number}","contents_url":"https://api.github.com/repos/Fridus/epilogue/contents/{+path}","compare_url":"https://api.github.com/repos/Fridus/epilogue/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Fridus/epilogue/merges","archive_url":"https://api.github.com/repos/Fridus/epilogue/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Fridus/epilogue/downloads","issues_url":"https://api.github.com/repos/Fridus/epilogue/issues{/number}","pulls_url":"https://api.github.com/repos/Fridus/epilogue/pulls{/number}","milestones_url":"https://api.github.com/repos/Fridus/epilogue/milestones{/number}","notifications_url":"https://api.github.com/repos/Fridus/epilogue/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Fridus/epilogue/labels{/name}","releases_url":"https://api.github.com/repos/Fridus/epilogue/releases{/id}","created_at":"2015-05-26T15:14:51Z","updated_at":"2015-05-26T15:14:52Z","pushed_at":"2015-06-12T13:35:32Z","git_url":"git://github.com/Fridus/epilogue.git","ssh_url":"git@github.com:Fridus/epilogue.git","clone_url":"https://github.com/Fridus/epilogue.git","svn_url":"https://github.com/Fridus/epilogue","homepage":null,"size":374,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"dchester:master","ref":"master","sha":"8d49468272e7a6efe4c0c911dafa59c80788a491","user":{"login":"dchester","id":199934,"avatar_url":"https://avatars.githubusercontent.com/u/199934?v=3","gravatar_id":"","url":"https://api.github.com/users/dchester","html_url":"https://github.com/dchester","followers_url":"https://api.github.com/users/dchester/followers","following_url":"https://api.github.com/users/dchester/following{/other_user}","gists_url":"https://api.github.com/users/dchester/gists{/gist_id}","starred_url":"https://api.github.com/users/dchester/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dchester/subscriptions","organizations_url":"https://api.github.com/users/dchester/orgs","repos_url":"https://api.github.com/users/dchester/repos","events_url":"https://api.github.com/users/dchester/events{/privacy}","received_events_url":"https://api.github.com/users/dchester/received_events","type":"User","site_admin":false},"repo":{"id":6848494,"name":"epilogue","full_name":"dchester/epilogue","owner":{"login":"dchester","id":199934,"avatar_url":"https://avatars.githubusercontent.com/u/199934?v=3","gravatar_id":"","url":"https://api.github.com/users/dchester","html_url":"https://github.com/dchester","followers_url":"https://api.github.com/users/dchester/followers","following_url":"https://api.github.com/users/dchester/following{/other_user}","gists_url":"https://api.github.com/users/dchester/gists{/gist_id}","starred_url":"https://api.github.com/users/dchester/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dchester/subscriptions","organizations_url":"https://api.github.com/users/dchester/orgs","repos_url":"https://api.github.com/users/dchester/repos","events_url":"https://api.github.com/users/dchester/events{/privacy}","received_events_url":"https://api.github.com/users/dchester/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dchester/epilogue","description":"Create flexible REST endpoints and controllers from Sequelize models in your Express app","fork":false,"url":"https://api.github.com/repos/dchester/epilogue","forks_url":"https://api.github.com/repos/dchester/epilogue/forks","keys_url":"https://api.github.com/repos/dchester/epilogue/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dchester/epilogue/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dchester/epilogue/teams","hooks_url":"https://api.github.com/repos/dchester/epilogue/hooks","issue_events_url":"https://api.github.com/repos/dchester/epilogue/issues/events{/number}","events_url":"https://api.github.com/repos/dchester/epilogue/events","assignees_url":"https://api.github.com/repos/dchester/epilogue/assignees{/user}","branches_url":"https://api.github.com/repos/dchester/epilogue/branches{/branch}","tags_url":"https://api.github.com/repos/dchester/epilogue/tags","blobs_url":"https://api.github.com/repos/dchester/epilogue/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dchester/epilogue/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dchester/epilogue/git/refs{/sha}","trees_url":"https://api.github.com/repos/dchester/epilogue/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dchester/epilogue/statuses/{sha}","languages_url":"https://api.github.com/repos/dchester/epilogue/languages","stargazers_url":"https://api.github.com/repos/dchester/epilogue/stargazers","contributors_url":"https://api.github.com/repos/dchester/epilogue/contributors","subscribers_url":"https://api.github.com/repos/dchester/epilogue/subscribers","subscription_url":"https://api.github.com/repos/dchester/epilogue/subscription","commits_url":"https://api.github.com/repos/dchester/epilogue/commits{/sha}","git_commits_url":"https://api.github.com/repos/dchester/epilogue/git/commits{/sha}","comments_url":"https://api.github.com/repos/dchester/epilogue/comments{/number}","issue_comment_url":"https://api.github.com/repos/dchester/epilogue/issues/comments{/number}","contents_url":"https://api.github.com/repos/dchester/epilogue/contents/{+path}","compare_url":"https://api.github.com/repos/dchester/epilogue/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dchester/epilogue/merges","archive_url":"https://api.github.com/repos/dchester/epilogue/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dchester/epilogue/downloads","issues_url":"https://api.github.com/repos/dchester/epilogue/issues{/number}","pulls_url":"https://api.github.com/repos/dchester/epilogue/pulls{/number}","milestones_url":"https://api.github.com/repos/dchester/epilogue/milestones{/number}","notifications_url":"https://api.github.com/repos/dchester/epilogue/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dchester/epilogue/labels{/name}","releases_url":"https://api.github.com/repos/dchester/epilogue/releases{/id}","created_at":"2012-11-25T07:13:58Z","updated_at":"2015-06-13T20:57:18Z","pushed_at":"2015-06-12T13:35:33Z","git_url":"git://github.com/dchester/epilogue.git","ssh_url":"git@github.com:dchester/epilogue.git","clone_url":"https://github.com/dchester/epilogue.git","svn_url":"https://github.com/dchester/epilogue","homepage":null,"size":1089,"stargazers_count":112,"watchers_count":112,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"open_issues_count":7,"forks":17,"open_issues":7,"watchers":112,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dchester/epilogue/pulls/75"},"html":{"href":"https://github.com/dchester/epilogue/pull/75"},"issue":{"href":"https://api.github.com/repos/dchester/epilogue/issues/75"},"comments":{"href":"https://api.github.com/repos/dchester/epilogue/issues/75/comments"},"review_comments":{"href":"https://api.github.com/repos/dchester/epilogue/pulls/75/comments"},"review_comment":{"href":"https://api.github.com/repos/dchester/epilogue/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dchester/epilogue/pulls/75/commits"},"statuses":{"href":"https://api.github.com/repos/dchester/epilogue/statuses/46af100d94fbf4a20eec69c4623bb400f9b405c7"}}}}