{"action":"created","comment":{"url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/pulls/comments/96361250","pull_request_review_id":16938954,"id":96361250,"diff_hunk":"@@ -65,9 +77,24 @@ def password_reset_expired?\n   end\n \n   def feeds\n-    self.microposts\n+    following_ids = \"SELECT followed_id FROM relationships\n+      WHERE  follower_id = :user_id\"\n+    Micropost.where(\"user_id IN (#{following_ids})\n+      OR user_id = :user_id\", user_id: id)","path":"app/models/user.rb","position":37,"original_position":37,"commit_id":"1abb36be3c1918bbaabea3c6b7e3a54e7b24d509","original_commit_id":"1abb36be3c1918bbaabea3c6b7e3a54e7b24d509","user":{"login":"chienit92","id":24784305,"avatar_url":"https://avatars.githubusercontent.com/u/24784305?v=3","gravatar_id":"","url":"https://api.github.com/users/chienit92","html_url":"https://github.com/chienit92","followers_url":"https://api.github.com/users/chienit92/followers","following_url":"https://api.github.com/users/chienit92/following{/other_user}","gists_url":"https://api.github.com/users/chienit92/gists{/gist_id}","starred_url":"https://api.github.com/users/chienit92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chienit92/subscriptions","organizations_url":"https://api.github.com/users/chienit92/orgs","repos_url":"https://api.github.com/users/chienit92/repos","events_url":"https://api.github.com/users/chienit92/events{/privacy}","received_events_url":"https://api.github.com/users/chienit92/received_events","type":"User","site_admin":false},"body":"viết scope đi ","created_at":"2017-01-17T08:21:20Z","updated_at":"2017-01-17T08:26:06Z","html_url":"https://github.com/cuongnhframgia/new_test_sample/pull/12#discussion_r96361250","pull_request_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/cuongnhframgia/new_test_sample/pulls/comments/96361250"},"html":{"href":"https://github.com/cuongnhframgia/new_test_sample/pull/12#discussion_r96361250"},"pull_request":{"href":"https://api.github.com/repos/cuongnhframgia/new_test_sample/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/pulls/12","id":101782408,"html_url":"https://github.com/cuongnhframgia/new_test_sample/pull/12","diff_url":"https://github.com/cuongnhframgia/new_test_sample/pull/12.diff","patch_url":"https://github.com/cuongnhframgia/new_test_sample/pull/12.patch","issue_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/issues/12","number":12,"state":"open","locked":false,"title":"Add user following","user":{"login":"cuongnhframgia","id":24784145,"avatar_url":"https://avatars.githubusercontent.com/u/24784145?v=3","gravatar_id":"","url":"https://api.github.com/users/cuongnhframgia","html_url":"https://github.com/cuongnhframgia","followers_url":"https://api.github.com/users/cuongnhframgia/followers","following_url":"https://api.github.com/users/cuongnhframgia/following{/other_user}","gists_url":"https://api.github.com/users/cuongnhframgia/gists{/gist_id}","starred_url":"https://api.github.com/users/cuongnhframgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cuongnhframgia/subscriptions","organizations_url":"https://api.github.com/users/cuongnhframgia/orgs","repos_url":"https://api.github.com/users/cuongnhframgia/repos","events_url":"https://api.github.com/users/cuongnhframgia/events{/privacy}","received_events_url":"https://api.github.com/users/cuongnhframgia/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-01-17T01:25:37Z","updated_at":"2017-01-17T08:26:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6414d7f48f488942a0b98547f1cd53e97b549937","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/pulls/12/commits","review_comments_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/pulls/12/comments","review_comment_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/issues/12/comments","statuses_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/statuses/1abb36be3c1918bbaabea3c6b7e3a54e7b24d509","head":{"label":"cuongnhframgia:following-users","ref":"following-users","sha":"1abb36be3c1918bbaabea3c6b7e3a54e7b24d509","user":{"login":"cuongnhframgia","id":24784145,"avatar_url":"https://avatars.githubusercontent.com/u/24784145?v=3","gravatar_id":"","url":"https://api.github.com/users/cuongnhframgia","html_url":"https://github.com/cuongnhframgia","followers_url":"https://api.github.com/users/cuongnhframgia/followers","following_url":"https://api.github.com/users/cuongnhframgia/following{/other_user}","gists_url":"https://api.github.com/users/cuongnhframgia/gists{/gist_id}","starred_url":"https://api.github.com/users/cuongnhframgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cuongnhframgia/subscriptions","organizations_url":"https://api.github.com/users/cuongnhframgia/orgs","repos_url":"https://api.github.com/users/cuongnhframgia/repos","events_url":"https://api.github.com/users/cuongnhframgia/events{/privacy}","received_events_url":"https://api.github.com/users/cuongnhframgia/received_events","type":"User","site_admin":false},"repo":{"id":77980357,"name":"new_test_sample","full_name":"cuongnhframgia/new_test_sample","owner":{"login":"cuongnhframgia","id":24784145,"avatar_url":"https://avatars.githubusercontent.com/u/24784145?v=3","gravatar_id":"","url":"https://api.github.com/users/cuongnhframgia","html_url":"https://github.com/cuongnhframgia","followers_url":"https://api.github.com/users/cuongnhframgia/followers","following_url":"https://api.github.com/users/cuongnhframgia/following{/other_user}","gists_url":"https://api.github.com/users/cuongnhframgia/gists{/gist_id}","starred_url":"https://api.github.com/users/cuongnhframgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cuongnhframgia/subscriptions","organizations_url":"https://api.github.com/users/cuongnhframgia/orgs","repos_url":"https://api.github.com/users/cuongnhframgia/repos","events_url":"https://api.github.com/users/cuongnhframgia/events{/privacy}","received_events_url":"https://api.github.com/users/cuongnhframgia/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cuongnhframgia/new_test_sample","description":null,"fork":false,"url":"https://api.github.com/repos/cuongnhframgia/new_test_sample","forks_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/forks","keys_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/teams","hooks_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/hooks","issue_events_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/issues/events{/number}","events_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/events","assignees_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/assignees{/user}","branches_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/branches{/branch}","tags_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/tags","blobs_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/git/refs{/sha}","trees_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/statuses/{sha}","languages_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/languages","stargazers_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/stargazers","contributors_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/contributors","subscribers_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/subscribers","subscription_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/subscription","commits_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/commits{/sha}","git_commits_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/git/commits{/sha}","comments_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/comments{/number}","issue_comment_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/issues/comments{/number}","contents_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/contents/{+path}","compare_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/merges","archive_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/downloads","issues_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/issues{/number}","pulls_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/pulls{/number}","milestones_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/milestones{/number}","notifications_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/labels{/name}","releases_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/releases{/id}","deployments_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/deployments","created_at":"2017-01-04T04:26:10Z","updated_at":"2017-01-04T04:31:08Z","pushed_at":"2017-01-17T01:33:57Z","git_url":"git://github.com/cuongnhframgia/new_test_sample.git","ssh_url":"git@github.com:cuongnhframgia/new_test_sample.git","clone_url":"https://github.com/cuongnhframgia/new_test_sample.git","svn_url":"https://github.com/cuongnhframgia/new_test_sample","homepage":null,"size":89,"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":"cuongnhframgia:master","ref":"master","sha":"b6fc15b6518c4699550db639afbd704b23109323","user":{"login":"cuongnhframgia","id":24784145,"avatar_url":"https://avatars.githubusercontent.com/u/24784145?v=3","gravatar_id":"","url":"https://api.github.com/users/cuongnhframgia","html_url":"https://github.com/cuongnhframgia","followers_url":"https://api.github.com/users/cuongnhframgia/followers","following_url":"https://api.github.com/users/cuongnhframgia/following{/other_user}","gists_url":"https://api.github.com/users/cuongnhframgia/gists{/gist_id}","starred_url":"https://api.github.com/users/cuongnhframgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cuongnhframgia/subscriptions","organizations_url":"https://api.github.com/users/cuongnhframgia/orgs","repos_url":"https://api.github.com/users/cuongnhframgia/repos","events_url":"https://api.github.com/users/cuongnhframgia/events{/privacy}","received_events_url":"https://api.github.com/users/cuongnhframgia/received_events","type":"User","site_admin":false},"repo":{"id":77980357,"name":"new_test_sample","full_name":"cuongnhframgia/new_test_sample","owner":{"login":"cuongnhframgia","id":24784145,"avatar_url":"https://avatars.githubusercontent.com/u/24784145?v=3","gravatar_id":"","url":"https://api.github.com/users/cuongnhframgia","html_url":"https://github.com/cuongnhframgia","followers_url":"https://api.github.com/users/cuongnhframgia/followers","following_url":"https://api.github.com/users/cuongnhframgia/following{/other_user}","gists_url":"https://api.github.com/users/cuongnhframgia/gists{/gist_id}","starred_url":"https://api.github.com/users/cuongnhframgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cuongnhframgia/subscriptions","organizations_url":"https://api.github.com/users/cuongnhframgia/orgs","repos_url":"https://api.github.com/users/cuongnhframgia/repos","events_url":"https://api.github.com/users/cuongnhframgia/events{/privacy}","received_events_url":"https://api.github.com/users/cuongnhframgia/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cuongnhframgia/new_test_sample","description":null,"fork":false,"url":"https://api.github.com/repos/cuongnhframgia/new_test_sample","forks_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/forks","keys_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/teams","hooks_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/hooks","issue_events_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/issues/events{/number}","events_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/events","assignees_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/assignees{/user}","branches_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/branches{/branch}","tags_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/tags","blobs_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/git/refs{/sha}","trees_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/statuses/{sha}","languages_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/languages","stargazers_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/stargazers","contributors_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/contributors","subscribers_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/subscribers","subscription_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/subscription","commits_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/commits{/sha}","git_commits_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/git/commits{/sha}","comments_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/comments{/number}","issue_comment_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/issues/comments{/number}","contents_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/contents/{+path}","compare_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/merges","archive_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/downloads","issues_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/issues{/number}","pulls_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/pulls{/number}","milestones_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/milestones{/number}","notifications_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/labels{/name}","releases_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/releases{/id}","deployments_url":"https://api.github.com/repos/cuongnhframgia/new_test_sample/deployments","created_at":"2017-01-04T04:26:10Z","updated_at":"2017-01-04T04:31:08Z","pushed_at":"2017-01-17T01:33:57Z","git_url":"git://github.com/cuongnhframgia/new_test_sample.git","ssh_url":"git@github.com:cuongnhframgia/new_test_sample.git","clone_url":"https://github.com/cuongnhframgia/new_test_sample.git","svn_url":"https://github.com/cuongnhframgia/new_test_sample","homepage":null,"size":89,"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/cuongnhframgia/new_test_sample/pulls/12"},"html":{"href":"https://github.com/cuongnhframgia/new_test_sample/pull/12"},"issue":{"href":"https://api.github.com/repos/cuongnhframgia/new_test_sample/issues/12"},"comments":{"href":"https://api.github.com/repos/cuongnhframgia/new_test_sample/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/cuongnhframgia/new_test_sample/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/cuongnhframgia/new_test_sample/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cuongnhframgia/new_test_sample/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/cuongnhframgia/new_test_sample/statuses/1abb36be3c1918bbaabea3c6b7e3a54e7b24d509"}}}}
{"actor":{"display_login":"chienit92"}}