{"action":"created","comment":{"url":"https://api.github.com/repos/rails-api/active_model_serializers/pulls/comments/54808216","id":54808216,"diff_hunk":"@@ -14,6 +14,7 @@ Features:\n - [#1454](https://github.com/rails-api/active_model_serializers/pull/1454) Add support for\n   relationship-level links and meta attributes. (@beauby)\n - [#1340](https://github.com/rails-api/active_model_serializers/pull/1340) Add support for resource-level meta. (@beauby)\n+- [#1426](https://github.com/rails-api/active_model_serializers/pull/1426) Add ActiveModelSerializers.config.default_includes (@empact)","path":"CHANGELOG.md","position":4,"original_position":4,"commit_id":"0b9d674da2d06185618c5bd39d961acd53992f19","original_commit_id":"0b9d674da2d06185618c5bd39d961acd53992f19","user":{"login":"noahsilas","id":193012,"avatar_url":"https://avatars.githubusercontent.com/u/193012?v=3","gravatar_id":"","url":"https://api.github.com/users/noahsilas","html_url":"https://github.com/noahsilas","followers_url":"https://api.github.com/users/noahsilas/followers","following_url":"https://api.github.com/users/noahsilas/following{/other_user}","gists_url":"https://api.github.com/users/noahsilas/gists{/gist_id}","starred_url":"https://api.github.com/users/noahsilas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noahsilas/subscriptions","organizations_url":"https://api.github.com/users/noahsilas/orgs","repos_url":"https://api.github.com/users/noahsilas/repos","events_url":"https://api.github.com/users/noahsilas/events{/privacy}","received_events_url":"https://api.github.com/users/noahsilas/received_events","type":"User","site_admin":false},"body":"Done.","created_at":"2016-03-02T23:01:28Z","updated_at":"2016-03-02T23:01:28Z","html_url":"https://github.com/rails-api/active_model_serializers/pull/1426#discussion_r54808216","pull_request_url":"https://api.github.com/repos/rails-api/active_model_serializers/pulls/1426","_links":{"self":{"href":"https://api.github.com/repos/rails-api/active_model_serializers/pulls/comments/54808216"},"html":{"href":"https://github.com/rails-api/active_model_serializers/pull/1426#discussion_r54808216"},"pull_request":{"href":"https://api.github.com/repos/rails-api/active_model_serializers/pulls/1426"}}},"pull_request":{"url":"https://api.github.com/repos/rails-api/active_model_serializers/pulls/1426","id":55827818,"html_url":"https://github.com/rails-api/active_model_serializers/pull/1426","diff_url":"https://github.com/rails-api/active_model_serializers/pull/1426.diff","patch_url":"https://github.com/rails-api/active_model_serializers/pull/1426.patch","issue_url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/1426","number":1426,"state":"open","locked":false,"title":"Add a default_include_tree config variable to ActiveModel::Serializer","user":{"login":"Empact","id":5470,"avatar_url":"https://avatars.githubusercontent.com/u/5470?v=3","gravatar_id":"","url":"https://api.github.com/users/Empact","html_url":"https://github.com/Empact","followers_url":"https://api.github.com/users/Empact/followers","following_url":"https://api.github.com/users/Empact/following{/other_user}","gists_url":"https://api.github.com/users/Empact/gists{/gist_id}","starred_url":"https://api.github.com/users/Empact/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Empact/subscriptions","organizations_url":"https://api.github.com/users/Empact/orgs","repos_url":"https://api.github.com/users/Empact/repos","events_url":"https://api.github.com/users/Empact/events{/privacy}","received_events_url":"https://api.github.com/users/Empact/received_events","type":"User","site_admin":false},"body":"This is useful to set application-wide default behavior - e.g. in\r\nprevious versions of AMS the default behavior was to serialize the\r\nfull object graph by default - equivalent to the '**' include tree.\r\n\r\nCurrently just the global setting, but I think this could also work\r\non a per-serializer basis, with more attention.","created_at":"2016-01-12T22:34:18Z","updated_at":"2016-03-02T23:01:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e1794804ee7546c7d1fb15ced69268e6e8e48fe8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rails-api/active_model_serializers/pulls/1426/commits","review_comments_url":"https://api.github.com/repos/rails-api/active_model_serializers/pulls/1426/comments","review_comment_url":"https://api.github.com/repos/rails-api/active_model_serializers/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/1426/comments","statuses_url":"https://api.github.com/repos/rails-api/active_model_serializers/statuses/0b9d674da2d06185618c5bd39d961acd53992f19","head":{"label":"brigade:default-include","ref":"default-include","sha":"0b9d674da2d06185618c5bd39d961acd53992f19","user":{"login":"brigade","id":7872961,"avatar_url":"https://avatars.githubusercontent.com/u/7872961?v=3","gravatar_id":"","url":"https://api.github.com/users/brigade","html_url":"https://github.com/brigade","followers_url":"https://api.github.com/users/brigade/followers","following_url":"https://api.github.com/users/brigade/following{/other_user}","gists_url":"https://api.github.com/users/brigade/gists{/gist_id}","starred_url":"https://api.github.com/users/brigade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brigade/subscriptions","organizations_url":"https://api.github.com/users/brigade/orgs","repos_url":"https://api.github.com/users/brigade/repos","events_url":"https://api.github.com/users/brigade/events{/privacy}","received_events_url":"https://api.github.com/users/brigade/received_events","type":"Organization","site_admin":false},"repo":{"id":45276385,"name":"active_model_serializers","full_name":"brigade/active_model_serializers","owner":{"login":"brigade","id":7872961,"avatar_url":"https://avatars.githubusercontent.com/u/7872961?v=3","gravatar_id":"","url":"https://api.github.com/users/brigade","html_url":"https://github.com/brigade","followers_url":"https://api.github.com/users/brigade/followers","following_url":"https://api.github.com/users/brigade/following{/other_user}","gists_url":"https://api.github.com/users/brigade/gists{/gist_id}","starred_url":"https://api.github.com/users/brigade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brigade/subscriptions","organizations_url":"https://api.github.com/users/brigade/orgs","repos_url":"https://api.github.com/users/brigade/repos","events_url":"https://api.github.com/users/brigade/events{/privacy}","received_events_url":"https://api.github.com/users/brigade/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/brigade/active_model_serializers","description":"ActiveModel::Serializer implementation and Rails hooks","fork":true,"url":"https://api.github.com/repos/brigade/active_model_serializers","forks_url":"https://api.github.com/repos/brigade/active_model_serializers/forks","keys_url":"https://api.github.com/repos/brigade/active_model_serializers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brigade/active_model_serializers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brigade/active_model_serializers/teams","hooks_url":"https://api.github.com/repos/brigade/active_model_serializers/hooks","issue_events_url":"https://api.github.com/repos/brigade/active_model_serializers/issues/events{/number}","events_url":"https://api.github.com/repos/brigade/active_model_serializers/events","assignees_url":"https://api.github.com/repos/brigade/active_model_serializers/assignees{/user}","branches_url":"https://api.github.com/repos/brigade/active_model_serializers/branches{/branch}","tags_url":"https://api.github.com/repos/brigade/active_model_serializers/tags","blobs_url":"https://api.github.com/repos/brigade/active_model_serializers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brigade/active_model_serializers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brigade/active_model_serializers/git/refs{/sha}","trees_url":"https://api.github.com/repos/brigade/active_model_serializers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brigade/active_model_serializers/statuses/{sha}","languages_url":"https://api.github.com/repos/brigade/active_model_serializers/languages","stargazers_url":"https://api.github.com/repos/brigade/active_model_serializers/stargazers","contributors_url":"https://api.github.com/repos/brigade/active_model_serializers/contributors","subscribers_url":"https://api.github.com/repos/brigade/active_model_serializers/subscribers","subscription_url":"https://api.github.com/repos/brigade/active_model_serializers/subscription","commits_url":"https://api.github.com/repos/brigade/active_model_serializers/commits{/sha}","git_commits_url":"https://api.github.com/repos/brigade/active_model_serializers/git/commits{/sha}","comments_url":"https://api.github.com/repos/brigade/active_model_serializers/comments{/number}","issue_comment_url":"https://api.github.com/repos/brigade/active_model_serializers/issues/comments{/number}","contents_url":"https://api.github.com/repos/brigade/active_model_serializers/contents/{+path}","compare_url":"https://api.github.com/repos/brigade/active_model_serializers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brigade/active_model_serializers/merges","archive_url":"https://api.github.com/repos/brigade/active_model_serializers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brigade/active_model_serializers/downloads","issues_url":"https://api.github.com/repos/brigade/active_model_serializers/issues{/number}","pulls_url":"https://api.github.com/repos/brigade/active_model_serializers/pulls{/number}","milestones_url":"https://api.github.com/repos/brigade/active_model_serializers/milestones{/number}","notifications_url":"https://api.github.com/repos/brigade/active_model_serializers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brigade/active_model_serializers/labels{/name}","releases_url":"https://api.github.com/repos/brigade/active_model_serializers/releases{/id}","deployments_url":"https://api.github.com/repos/brigade/active_model_serializers/deployments","created_at":"2015-10-30T21:02:52Z","updated_at":"2016-01-12T01:15:31Z","pushed_at":"2016-03-02T01:16:51Z","git_url":"git://github.com/brigade/active_model_serializers.git","ssh_url":"git@github.com:brigade/active_model_serializers.git","clone_url":"https://github.com/brigade/active_model_serializers.git","svn_url":"https://github.com/brigade/active_model_serializers","homepage":"","size":2425,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"rails-api:master","ref":"master","sha":"8a040052afc0430bef039cc3bc11ff900819a713","user":{"login":"rails-api","id":2820360,"avatar_url":"https://avatars.githubusercontent.com/u/2820360?v=3","gravatar_id":"","url":"https://api.github.com/users/rails-api","html_url":"https://github.com/rails-api","followers_url":"https://api.github.com/users/rails-api/followers","following_url":"https://api.github.com/users/rails-api/following{/other_user}","gists_url":"https://api.github.com/users/rails-api/gists{/gist_id}","starred_url":"https://api.github.com/users/rails-api/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rails-api/subscriptions","organizations_url":"https://api.github.com/users/rails-api/orgs","repos_url":"https://api.github.com/users/rails-api/repos","events_url":"https://api.github.com/users/rails-api/events{/privacy}","received_events_url":"https://api.github.com/users/rails-api/received_events","type":"Organization","site_admin":false},"repo":{"id":2889230,"name":"active_model_serializers","full_name":"rails-api/active_model_serializers","owner":{"login":"rails-api","id":2820360,"avatar_url":"https://avatars.githubusercontent.com/u/2820360?v=3","gravatar_id":"","url":"https://api.github.com/users/rails-api","html_url":"https://github.com/rails-api","followers_url":"https://api.github.com/users/rails-api/followers","following_url":"https://api.github.com/users/rails-api/following{/other_user}","gists_url":"https://api.github.com/users/rails-api/gists{/gist_id}","starred_url":"https://api.github.com/users/rails-api/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rails-api/subscriptions","organizations_url":"https://api.github.com/users/rails-api/orgs","repos_url":"https://api.github.com/users/rails-api/repos","events_url":"https://api.github.com/users/rails-api/events{/privacy}","received_events_url":"https://api.github.com/users/rails-api/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rails-api/active_model_serializers","description":"ActiveModel::Serializer implementation and Rails hooks","fork":false,"url":"https://api.github.com/repos/rails-api/active_model_serializers","forks_url":"https://api.github.com/repos/rails-api/active_model_serializers/forks","keys_url":"https://api.github.com/repos/rails-api/active_model_serializers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rails-api/active_model_serializers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rails-api/active_model_serializers/teams","hooks_url":"https://api.github.com/repos/rails-api/active_model_serializers/hooks","issue_events_url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/events{/number}","events_url":"https://api.github.com/repos/rails-api/active_model_serializers/events","assignees_url":"https://api.github.com/repos/rails-api/active_model_serializers/assignees{/user}","branches_url":"https://api.github.com/repos/rails-api/active_model_serializers/branches{/branch}","tags_url":"https://api.github.com/repos/rails-api/active_model_serializers/tags","blobs_url":"https://api.github.com/repos/rails-api/active_model_serializers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rails-api/active_model_serializers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rails-api/active_model_serializers/git/refs{/sha}","trees_url":"https://api.github.com/repos/rails-api/active_model_serializers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rails-api/active_model_serializers/statuses/{sha}","languages_url":"https://api.github.com/repos/rails-api/active_model_serializers/languages","stargazers_url":"https://api.github.com/repos/rails-api/active_model_serializers/stargazers","contributors_url":"https://api.github.com/repos/rails-api/active_model_serializers/contributors","subscribers_url":"https://api.github.com/repos/rails-api/active_model_serializers/subscribers","subscription_url":"https://api.github.com/repos/rails-api/active_model_serializers/subscription","commits_url":"https://api.github.com/repos/rails-api/active_model_serializers/commits{/sha}","git_commits_url":"https://api.github.com/repos/rails-api/active_model_serializers/git/commits{/sha}","comments_url":"https://api.github.com/repos/rails-api/active_model_serializers/comments{/number}","issue_comment_url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/comments{/number}","contents_url":"https://api.github.com/repos/rails-api/active_model_serializers/contents/{+path}","compare_url":"https://api.github.com/repos/rails-api/active_model_serializers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rails-api/active_model_serializers/merges","archive_url":"https://api.github.com/repos/rails-api/active_model_serializers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rails-api/active_model_serializers/downloads","issues_url":"https://api.github.com/repos/rails-api/active_model_serializers/issues{/number}","pulls_url":"https://api.github.com/repos/rails-api/active_model_serializers/pulls{/number}","milestones_url":"https://api.github.com/repos/rails-api/active_model_serializers/milestones{/number}","notifications_url":"https://api.github.com/repos/rails-api/active_model_serializers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rails-api/active_model_serializers/labels{/name}","releases_url":"https://api.github.com/repos/rails-api/active_model_serializers/releases{/id}","deployments_url":"https://api.github.com/repos/rails-api/active_model_serializers/deployments","created_at":"2011-12-01T06:39:26Z","updated_at":"2016-03-02T17:20:44Z","pushed_at":"2016-03-02T10:13:27Z","git_url":"git://github.com/rails-api/active_model_serializers.git","ssh_url":"git@github.com:rails-api/active_model_serializers.git","clone_url":"https://github.com/rails-api/active_model_serializers.git","svn_url":"https://github.com/rails-api/active_model_serializers","homepage":"","size":3985,"stargazers_count":3353,"watchers_count":3353,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":818,"mirror_url":null,"open_issues_count":212,"forks":818,"open_issues":212,"watchers":3353,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rails-api/active_model_serializers/pulls/1426"},"html":{"href":"https://github.com/rails-api/active_model_serializers/pull/1426"},"issue":{"href":"https://api.github.com/repos/rails-api/active_model_serializers/issues/1426"},"comments":{"href":"https://api.github.com/repos/rails-api/active_model_serializers/issues/1426/comments"},"review_comments":{"href":"https://api.github.com/repos/rails-api/active_model_serializers/pulls/1426/comments"},"review_comment":{"href":"https://api.github.com/repos/rails-api/active_model_serializers/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rails-api/active_model_serializers/pulls/1426/commits"},"statuses":{"href":"https://api.github.com/repos/rails-api/active_model_serializers/statuses/0b9d674da2d06185618c5bd39d961acd53992f19"}}}}