{"action":"created","comment":{"url":"https://api.github.com/repos/rails-api/active_model_serializers/pulls/comments/36732315","id":36732315,"diff_hunk":"@@ -19,3 +19,4 @@ test/version_tmp\n tmp\n *.swp\n .ruby-version\n+tags","path":".gitignore","position":4,"original_position":4,"commit_id":"1dcb3b3a279e0b364d9352cdcf0dd995b84e4798","original_commit_id":"1dcb3b3a279e0b364d9352cdcf0dd995b84e4798","user":{"login":"leandrocp","id":36407,"avatar_url":"https://avatars.githubusercontent.com/u/36407?v=3","gravatar_id":"","url":"https://api.github.com/users/leandrocp","html_url":"https://github.com/leandrocp","followers_url":"https://api.github.com/users/leandrocp/followers","following_url":"https://api.github.com/users/leandrocp/following{/other_user}","gists_url":"https://api.github.com/users/leandrocp/gists{/gist_id}","starred_url":"https://api.github.com/users/leandrocp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leandrocp/subscriptions","organizations_url":"https://api.github.com/users/leandrocp/orgs","repos_url":"https://api.github.com/users/leandrocp/repos","events_url":"https://api.github.com/users/leandrocp/events{/privacy}","received_events_url":"https://api.github.com/users/leandrocp/received_events","type":"User","site_admin":false},"body":"@bf4 good tip, I had forgotten about global gitignore.\r\n@joaomdmoura do you prefer to remove this line from .gitignore ? (that's ok for me)","created_at":"2015-08-11T10:49:59Z","updated_at":"2015-08-11T10:49:59Z","html_url":"https://github.com/rails-api/active_model_serializers/pull/1018#discussion_r36732315","pull_request_url":"https://api.github.com/repos/rails-api/active_model_serializers/pulls/1018","_links":{"self":{"href":"https://api.github.com/repos/rails-api/active_model_serializers/pulls/comments/36732315"},"html":{"href":"https://github.com/rails-api/active_model_serializers/pull/1018#discussion_r36732315"},"pull_request":{"href":"https://api.github.com/repos/rails-api/active_model_serializers/pulls/1018"}}},"pull_request":{"url":"https://api.github.com/repos/rails-api/active_model_serializers/pulls/1018","id":40829308,"html_url":"https://github.com/rails-api/active_model_serializers/pull/1018","diff_url":"https://github.com/rails-api/active_model_serializers/pull/1018.diff","patch_url":"https://github.com/rails-api/active_model_serializers/pull/1018.patch","issue_url":"https://api.github.com/repos/rails-api/active_model_serializers/issues/1018","number":1018,"state":"open","locked":false,"title":"Adds support for top-level links objects","user":{"login":"leandrocp","id":36407,"avatar_url":"https://avatars.githubusercontent.com/u/36407?v=3","gravatar_id":"","url":"https://api.github.com/users/leandrocp","html_url":"https://github.com/leandrocp","followers_url":"https://api.github.com/users/leandrocp/followers","following_url":"https://api.github.com/users/leandrocp/following{/other_user}","gists_url":"https://api.github.com/users/leandrocp/gists{/gist_id}","starred_url":"https://api.github.com/users/leandrocp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leandrocp/subscriptions","organizations_url":"https://api.github.com/users/leandrocp/orgs","repos_url":"https://api.github.com/users/leandrocp/repos","events_url":"https://api.github.com/users/leandrocp/events{/privacy}","received_events_url":"https://api.github.com/users/leandrocp/received_events","type":"User","site_admin":false},"body":"It's a generic object which can be used to declare a top-level links object as specified on jsonapi: http://jsonapi.org/format/#document-top-level\r\n\r\n```ruby\r\nrender json: @post, links: { self: \"/posts/1\" }\r\n```\r\n\r\n","created_at":"2015-07-25T02:15:05Z","updated_at":"2015-08-11T10:49:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"37584c6f4d7e1f100b01729125a793abd24a5f9e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rails-api/active_model_serializers/pulls/1018/commits","review_comments_url":"https://api.github.com/repos/rails-api/active_model_serializers/pulls/1018/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/1018/comments","statuses_url":"https://api.github.com/repos/rails-api/active_model_serializers/statuses/1dcb3b3a279e0b364d9352cdcf0dd995b84e4798","head":{"label":"leandrocp:add-top-level-links","ref":"add-top-level-links","sha":"1dcb3b3a279e0b364d9352cdcf0dd995b84e4798","user":{"login":"leandrocp","id":36407,"avatar_url":"https://avatars.githubusercontent.com/u/36407?v=3","gravatar_id":"","url":"https://api.github.com/users/leandrocp","html_url":"https://github.com/leandrocp","followers_url":"https://api.github.com/users/leandrocp/followers","following_url":"https://api.github.com/users/leandrocp/following{/other_user}","gists_url":"https://api.github.com/users/leandrocp/gists{/gist_id}","starred_url":"https://api.github.com/users/leandrocp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leandrocp/subscriptions","organizations_url":"https://api.github.com/users/leandrocp/orgs","repos_url":"https://api.github.com/users/leandrocp/repos","events_url":"https://api.github.com/users/leandrocp/events{/privacy}","received_events_url":"https://api.github.com/users/leandrocp/received_events","type":"User","site_admin":false},"repo":{"id":39667245,"name":"active_model_serializers","full_name":"leandrocp/active_model_serializers","owner":{"login":"leandrocp","id":36407,"avatar_url":"https://avatars.githubusercontent.com/u/36407?v=3","gravatar_id":"","url":"https://api.github.com/users/leandrocp","html_url":"https://github.com/leandrocp","followers_url":"https://api.github.com/users/leandrocp/followers","following_url":"https://api.github.com/users/leandrocp/following{/other_user}","gists_url":"https://api.github.com/users/leandrocp/gists{/gist_id}","starred_url":"https://api.github.com/users/leandrocp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leandrocp/subscriptions","organizations_url":"https://api.github.com/users/leandrocp/orgs","repos_url":"https://api.github.com/users/leandrocp/repos","events_url":"https://api.github.com/users/leandrocp/events{/privacy}","received_events_url":"https://api.github.com/users/leandrocp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/leandrocp/active_model_serializers","description":"ActiveModel::Serializer implementation and Rails hooks","fork":true,"url":"https://api.github.com/repos/leandrocp/active_model_serializers","forks_url":"https://api.github.com/repos/leandrocp/active_model_serializers/forks","keys_url":"https://api.github.com/repos/leandrocp/active_model_serializers/keys{/key_id}","collaborators_url":"https://api.github.com/repos/leandrocp/active_model_serializers/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/leandrocp/active_model_serializers/teams","hooks_url":"https://api.github.com/repos/leandrocp/active_model_serializers/hooks","issue_events_url":"https://api.github.com/repos/leandrocp/active_model_serializers/issues/events{/number}","events_url":"https://api.github.com/repos/leandrocp/active_model_serializers/events","assignees_url":"https://api.github.com/repos/leandrocp/active_model_serializers/assignees{/user}","branches_url":"https://api.github.com/repos/leandrocp/active_model_serializers/branches{/branch}","tags_url":"https://api.github.com/repos/leandrocp/active_model_serializers/tags","blobs_url":"https://api.github.com/repos/leandrocp/active_model_serializers/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/leandrocp/active_model_serializers/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/leandrocp/active_model_serializers/git/refs{/sha}","trees_url":"https://api.github.com/repos/leandrocp/active_model_serializers/git/trees{/sha}","statuses_url":"https://api.github.com/repos/leandrocp/active_model_serializers/statuses/{sha}","languages_url":"https://api.github.com/repos/leandrocp/active_model_serializers/languages","stargazers_url":"https://api.github.com/repos/leandrocp/active_model_serializers/stargazers","contributors_url":"https://api.github.com/repos/leandrocp/active_model_serializers/contributors","subscribers_url":"https://api.github.com/repos/leandrocp/active_model_serializers/subscribers","subscription_url":"https://api.github.com/repos/leandrocp/active_model_serializers/subscription","commits_url":"https://api.github.com/repos/leandrocp/active_model_serializers/commits{/sha}","git_commits_url":"https://api.github.com/repos/leandrocp/active_model_serializers/git/commits{/sha}","comments_url":"https://api.github.com/repos/leandrocp/active_model_serializers/comments{/number}","issue_comment_url":"https://api.github.com/repos/leandrocp/active_model_serializers/issues/comments{/number}","contents_url":"https://api.github.com/repos/leandrocp/active_model_serializers/contents/{+path}","compare_url":"https://api.github.com/repos/leandrocp/active_model_serializers/compare/{base}...{head}","merges_url":"https://api.github.com/repos/leandrocp/active_model_serializers/merges","archive_url":"https://api.github.com/repos/leandrocp/active_model_serializers/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/leandrocp/active_model_serializers/downloads","issues_url":"https://api.github.com/repos/leandrocp/active_model_serializers/issues{/number}","pulls_url":"https://api.github.com/repos/leandrocp/active_model_serializers/pulls{/number}","milestones_url":"https://api.github.com/repos/leandrocp/active_model_serializers/milestones{/number}","notifications_url":"https://api.github.com/repos/leandrocp/active_model_serializers/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/leandrocp/active_model_serializers/labels{/name}","releases_url":"https://api.github.com/repos/leandrocp/active_model_serializers/releases{/id}","created_at":"2015-07-25T01:17:49Z","updated_at":"2015-07-25T01:17:50Z","pushed_at":"2015-08-06T14:18:58Z","git_url":"git://github.com/leandrocp/active_model_serializers.git","ssh_url":"git@github.com:leandrocp/active_model_serializers.git","clone_url":"https://github.com/leandrocp/active_model_serializers.git","svn_url":"https://github.com/leandrocp/active_model_serializers","homepage":"","size":1478,"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":"03ddeeeec1e4eedafeb68eeccd59e8c3826b859d","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}","created_at":"2011-12-01T06:39:26Z","updated_at":"2015-08-10T17:44:27Z","pushed_at":"2015-08-11T10:48:24Z","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":5571,"stargazers_count":2885,"watchers_count":2885,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":655,"mirror_url":null,"open_issues_count":144,"forks":655,"open_issues":144,"watchers":2885,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rails-api/active_model_serializers/pulls/1018"},"html":{"href":"https://github.com/rails-api/active_model_serializers/pull/1018"},"issue":{"href":"https://api.github.com/repos/rails-api/active_model_serializers/issues/1018"},"comments":{"href":"https://api.github.com/repos/rails-api/active_model_serializers/issues/1018/comments"},"review_comments":{"href":"https://api.github.com/repos/rails-api/active_model_serializers/pulls/1018/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/1018/commits"},"statuses":{"href":"https://api.github.com/repos/rails-api/active_model_serializers/statuses/1dcb3b3a279e0b364d9352cdcf0dd995b84e4798"}}}}