{"action":"created","comment":{"url":"https://api.github.com/repos/770580/spa_backend/pulls/comments/80973024","pull_request_review_id":1988175,"id":80973024,"diff_hunk":"@@ -4,29 +4,29 @@ class PostsController < ApplicationController\n     before_action :authenticate_user\n \n     def index\n-      render json: Post.all\n+      render json: Post.all.to_json","path":"app/controllers/api/posts_controller.rb","position":5,"original_position":5,"commit_id":"c4286de8c6bc263acf13b378cb80094eab9cc8a1","original_commit_id":"c4286de8c6bc263acf13b378cb80094eab9cc8a1","user":{"login":"davetoxa","id":417317,"avatar_url":"https://avatars.githubusercontent.com/u/417317?v=3","gravatar_id":"","url":"https://api.github.com/users/davetoxa","html_url":"https://github.com/davetoxa","followers_url":"https://api.github.com/users/davetoxa/followers","following_url":"https://api.github.com/users/davetoxa/following{/other_user}","gists_url":"https://api.github.com/users/davetoxa/gists{/gist_id}","starred_url":"https://api.github.com/users/davetoxa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davetoxa/subscriptions","organizations_url":"https://api.github.com/users/davetoxa/orgs","repos_url":"https://api.github.com/users/davetoxa/repos","events_url":"https://api.github.com/users/davetoxa/events{/privacy}","received_events_url":"https://api.github.com/users/davetoxa/received_events","type":"User","site_admin":false},"body":"@770580 и без .to_json ведь работает","created_at":"2016-09-28T17:30:11Z","updated_at":"2016-09-28T17:30:11Z","html_url":"https://github.com/770580/spa_backend/pull/4#discussion_r80973024","pull_request_url":"https://api.github.com/repos/770580/spa_backend/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/770580/spa_backend/pulls/comments/80973024"},"html":{"href":"https://github.com/770580/spa_backend/pull/4#discussion_r80973024"},"pull_request":{"href":"https://api.github.com/repos/770580/spa_backend/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/770580/spa_backend/pulls/4","id":86930926,"html_url":"https://github.com/770580/spa_backend/pull/4","diff_url":"https://github.com/770580/spa_backend/pull/4.diff","patch_url":"https://github.com/770580/spa_backend/pull/4.patch","issue_url":"https://api.github.com/repos/770580/spa_backend/issues/4","number":4,"state":"open","locked":false,"title":"Paginate","user":{"login":"770580","id":17593757,"avatar_url":"https://avatars.githubusercontent.com/u/17593757?v=3","gravatar_id":"","url":"https://api.github.com/users/770580","html_url":"https://github.com/770580","followers_url":"https://api.github.com/users/770580/followers","following_url":"https://api.github.com/users/770580/following{/other_user}","gists_url":"https://api.github.com/users/770580/gists{/gist_id}","starred_url":"https://api.github.com/users/770580/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/770580/subscriptions","organizations_url":"https://api.github.com/users/770580/orgs","repos_url":"https://api.github.com/users/770580/repos","events_url":"https://api.github.com/users/770580/events{/privacy}","received_events_url":"https://api.github.com/users/770580/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-27T13:35:13Z","updated_at":"2016-09-28T17:34:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"87ce780d7f619f225ce36fbfed789ff1233fd6b7","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/770580/spa_backend/pulls/4/commits","review_comments_url":"https://api.github.com/repos/770580/spa_backend/pulls/4/comments","review_comment_url":"https://api.github.com/repos/770580/spa_backend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/770580/spa_backend/issues/4/comments","statuses_url":"https://api.github.com/repos/770580/spa_backend/statuses/c4286de8c6bc263acf13b378cb80094eab9cc8a1","head":{"label":"770580:paginate","ref":"paginate","sha":"c4286de8c6bc263acf13b378cb80094eab9cc8a1","user":{"login":"770580","id":17593757,"avatar_url":"https://avatars.githubusercontent.com/u/17593757?v=3","gravatar_id":"","url":"https://api.github.com/users/770580","html_url":"https://github.com/770580","followers_url":"https://api.github.com/users/770580/followers","following_url":"https://api.github.com/users/770580/following{/other_user}","gists_url":"https://api.github.com/users/770580/gists{/gist_id}","starred_url":"https://api.github.com/users/770580/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/770580/subscriptions","organizations_url":"https://api.github.com/users/770580/orgs","repos_url":"https://api.github.com/users/770580/repos","events_url":"https://api.github.com/users/770580/events{/privacy}","received_events_url":"https://api.github.com/users/770580/received_events","type":"User","site_admin":false},"repo":{"id":66931342,"name":"spa_backend","full_name":"770580/spa_backend","owner":{"login":"770580","id":17593757,"avatar_url":"https://avatars.githubusercontent.com/u/17593757?v=3","gravatar_id":"","url":"https://api.github.com/users/770580","html_url":"https://github.com/770580","followers_url":"https://api.github.com/users/770580/followers","following_url":"https://api.github.com/users/770580/following{/other_user}","gists_url":"https://api.github.com/users/770580/gists{/gist_id}","starred_url":"https://api.github.com/users/770580/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/770580/subscriptions","organizations_url":"https://api.github.com/users/770580/orgs","repos_url":"https://api.github.com/users/770580/repos","events_url":"https://api.github.com/users/770580/events{/privacy}","received_events_url":"https://api.github.com/users/770580/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/770580/spa_backend","description":null,"fork":false,"url":"https://api.github.com/repos/770580/spa_backend","forks_url":"https://api.github.com/repos/770580/spa_backend/forks","keys_url":"https://api.github.com/repos/770580/spa_backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/770580/spa_backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/770580/spa_backend/teams","hooks_url":"https://api.github.com/repos/770580/spa_backend/hooks","issue_events_url":"https://api.github.com/repos/770580/spa_backend/issues/events{/number}","events_url":"https://api.github.com/repos/770580/spa_backend/events","assignees_url":"https://api.github.com/repos/770580/spa_backend/assignees{/user}","branches_url":"https://api.github.com/repos/770580/spa_backend/branches{/branch}","tags_url":"https://api.github.com/repos/770580/spa_backend/tags","blobs_url":"https://api.github.com/repos/770580/spa_backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/770580/spa_backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/770580/spa_backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/770580/spa_backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/770580/spa_backend/statuses/{sha}","languages_url":"https://api.github.com/repos/770580/spa_backend/languages","stargazers_url":"https://api.github.com/repos/770580/spa_backend/stargazers","contributors_url":"https://api.github.com/repos/770580/spa_backend/contributors","subscribers_url":"https://api.github.com/repos/770580/spa_backend/subscribers","subscription_url":"https://api.github.com/repos/770580/spa_backend/subscription","commits_url":"https://api.github.com/repos/770580/spa_backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/770580/spa_backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/770580/spa_backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/770580/spa_backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/770580/spa_backend/contents/{+path}","compare_url":"https://api.github.com/repos/770580/spa_backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/770580/spa_backend/merges","archive_url":"https://api.github.com/repos/770580/spa_backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/770580/spa_backend/downloads","issues_url":"https://api.github.com/repos/770580/spa_backend/issues{/number}","pulls_url":"https://api.github.com/repos/770580/spa_backend/pulls{/number}","milestones_url":"https://api.github.com/repos/770580/spa_backend/milestones{/number}","notifications_url":"https://api.github.com/repos/770580/spa_backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/770580/spa_backend/labels{/name}","releases_url":"https://api.github.com/repos/770580/spa_backend/releases{/id}","deployments_url":"https://api.github.com/repos/770580/spa_backend/deployments","created_at":"2016-08-30T10:34:08Z","updated_at":"2016-08-30T13:29:01Z","pushed_at":"2016-09-28T13:55:12Z","git_url":"git://github.com/770580/spa_backend.git","ssh_url":"git@github.com:770580/spa_backend.git","clone_url":"https://github.com/770580/spa_backend.git","svn_url":"https://github.com/770580/spa_backend","homepage":null,"size":59,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"770580:master","ref":"master","sha":"e565fd4dd2aa2e589b0ba3cbc2d7e55f7f9335c6","user":{"login":"770580","id":17593757,"avatar_url":"https://avatars.githubusercontent.com/u/17593757?v=3","gravatar_id":"","url":"https://api.github.com/users/770580","html_url":"https://github.com/770580","followers_url":"https://api.github.com/users/770580/followers","following_url":"https://api.github.com/users/770580/following{/other_user}","gists_url":"https://api.github.com/users/770580/gists{/gist_id}","starred_url":"https://api.github.com/users/770580/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/770580/subscriptions","organizations_url":"https://api.github.com/users/770580/orgs","repos_url":"https://api.github.com/users/770580/repos","events_url":"https://api.github.com/users/770580/events{/privacy}","received_events_url":"https://api.github.com/users/770580/received_events","type":"User","site_admin":false},"repo":{"id":66931342,"name":"spa_backend","full_name":"770580/spa_backend","owner":{"login":"770580","id":17593757,"avatar_url":"https://avatars.githubusercontent.com/u/17593757?v=3","gravatar_id":"","url":"https://api.github.com/users/770580","html_url":"https://github.com/770580","followers_url":"https://api.github.com/users/770580/followers","following_url":"https://api.github.com/users/770580/following{/other_user}","gists_url":"https://api.github.com/users/770580/gists{/gist_id}","starred_url":"https://api.github.com/users/770580/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/770580/subscriptions","organizations_url":"https://api.github.com/users/770580/orgs","repos_url":"https://api.github.com/users/770580/repos","events_url":"https://api.github.com/users/770580/events{/privacy}","received_events_url":"https://api.github.com/users/770580/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/770580/spa_backend","description":null,"fork":false,"url":"https://api.github.com/repos/770580/spa_backend","forks_url":"https://api.github.com/repos/770580/spa_backend/forks","keys_url":"https://api.github.com/repos/770580/spa_backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/770580/spa_backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/770580/spa_backend/teams","hooks_url":"https://api.github.com/repos/770580/spa_backend/hooks","issue_events_url":"https://api.github.com/repos/770580/spa_backend/issues/events{/number}","events_url":"https://api.github.com/repos/770580/spa_backend/events","assignees_url":"https://api.github.com/repos/770580/spa_backend/assignees{/user}","branches_url":"https://api.github.com/repos/770580/spa_backend/branches{/branch}","tags_url":"https://api.github.com/repos/770580/spa_backend/tags","blobs_url":"https://api.github.com/repos/770580/spa_backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/770580/spa_backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/770580/spa_backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/770580/spa_backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/770580/spa_backend/statuses/{sha}","languages_url":"https://api.github.com/repos/770580/spa_backend/languages","stargazers_url":"https://api.github.com/repos/770580/spa_backend/stargazers","contributors_url":"https://api.github.com/repos/770580/spa_backend/contributors","subscribers_url":"https://api.github.com/repos/770580/spa_backend/subscribers","subscription_url":"https://api.github.com/repos/770580/spa_backend/subscription","commits_url":"https://api.github.com/repos/770580/spa_backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/770580/spa_backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/770580/spa_backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/770580/spa_backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/770580/spa_backend/contents/{+path}","compare_url":"https://api.github.com/repos/770580/spa_backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/770580/spa_backend/merges","archive_url":"https://api.github.com/repos/770580/spa_backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/770580/spa_backend/downloads","issues_url":"https://api.github.com/repos/770580/spa_backend/issues{/number}","pulls_url":"https://api.github.com/repos/770580/spa_backend/pulls{/number}","milestones_url":"https://api.github.com/repos/770580/spa_backend/milestones{/number}","notifications_url":"https://api.github.com/repos/770580/spa_backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/770580/spa_backend/labels{/name}","releases_url":"https://api.github.com/repos/770580/spa_backend/releases{/id}","deployments_url":"https://api.github.com/repos/770580/spa_backend/deployments","created_at":"2016-08-30T10:34:08Z","updated_at":"2016-08-30T13:29:01Z","pushed_at":"2016-09-28T13:55:12Z","git_url":"git://github.com/770580/spa_backend.git","ssh_url":"git@github.com:770580/spa_backend.git","clone_url":"https://github.com/770580/spa_backend.git","svn_url":"https://github.com/770580/spa_backend","homepage":null,"size":59,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/770580/spa_backend/pulls/4"},"html":{"href":"https://github.com/770580/spa_backend/pull/4"},"issue":{"href":"https://api.github.com/repos/770580/spa_backend/issues/4"},"comments":{"href":"https://api.github.com/repos/770580/spa_backend/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/770580/spa_backend/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/770580/spa_backend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/770580/spa_backend/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/770580/spa_backend/statuses/c4286de8c6bc263acf13b378cb80094eab9cc8a1"}}}}
{"actor":{"display_login":"davetoxa"}}