{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fels_174/pulls/comments/75080278","id":75080278,"diff_hunk":"@@ -5,5 +5,8 @@ class Lesson < ActiveRecord::Base\n   validates :category, presence: true\n   has_many :results, dependent: :destroy\n   has_many :words, through: :results\n-  scope :word_learned, -> {joins(results: :answer).where(\"answers.is_correct = 't'\").count}\n+  scope :total_word_learned, -> {joins(results: :answer)","path":"app/models/lesson.rb","position":5,"original_position":5,"commit_id":"598c166e1ffd70701ec16eb66b5b114209c3a723","original_commit_id":"598c166e1ffd70701ec16eb66b5b114209c3a723","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":"- `total_learned_words`\r\n- Khi viết `{}` mà trên 1 dòng thì chuyển sang dùng `do..end`","created_at":"2016-08-17T08:18:31Z","updated_at":"2016-08-17T08:18:31Z","html_url":"https://github.com/framgia/fels_174/pull/14#discussion_r75080278","pull_request_url":"https://api.github.com/repos/framgia/fels_174/pulls/14","_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_174/pulls/comments/75080278"},"html":{"href":"https://github.com/framgia/fels_174/pull/14#discussion_r75080278"},"pull_request":{"href":"https://api.github.com/repos/framgia/fels_174/pulls/14"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fels_174/pulls/14","id":81088803,"html_url":"https://github.com/framgia/fels_174/pull/14","diff_url":"https://github.com/framgia/fels_174/pull/14.diff","patch_url":"https://github.com/framgia/fels_174/pull/14.patch","issue_url":"https://api.github.com/repos/framgia/fels_174/issues/14","number":14,"state":"open","locked":false,"title":"71897_wordlist","user":{"login":"duc11t3bk","id":13411341,"avatar_url":"https://avatars.githubusercontent.com/u/13411341?v=3","gravatar_id":"","url":"https://api.github.com/users/duc11t3bk","html_url":"https://github.com/duc11t3bk","followers_url":"https://api.github.com/users/duc11t3bk/followers","following_url":"https://api.github.com/users/duc11t3bk/following{/other_user}","gists_url":"https://api.github.com/users/duc11t3bk/gists{/gist_id}","starred_url":"https://api.github.com/users/duc11t3bk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duc11t3bk/subscriptions","organizations_url":"https://api.github.com/users/duc11t3bk/orgs","repos_url":"https://api.github.com/users/duc11t3bk/repos","events_url":"https://api.github.com/users/duc11t3bk/events{/privacy}","received_events_url":"https://api.github.com/users/duc11t3bk/received_events","type":"User","site_admin":false},"body":"71897_wordlist","created_at":"2016-08-12T09:12:11Z","updated_at":"2016-08-17T08:18:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4f05229fe2fbbfd233052615458225bca617c44f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fels_174/pulls/14/commits","review_comments_url":"https://api.github.com/repos/framgia/fels_174/pulls/14/comments","review_comment_url":"https://api.github.com/repos/framgia/fels_174/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fels_174/issues/14/comments","statuses_url":"https://api.github.com/repos/framgia/fels_174/statuses/598c166e1ffd70701ec16eb66b5b114209c3a723","head":{"label":"duc11t3bk:71897_wordlist","ref":"71897_wordlist","sha":"598c166e1ffd70701ec16eb66b5b114209c3a723","user":{"login":"duc11t3bk","id":13411341,"avatar_url":"https://avatars.githubusercontent.com/u/13411341?v=3","gravatar_id":"","url":"https://api.github.com/users/duc11t3bk","html_url":"https://github.com/duc11t3bk","followers_url":"https://api.github.com/users/duc11t3bk/followers","following_url":"https://api.github.com/users/duc11t3bk/following{/other_user}","gists_url":"https://api.github.com/users/duc11t3bk/gists{/gist_id}","starred_url":"https://api.github.com/users/duc11t3bk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duc11t3bk/subscriptions","organizations_url":"https://api.github.com/users/duc11t3bk/orgs","repos_url":"https://api.github.com/users/duc11t3bk/repos","events_url":"https://api.github.com/users/duc11t3bk/events{/privacy}","received_events_url":"https://api.github.com/users/duc11t3bk/received_events","type":"User","site_admin":false},"repo":{"id":64899839,"name":"fels_174","full_name":"duc11t3bk/fels_174","owner":{"login":"duc11t3bk","id":13411341,"avatar_url":"https://avatars.githubusercontent.com/u/13411341?v=3","gravatar_id":"","url":"https://api.github.com/users/duc11t3bk","html_url":"https://github.com/duc11t3bk","followers_url":"https://api.github.com/users/duc11t3bk/followers","following_url":"https://api.github.com/users/duc11t3bk/following{/other_user}","gists_url":"https://api.github.com/users/duc11t3bk/gists{/gist_id}","starred_url":"https://api.github.com/users/duc11t3bk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duc11t3bk/subscriptions","organizations_url":"https://api.github.com/users/duc11t3bk/orgs","repos_url":"https://api.github.com/users/duc11t3bk/repos","events_url":"https://api.github.com/users/duc11t3bk/events{/privacy}","received_events_url":"https://api.github.com/users/duc11t3bk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/duc11t3bk/fels_174","description":"Framgia E Learning System (Training)","fork":true,"url":"https://api.github.com/repos/duc11t3bk/fels_174","forks_url":"https://api.github.com/repos/duc11t3bk/fels_174/forks","keys_url":"https://api.github.com/repos/duc11t3bk/fels_174/keys{/key_id}","collaborators_url":"https://api.github.com/repos/duc11t3bk/fels_174/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/duc11t3bk/fels_174/teams","hooks_url":"https://api.github.com/repos/duc11t3bk/fels_174/hooks","issue_events_url":"https://api.github.com/repos/duc11t3bk/fels_174/issues/events{/number}","events_url":"https://api.github.com/repos/duc11t3bk/fels_174/events","assignees_url":"https://api.github.com/repos/duc11t3bk/fels_174/assignees{/user}","branches_url":"https://api.github.com/repos/duc11t3bk/fels_174/branches{/branch}","tags_url":"https://api.github.com/repos/duc11t3bk/fels_174/tags","blobs_url":"https://api.github.com/repos/duc11t3bk/fels_174/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/duc11t3bk/fels_174/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/duc11t3bk/fels_174/git/refs{/sha}","trees_url":"https://api.github.com/repos/duc11t3bk/fels_174/git/trees{/sha}","statuses_url":"https://api.github.com/repos/duc11t3bk/fels_174/statuses/{sha}","languages_url":"https://api.github.com/repos/duc11t3bk/fels_174/languages","stargazers_url":"https://api.github.com/repos/duc11t3bk/fels_174/stargazers","contributors_url":"https://api.github.com/repos/duc11t3bk/fels_174/contributors","subscribers_url":"https://api.github.com/repos/duc11t3bk/fels_174/subscribers","subscription_url":"https://api.github.com/repos/duc11t3bk/fels_174/subscription","commits_url":"https://api.github.com/repos/duc11t3bk/fels_174/commits{/sha}","git_commits_url":"https://api.github.com/repos/duc11t3bk/fels_174/git/commits{/sha}","comments_url":"https://api.github.com/repos/duc11t3bk/fels_174/comments{/number}","issue_comment_url":"https://api.github.com/repos/duc11t3bk/fels_174/issues/comments{/number}","contents_url":"https://api.github.com/repos/duc11t3bk/fels_174/contents/{+path}","compare_url":"https://api.github.com/repos/duc11t3bk/fels_174/compare/{base}...{head}","merges_url":"https://api.github.com/repos/duc11t3bk/fels_174/merges","archive_url":"https://api.github.com/repos/duc11t3bk/fels_174/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/duc11t3bk/fels_174/downloads","issues_url":"https://api.github.com/repos/duc11t3bk/fels_174/issues{/number}","pulls_url":"https://api.github.com/repos/duc11t3bk/fels_174/pulls{/number}","milestones_url":"https://api.github.com/repos/duc11t3bk/fels_174/milestones{/number}","notifications_url":"https://api.github.com/repos/duc11t3bk/fels_174/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/duc11t3bk/fels_174/labels{/name}","releases_url":"https://api.github.com/repos/duc11t3bk/fels_174/releases{/id}","deployments_url":"https://api.github.com/repos/duc11t3bk/fels_174/deployments","created_at":"2016-08-04T03:38:33Z","updated_at":"2016-08-03T02:25:20Z","pushed_at":"2016-08-17T07:54:22Z","git_url":"git://github.com/duc11t3bk/fels_174.git","ssh_url":"git@github.com:duc11t3bk/fels_174.git","clone_url":"https://github.com/duc11t3bk/fels_174.git","svn_url":"https://github.com/duc11t3bk/fels_174","homepage":null,"size":285,"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":"55d0fb71b8662efe58e3e52562d146cd68c81f6c","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":64808269,"name":"fels_174","full_name":"framgia/fels_174","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/fels_174","description":"Framgia E Learning System (Training)","fork":false,"url":"https://api.github.com/repos/framgia/fels_174","forks_url":"https://api.github.com/repos/framgia/fels_174/forks","keys_url":"https://api.github.com/repos/framgia/fels_174/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fels_174/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fels_174/teams","hooks_url":"https://api.github.com/repos/framgia/fels_174/hooks","issue_events_url":"https://api.github.com/repos/framgia/fels_174/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fels_174/events","assignees_url":"https://api.github.com/repos/framgia/fels_174/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fels_174/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fels_174/tags","blobs_url":"https://api.github.com/repos/framgia/fels_174/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fels_174/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fels_174/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fels_174/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fels_174/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fels_174/languages","stargazers_url":"https://api.github.com/repos/framgia/fels_174/stargazers","contributors_url":"https://api.github.com/repos/framgia/fels_174/contributors","subscribers_url":"https://api.github.com/repos/framgia/fels_174/subscribers","subscription_url":"https://api.github.com/repos/framgia/fels_174/subscription","commits_url":"https://api.github.com/repos/framgia/fels_174/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fels_174/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fels_174/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fels_174/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fels_174/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fels_174/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fels_174/merges","archive_url":"https://api.github.com/repos/framgia/fels_174/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fels_174/downloads","issues_url":"https://api.github.com/repos/framgia/fels_174/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fels_174/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fels_174/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fels_174/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fels_174/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fels_174/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/fels_174/deployments","created_at":"2016-08-03T02:25:20Z","updated_at":"2016-08-03T02:25:20Z","pushed_at":"2016-08-17T07:54:23Z","git_url":"git://github.com/framgia/fels_174.git","ssh_url":"git@github.com:framgia/fels_174.git","clone_url":"https://github.com/framgia/fels_174.git","svn_url":"https://github.com/framgia/fels_174","homepage":null,"size":110,"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/fels_174/pulls/14"},"html":{"href":"https://github.com/framgia/fels_174/pull/14"},"issue":{"href":"https://api.github.com/repos/framgia/fels_174/issues/14"},"comments":{"href":"https://api.github.com/repos/framgia/fels_174/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fels_174/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fels_174/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fels_174/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fels_174/statuses/598c166e1ffd70701ec16eb66b5b114209c3a723"}}}}
{"actor":{"display_login":"dieunb"}}