{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/tms_67/pulls/comments/75456345","id":75456345,"diff_hunk":"@@ -3,4 +3,10 @@ class Task < ActiveRecord::Base\n \n   has_many :user_tasks\n   has_many :users, through: :user_tasks\n+\n+  scope :by_user, ->user do\n+    task_ids = \"SELECT task_id FROM user_tasks\n+                     WHERE  user_id = :user_id\"","path":"app/models/task.rb","position":7,"original_position":7,"commit_id":"75630f4c0fb98726a125d669aad91b57637fb986","original_commit_id":"75630f4c0fb98726a125d669aad91b57637fb986","user":{"login":"ducfilan","id":1677524,"avatar_url":"https://avatars.githubusercontent.com/u/1677524?v=3","gravatar_id":"","url":"https://api.github.com/users/ducfilan","html_url":"https://github.com/ducfilan","followers_url":"https://api.github.com/users/ducfilan/followers","following_url":"https://api.github.com/users/ducfilan/following{/other_user}","gists_url":"https://api.github.com/users/ducfilan/gists{/gist_id}","starred_url":"https://api.github.com/users/ducfilan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ducfilan/subscriptions","organizations_url":"https://api.github.com/users/ducfilan/orgs","repos_url":"https://api.github.com/users/ducfilan/repos","events_url":"https://api.github.com/users/ducfilan/events{/privacy}","received_events_url":"https://api.github.com/users/ducfilan/received_events","type":"User","site_admin":false},"body":"indent","created_at":"2016-08-19T09:59:37Z","updated_at":"2016-08-19T09:59:37Z","html_url":"https://github.com/framgia/tms_67/pull/23#discussion_r75456345","pull_request_url":"https://api.github.com/repos/framgia/tms_67/pulls/23","_links":{"self":{"href":"https://api.github.com/repos/framgia/tms_67/pulls/comments/75456345"},"html":{"href":"https://github.com/framgia/tms_67/pull/23#discussion_r75456345"},"pull_request":{"href":"https://api.github.com/repos/framgia/tms_67/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/tms_67/pulls/23","id":81955615,"html_url":"https://github.com/framgia/tms_67/pull/23","diff_url":"https://github.com/framgia/tms_67/pull/23.diff","patch_url":"https://github.com/framgia/tms_67/pull/23.patch","issue_url":"https://api.github.com/repos/framgia/tms_67/issues/23","number":23,"state":"open","locked":false,"title":"Report day by day","user":{"login":"hoangmirs","id":7344405,"avatar_url":"https://avatars.githubusercontent.com/u/7344405?v=3","gravatar_id":"","url":"https://api.github.com/users/hoangmirs","html_url":"https://github.com/hoangmirs","followers_url":"https://api.github.com/users/hoangmirs/followers","following_url":"https://api.github.com/users/hoangmirs/following{/other_user}","gists_url":"https://api.github.com/users/hoangmirs/gists{/gist_id}","starred_url":"https://api.github.com/users/hoangmirs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoangmirs/subscriptions","organizations_url":"https://api.github.com/users/hoangmirs/orgs","repos_url":"https://api.github.com/users/hoangmirs/repos","events_url":"https://api.github.com/users/hoangmirs/events{/privacy}","received_events_url":"https://api.github.com/users/hoangmirs/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-08-19T09:58:13Z","updated_at":"2016-08-19T09:59:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"982e0f76996d6e48ca76f797f6eb5af2f0fb49ac","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/tms_67/pulls/23/commits","review_comments_url":"https://api.github.com/repos/framgia/tms_67/pulls/23/comments","review_comment_url":"https://api.github.com/repos/framgia/tms_67/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/tms_67/issues/23/comments","statuses_url":"https://api.github.com/repos/framgia/tms_67/statuses/75630f4c0fb98726a125d669aad91b57637fb986","head":{"label":"hoangmirs:72128-report-day-by-day","ref":"72128-report-day-by-day","sha":"75630f4c0fb98726a125d669aad91b57637fb986","user":{"login":"hoangmirs","id":7344405,"avatar_url":"https://avatars.githubusercontent.com/u/7344405?v=3","gravatar_id":"","url":"https://api.github.com/users/hoangmirs","html_url":"https://github.com/hoangmirs","followers_url":"https://api.github.com/users/hoangmirs/followers","following_url":"https://api.github.com/users/hoangmirs/following{/other_user}","gists_url":"https://api.github.com/users/hoangmirs/gists{/gist_id}","starred_url":"https://api.github.com/users/hoangmirs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoangmirs/subscriptions","organizations_url":"https://api.github.com/users/hoangmirs/orgs","repos_url":"https://api.github.com/users/hoangmirs/repos","events_url":"https://api.github.com/users/hoangmirs/events{/privacy}","received_events_url":"https://api.github.com/users/hoangmirs/received_events","type":"User","site_admin":false},"repo":{"id":64899948,"name":"tms_67","full_name":"hoangmirs/tms_67","owner":{"login":"hoangmirs","id":7344405,"avatar_url":"https://avatars.githubusercontent.com/u/7344405?v=3","gravatar_id":"","url":"https://api.github.com/users/hoangmirs","html_url":"https://github.com/hoangmirs","followers_url":"https://api.github.com/users/hoangmirs/followers","following_url":"https://api.github.com/users/hoangmirs/following{/other_user}","gists_url":"https://api.github.com/users/hoangmirs/gists{/gist_id}","starred_url":"https://api.github.com/users/hoangmirs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hoangmirs/subscriptions","organizations_url":"https://api.github.com/users/hoangmirs/orgs","repos_url":"https://api.github.com/users/hoangmirs/repos","events_url":"https://api.github.com/users/hoangmirs/events{/privacy}","received_events_url":"https://api.github.com/users/hoangmirs/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hoangmirs/tms_67","description":"Framgia Training Management System (training)","fork":true,"url":"https://api.github.com/repos/hoangmirs/tms_67","forks_url":"https://api.github.com/repos/hoangmirs/tms_67/forks","keys_url":"https://api.github.com/repos/hoangmirs/tms_67/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hoangmirs/tms_67/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hoangmirs/tms_67/teams","hooks_url":"https://api.github.com/repos/hoangmirs/tms_67/hooks","issue_events_url":"https://api.github.com/repos/hoangmirs/tms_67/issues/events{/number}","events_url":"https://api.github.com/repos/hoangmirs/tms_67/events","assignees_url":"https://api.github.com/repos/hoangmirs/tms_67/assignees{/user}","branches_url":"https://api.github.com/repos/hoangmirs/tms_67/branches{/branch}","tags_url":"https://api.github.com/repos/hoangmirs/tms_67/tags","blobs_url":"https://api.github.com/repos/hoangmirs/tms_67/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hoangmirs/tms_67/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hoangmirs/tms_67/git/refs{/sha}","trees_url":"https://api.github.com/repos/hoangmirs/tms_67/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hoangmirs/tms_67/statuses/{sha}","languages_url":"https://api.github.com/repos/hoangmirs/tms_67/languages","stargazers_url":"https://api.github.com/repos/hoangmirs/tms_67/stargazers","contributors_url":"https://api.github.com/repos/hoangmirs/tms_67/contributors","subscribers_url":"https://api.github.com/repos/hoangmirs/tms_67/subscribers","subscription_url":"https://api.github.com/repos/hoangmirs/tms_67/subscription","commits_url":"https://api.github.com/repos/hoangmirs/tms_67/commits{/sha}","git_commits_url":"https://api.github.com/repos/hoangmirs/tms_67/git/commits{/sha}","comments_url":"https://api.github.com/repos/hoangmirs/tms_67/comments{/number}","issue_comment_url":"https://api.github.com/repos/hoangmirs/tms_67/issues/comments{/number}","contents_url":"https://api.github.com/repos/hoangmirs/tms_67/contents/{+path}","compare_url":"https://api.github.com/repos/hoangmirs/tms_67/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hoangmirs/tms_67/merges","archive_url":"https://api.github.com/repos/hoangmirs/tms_67/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hoangmirs/tms_67/downloads","issues_url":"https://api.github.com/repos/hoangmirs/tms_67/issues{/number}","pulls_url":"https://api.github.com/repos/hoangmirs/tms_67/pulls{/number}","milestones_url":"https://api.github.com/repos/hoangmirs/tms_67/milestones{/number}","notifications_url":"https://api.github.com/repos/hoangmirs/tms_67/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hoangmirs/tms_67/labels{/name}","releases_url":"https://api.github.com/repos/hoangmirs/tms_67/releases{/id}","deployments_url":"https://api.github.com/repos/hoangmirs/tms_67/deployments","created_at":"2016-08-04T03:40:21Z","updated_at":"2016-08-03T02:28:02Z","pushed_at":"2016-08-19T09:57:42Z","git_url":"git://github.com/hoangmirs/tms_67.git","ssh_url":"git@github.com:hoangmirs/tms_67.git","clone_url":"https://github.com/hoangmirs/tms_67.git","svn_url":"https://github.com/hoangmirs/tms_67","homepage":null,"size":321,"stargazers_count":0,"watchers_count":0,"language":null,"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":"framgia:develop","ref":"develop","sha":"34c289f8cb64a892ad1936f7e8139aa4201c6bd2","user":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"repo":{"id":64808426,"name":"tms_67","full_name":"framgia/tms_67","owner":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/framgia/tms_67","description":"Framgia Training Management System (training)","fork":false,"url":"https://api.github.com/repos/framgia/tms_67","forks_url":"https://api.github.com/repos/framgia/tms_67/forks","keys_url":"https://api.github.com/repos/framgia/tms_67/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/tms_67/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/tms_67/teams","hooks_url":"https://api.github.com/repos/framgia/tms_67/hooks","issue_events_url":"https://api.github.com/repos/framgia/tms_67/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/tms_67/events","assignees_url":"https://api.github.com/repos/framgia/tms_67/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/tms_67/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/tms_67/tags","blobs_url":"https://api.github.com/repos/framgia/tms_67/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/tms_67/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/tms_67/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/tms_67/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/tms_67/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/tms_67/languages","stargazers_url":"https://api.github.com/repos/framgia/tms_67/stargazers","contributors_url":"https://api.github.com/repos/framgia/tms_67/contributors","subscribers_url":"https://api.github.com/repos/framgia/tms_67/subscribers","subscription_url":"https://api.github.com/repos/framgia/tms_67/subscription","commits_url":"https://api.github.com/repos/framgia/tms_67/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/tms_67/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/tms_67/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/tms_67/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/tms_67/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/tms_67/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/tms_67/merges","archive_url":"https://api.github.com/repos/framgia/tms_67/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/tms_67/downloads","issues_url":"https://api.github.com/repos/framgia/tms_67/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/tms_67/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/tms_67/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/tms_67/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/tms_67/labels{/name}","releases_url":"https://api.github.com/repos/framgia/tms_67/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/tms_67/deployments","created_at":"2016-08-03T02:28:02Z","updated_at":"2016-08-03T02:28:02Z","pushed_at":"2016-08-19T09:58:13Z","git_url":"git://github.com/framgia/tms_67.git","ssh_url":"git@github.com:framgia/tms_67.git","clone_url":"https://github.com/framgia/tms_67.git","svn_url":"https://github.com/framgia/tms_67","homepage":null,"size":329,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/tms_67/pulls/23"},"html":{"href":"https://github.com/framgia/tms_67/pull/23"},"issue":{"href":"https://api.github.com/repos/framgia/tms_67/issues/23"},"comments":{"href":"https://api.github.com/repos/framgia/tms_67/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/tms_67/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/tms_67/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/tms_67/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/tms_67/statuses/75630f4c0fb98726a125d669aad91b57637fb986"}}}}
{"actor":{"display_login":"ducfilan"}}