{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/tms_10/pulls/comments/25415240","id":25415240,"diff_hunk":"@@ -11,7 +13,11 @@ class User < ActiveRecord::Base\n   validate file_size: {maximum: 1.megabytes.to_i}\n \n   has_secure_password\n+  \n   scope :trainees, -> {where(role: 'trainee')}","path":"app/models/user.rb","position":14,"original_position":14,"commit_id":"bcaf6cc2ba1923e695bdcbe4e4f59ef31db72ba3","original_commit_id":"bcaf6cc2ba1923e695bdcbe4e4f59ef31db72ba3","user":{"login":"dieunb","id":2122175,"avatar_url":"https://avatars.githubusercontent.com/u/2122175?v=3","gravatar_id":"","url":"https://api.github.com/users/dieunb","html_url":"https://github.com/dieunb","followers_url":"https://api.github.com/users/dieunb/followers","following_url":"https://api.github.com/users/dieunb/following{/other_user}","gists_url":"https://api.github.com/users/dieunb/gists{/gist_id}","starred_url":"https://api.github.com/users/dieunb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dieunb/subscriptions","organizations_url":"https://api.github.com/users/dieunb/orgs","repos_url":"https://api.github.com/users/dieunb/repos","events_url":"https://api.github.com/users/dieunb/events{/privacy}","received_events_url":"https://api.github.com/users/dieunb/received_events","type":"User","site_admin":false},"body":"`scope :trainees, ->{where(role: 'trainee')}`","created_at":"2015-02-26T09:52:39Z","updated_at":"2015-02-26T09:52:39Z","html_url":"https://github.com/framgia/tms_10/pull/14#discussion_r25415240","pull_request_url":"https://api.github.com/repos/framgia/tms_10/pulls/14","_links":{"self":{"href":"https://api.github.com/repos/framgia/tms_10/pulls/comments/25415240"},"html":{"href":"https://github.com/framgia/tms_10/pull/14#discussion_r25415240"},"pull_request":{"href":"https://api.github.com/repos/framgia/tms_10/pulls/14"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/tms_10/pulls/14","id":29073045,"html_url":"https://github.com/framgia/tms_10/pull/14","diff_url":"https://github.com/framgia/tms_10/pull/14.diff","patch_url":"https://github.com/framgia/tms_10/pull/14.patch","issue_url":"https://api.github.com/repos/framgia/tms_10/issues/14","number":14,"state":"open","locked":false,"title":"assign user to course","user":{"login":"BuiDuySon","id":8983400,"avatar_url":"https://avatars.githubusercontent.com/u/8983400?v=3","gravatar_id":"","url":"https://api.github.com/users/BuiDuySon","html_url":"https://github.com/BuiDuySon","followers_url":"https://api.github.com/users/BuiDuySon/followers","following_url":"https://api.github.com/users/BuiDuySon/following{/other_user}","gists_url":"https://api.github.com/users/BuiDuySon/gists{/gist_id}","starred_url":"https://api.github.com/users/BuiDuySon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BuiDuySon/subscriptions","organizations_url":"https://api.github.com/users/BuiDuySon/orgs","repos_url":"https://api.github.com/users/BuiDuySon/repos","events_url":"https://api.github.com/users/BuiDuySon/events{/privacy}","received_events_url":"https://api.github.com/users/BuiDuySon/received_events","type":"User","site_admin":false},"body":"assign user to course","created_at":"2015-02-11T07:50:06Z","updated_at":"2015-02-26T09:52:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ea1f4d35cb0cba634b875d2383afddc3ff53ba5f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/framgia/tms_10/pulls/14/commits","review_comments_url":"https://api.github.com/repos/framgia/tms_10/pulls/14/comments","review_comment_url":"https://api.github.com/repos/framgia/tms_10/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/tms_10/issues/14/comments","statuses_url":"https://api.github.com/repos/framgia/tms_10/statuses/bcaf6cc2ba1923e695bdcbe4e4f59ef31db72ba3","head":{"label":"BuiDuySon:Task#26378","ref":"Task#26378","sha":"bcaf6cc2ba1923e695bdcbe4e4f59ef31db72ba3","user":{"login":"BuiDuySon","id":8983400,"avatar_url":"https://avatars.githubusercontent.com/u/8983400?v=3","gravatar_id":"","url":"https://api.github.com/users/BuiDuySon","html_url":"https://github.com/BuiDuySon","followers_url":"https://api.github.com/users/BuiDuySon/followers","following_url":"https://api.github.com/users/BuiDuySon/following{/other_user}","gists_url":"https://api.github.com/users/BuiDuySon/gists{/gist_id}","starred_url":"https://api.github.com/users/BuiDuySon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BuiDuySon/subscriptions","organizations_url":"https://api.github.com/users/BuiDuySon/orgs","repos_url":"https://api.github.com/users/BuiDuySon/repos","events_url":"https://api.github.com/users/BuiDuySon/events{/privacy}","received_events_url":"https://api.github.com/users/BuiDuySon/received_events","type":"User","site_admin":false},"repo":{"id":29840843,"name":"tms_10","full_name":"BuiDuySon/tms_10","owner":{"login":"BuiDuySon","id":8983400,"avatar_url":"https://avatars.githubusercontent.com/u/8983400?v=3","gravatar_id":"","url":"https://api.github.com/users/BuiDuySon","html_url":"https://github.com/BuiDuySon","followers_url":"https://api.github.com/users/BuiDuySon/followers","following_url":"https://api.github.com/users/BuiDuySon/following{/other_user}","gists_url":"https://api.github.com/users/BuiDuySon/gists{/gist_id}","starred_url":"https://api.github.com/users/BuiDuySon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BuiDuySon/subscriptions","organizations_url":"https://api.github.com/users/BuiDuySon/orgs","repos_url":"https://api.github.com/users/BuiDuySon/repos","events_url":"https://api.github.com/users/BuiDuySon/events{/privacy}","received_events_url":"https://api.github.com/users/BuiDuySon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/BuiDuySon/tms_10","description":"Framgia Training Management System (training)","fork":true,"url":"https://api.github.com/repos/BuiDuySon/tms_10","forks_url":"https://api.github.com/repos/BuiDuySon/tms_10/forks","keys_url":"https://api.github.com/repos/BuiDuySon/tms_10/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BuiDuySon/tms_10/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BuiDuySon/tms_10/teams","hooks_url":"https://api.github.com/repos/BuiDuySon/tms_10/hooks","issue_events_url":"https://api.github.com/repos/BuiDuySon/tms_10/issues/events{/number}","events_url":"https://api.github.com/repos/BuiDuySon/tms_10/events","assignees_url":"https://api.github.com/repos/BuiDuySon/tms_10/assignees{/user}","branches_url":"https://api.github.com/repos/BuiDuySon/tms_10/branches{/branch}","tags_url":"https://api.github.com/repos/BuiDuySon/tms_10/tags","blobs_url":"https://api.github.com/repos/BuiDuySon/tms_10/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BuiDuySon/tms_10/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BuiDuySon/tms_10/git/refs{/sha}","trees_url":"https://api.github.com/repos/BuiDuySon/tms_10/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BuiDuySon/tms_10/statuses/{sha}","languages_url":"https://api.github.com/repos/BuiDuySon/tms_10/languages","stargazers_url":"https://api.github.com/repos/BuiDuySon/tms_10/stargazers","contributors_url":"https://api.github.com/repos/BuiDuySon/tms_10/contributors","subscribers_url":"https://api.github.com/repos/BuiDuySon/tms_10/subscribers","subscription_url":"https://api.github.com/repos/BuiDuySon/tms_10/subscription","commits_url":"https://api.github.com/repos/BuiDuySon/tms_10/commits{/sha}","git_commits_url":"https://api.github.com/repos/BuiDuySon/tms_10/git/commits{/sha}","comments_url":"https://api.github.com/repos/BuiDuySon/tms_10/comments{/number}","issue_comment_url":"https://api.github.com/repos/BuiDuySon/tms_10/issues/comments{/number}","contents_url":"https://api.github.com/repos/BuiDuySon/tms_10/contents/{+path}","compare_url":"https://api.github.com/repos/BuiDuySon/tms_10/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BuiDuySon/tms_10/merges","archive_url":"https://api.github.com/repos/BuiDuySon/tms_10/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BuiDuySon/tms_10/downloads","issues_url":"https://api.github.com/repos/BuiDuySon/tms_10/issues{/number}","pulls_url":"https://api.github.com/repos/BuiDuySon/tms_10/pulls{/number}","milestones_url":"https://api.github.com/repos/BuiDuySon/tms_10/milestones{/number}","notifications_url":"https://api.github.com/repos/BuiDuySon/tms_10/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BuiDuySon/tms_10/labels{/name}","releases_url":"https://api.github.com/repos/BuiDuySon/tms_10/releases{/id}","created_at":"2015-01-26T02:07:40Z","updated_at":"2015-01-24T12:07:01Z","pushed_at":"2015-02-25T09:34:45Z","git_url":"git://github.com/BuiDuySon/tms_10.git","ssh_url":"git@github.com:BuiDuySon/tms_10.git","clone_url":"https://github.com/BuiDuySon/tms_10.git","svn_url":"https://github.com/BuiDuySon/tms_10","homepage":null,"size":360,"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":"03ba24fc11d0a58d937b348ea6ea04054918b24c","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":29775315,"name":"tms_10","full_name":"framgia/tms_10","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_10","description":"Framgia Training Management System (training)","fork":false,"url":"https://api.github.com/repos/framgia/tms_10","forks_url":"https://api.github.com/repos/framgia/tms_10/forks","keys_url":"https://api.github.com/repos/framgia/tms_10/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/tms_10/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/tms_10/teams","hooks_url":"https://api.github.com/repos/framgia/tms_10/hooks","issue_events_url":"https://api.github.com/repos/framgia/tms_10/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/tms_10/events","assignees_url":"https://api.github.com/repos/framgia/tms_10/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/tms_10/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/tms_10/tags","blobs_url":"https://api.github.com/repos/framgia/tms_10/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/tms_10/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/tms_10/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/tms_10/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/tms_10/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/tms_10/languages","stargazers_url":"https://api.github.com/repos/framgia/tms_10/stargazers","contributors_url":"https://api.github.com/repos/framgia/tms_10/contributors","subscribers_url":"https://api.github.com/repos/framgia/tms_10/subscribers","subscription_url":"https://api.github.com/repos/framgia/tms_10/subscription","commits_url":"https://api.github.com/repos/framgia/tms_10/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/tms_10/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/tms_10/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/tms_10/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/tms_10/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/tms_10/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/tms_10/merges","archive_url":"https://api.github.com/repos/framgia/tms_10/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/tms_10/downloads","issues_url":"https://api.github.com/repos/framgia/tms_10/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/tms_10/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/tms_10/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/tms_10/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/tms_10/labels{/name}","releases_url":"https://api.github.com/repos/framgia/tms_10/releases{/id}","created_at":"2015-01-24T12:07:01Z","updated_at":"2015-01-24T12:07:01Z","pushed_at":"2015-02-10T09:57:21Z","git_url":"git://github.com/framgia/tms_10.git","ssh_url":"git@github.com:framgia/tms_10.git","clone_url":"https://github.com/framgia/tms_10.git","svn_url":"https://github.com/framgia/tms_10","homepage":null,"size":639,"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":2,"forks":3,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/tms_10/pulls/14"},"html":{"href":"https://github.com/framgia/tms_10/pull/14"},"issue":{"href":"https://api.github.com/repos/framgia/tms_10/issues/14"},"comments":{"href":"https://api.github.com/repos/framgia/tms_10/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/tms_10/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/tms_10/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/tms_10/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/tms_10/statuses/bcaf6cc2ba1923e695bdcbe4e4f59ef31db72ba3"}}}}