{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fels_110/pulls/comments/58170009","id":58170009,"diff_hunk":"@@ -14,5 +16,14 @@ def create_words\n     limit = Settings.lesson.limit\n     size =  limit < category_size ? limit : category_size\n     self.words = self.category.words.sample size\n+    self.total = size\n+  end\n+\n+  def create_result\n+    ids = []\n+    self.lesson_words.each do |word|","path":"app/models/lesson.rb","position":19,"original_position":19,"commit_id":"cc3796f0e3ac8e16e116bf54293c0c6b7ca0d800","original_commit_id":"cc3796f0e3ac8e16e116bf54293c0c6b7ca0d800","user":{"login":"hellovietnam93","id":8023606,"avatar_url":"https://avatars.githubusercontent.com/u/8023606?v=3","gravatar_id":"","url":"https://api.github.com/users/hellovietnam93","html_url":"https://github.com/hellovietnam93","followers_url":"https://api.github.com/users/hellovietnam93/followers","following_url":"https://api.github.com/users/hellovietnam93/following{/other_user}","gists_url":"https://api.github.com/users/hellovietnam93/gists{/gist_id}","starred_url":"https://api.github.com/users/hellovietnam93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hellovietnam93/subscriptions","organizations_url":"https://api.github.com/users/hellovietnam93/orgs","repos_url":"https://api.github.com/users/hellovietnam93/repos","events_url":"https://api.github.com/users/hellovietnam93/events{/privacy}","received_events_url":"https://api.github.com/users/hellovietnam93/received_events","type":"User","site_admin":false},"body":"sử dụng pluck","created_at":"2016-04-01T07:18:29Z","updated_at":"2016-04-01T07:18:29Z","html_url":"https://github.com/framgia/fels_110/pull/15#discussion_r58170009","pull_request_url":"https://api.github.com/repos/framgia/fels_110/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_110/pulls/comments/58170009"},"html":{"href":"https://github.com/framgia/fels_110/pull/15#discussion_r58170009"},"pull_request":{"href":"https://api.github.com/repos/framgia/fels_110/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fels_110/pulls/15","id":64900556,"html_url":"https://github.com/framgia/fels_110/pull/15","diff_url":"https://github.com/framgia/fels_110/pull/15.diff","patch_url":"https://github.com/framgia/fels_110/pull/15.patch","issue_url":"https://api.github.com/repos/framgia/fels_110/issues/15","number":15,"state":"open","locked":false,"title":"Finish show lesson","user":{"login":"hitshootnum1","id":17510691,"avatar_url":"https://avatars.githubusercontent.com/u/17510691?v=3","gravatar_id":"","url":"https://api.github.com/users/hitshootnum1","html_url":"https://github.com/hitshootnum1","followers_url":"https://api.github.com/users/hitshootnum1/followers","following_url":"https://api.github.com/users/hitshootnum1/following{/other_user}","gists_url":"https://api.github.com/users/hitshootnum1/gists{/gist_id}","starred_url":"https://api.github.com/users/hitshootnum1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hitshootnum1/subscriptions","organizations_url":"https://api.github.com/users/hitshootnum1/orgs","repos_url":"https://api.github.com/users/hitshootnum1/repos","events_url":"https://api.github.com/users/hitshootnum1/events{/privacy}","received_events_url":"https://api.github.com/users/hitshootnum1/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-01T06:24:36Z","updated_at":"2016-04-01T07:18:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fa8b946bb02e73aeb36a3aa9bc481b61957061a6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fels_110/pulls/15/commits","review_comments_url":"https://api.github.com/repos/framgia/fels_110/pulls/15/comments","review_comment_url":"https://api.github.com/repos/framgia/fels_110/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fels_110/issues/15/comments","statuses_url":"https://api.github.com/repos/framgia/fels_110/statuses/cc3796f0e3ac8e16e116bf54293c0c6b7ca0d800","head":{"label":"hitshootnum1:lesson-show","ref":"lesson-show","sha":"cc3796f0e3ac8e16e116bf54293c0c6b7ca0d800","user":{"login":"hitshootnum1","id":17510691,"avatar_url":"https://avatars.githubusercontent.com/u/17510691?v=3","gravatar_id":"","url":"https://api.github.com/users/hitshootnum1","html_url":"https://github.com/hitshootnum1","followers_url":"https://api.github.com/users/hitshootnum1/followers","following_url":"https://api.github.com/users/hitshootnum1/following{/other_user}","gists_url":"https://api.github.com/users/hitshootnum1/gists{/gist_id}","starred_url":"https://api.github.com/users/hitshootnum1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hitshootnum1/subscriptions","organizations_url":"https://api.github.com/users/hitshootnum1/orgs","repos_url":"https://api.github.com/users/hitshootnum1/repos","events_url":"https://api.github.com/users/hitshootnum1/events{/privacy}","received_events_url":"https://api.github.com/users/hitshootnum1/received_events","type":"User","site_admin":false},"repo":{"id":54863845,"name":"fels_110","full_name":"hitshootnum1/fels_110","owner":{"login":"hitshootnum1","id":17510691,"avatar_url":"https://avatars.githubusercontent.com/u/17510691?v=3","gravatar_id":"","url":"https://api.github.com/users/hitshootnum1","html_url":"https://github.com/hitshootnum1","followers_url":"https://api.github.com/users/hitshootnum1/followers","following_url":"https://api.github.com/users/hitshootnum1/following{/other_user}","gists_url":"https://api.github.com/users/hitshootnum1/gists{/gist_id}","starred_url":"https://api.github.com/users/hitshootnum1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hitshootnum1/subscriptions","organizations_url":"https://api.github.com/users/hitshootnum1/orgs","repos_url":"https://api.github.com/users/hitshootnum1/repos","events_url":"https://api.github.com/users/hitshootnum1/events{/privacy}","received_events_url":"https://api.github.com/users/hitshootnum1/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hitshootnum1/fels_110","description":"Framgia E-Learning System (training)","fork":true,"url":"https://api.github.com/repos/hitshootnum1/fels_110","forks_url":"https://api.github.com/repos/hitshootnum1/fels_110/forks","keys_url":"https://api.github.com/repos/hitshootnum1/fels_110/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hitshootnum1/fels_110/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hitshootnum1/fels_110/teams","hooks_url":"https://api.github.com/repos/hitshootnum1/fels_110/hooks","issue_events_url":"https://api.github.com/repos/hitshootnum1/fels_110/issues/events{/number}","events_url":"https://api.github.com/repos/hitshootnum1/fels_110/events","assignees_url":"https://api.github.com/repos/hitshootnum1/fels_110/assignees{/user}","branches_url":"https://api.github.com/repos/hitshootnum1/fels_110/branches{/branch}","tags_url":"https://api.github.com/repos/hitshootnum1/fels_110/tags","blobs_url":"https://api.github.com/repos/hitshootnum1/fels_110/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hitshootnum1/fels_110/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hitshootnum1/fels_110/git/refs{/sha}","trees_url":"https://api.github.com/repos/hitshootnum1/fels_110/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hitshootnum1/fels_110/statuses/{sha}","languages_url":"https://api.github.com/repos/hitshootnum1/fels_110/languages","stargazers_url":"https://api.github.com/repos/hitshootnum1/fels_110/stargazers","contributors_url":"https://api.github.com/repos/hitshootnum1/fels_110/contributors","subscribers_url":"https://api.github.com/repos/hitshootnum1/fels_110/subscribers","subscription_url":"https://api.github.com/repos/hitshootnum1/fels_110/subscription","commits_url":"https://api.github.com/repos/hitshootnum1/fels_110/commits{/sha}","git_commits_url":"https://api.github.com/repos/hitshootnum1/fels_110/git/commits{/sha}","comments_url":"https://api.github.com/repos/hitshootnum1/fels_110/comments{/number}","issue_comment_url":"https://api.github.com/repos/hitshootnum1/fels_110/issues/comments{/number}","contents_url":"https://api.github.com/repos/hitshootnum1/fels_110/contents/{+path}","compare_url":"https://api.github.com/repos/hitshootnum1/fels_110/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hitshootnum1/fels_110/merges","archive_url":"https://api.github.com/repos/hitshootnum1/fels_110/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hitshootnum1/fels_110/downloads","issues_url":"https://api.github.com/repos/hitshootnum1/fels_110/issues{/number}","pulls_url":"https://api.github.com/repos/hitshootnum1/fels_110/pulls{/number}","milestones_url":"https://api.github.com/repos/hitshootnum1/fels_110/milestones{/number}","notifications_url":"https://api.github.com/repos/hitshootnum1/fels_110/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hitshootnum1/fels_110/labels{/name}","releases_url":"https://api.github.com/repos/hitshootnum1/fels_110/releases{/id}","deployments_url":"https://api.github.com/repos/hitshootnum1/fels_110/deployments","created_at":"2016-03-28T03:49:49Z","updated_at":"2016-01-25T04:06:35Z","pushed_at":"2016-04-01T07:16:24Z","git_url":"git://github.com/hitshootnum1/fels_110.git","ssh_url":"git@github.com:hitshootnum1/fels_110.git","clone_url":"https://github.com/hitshootnum1/fels_110.git","svn_url":"https://github.com/hitshootnum1/fels_110","homepage":null,"size":65,"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":"fb984b00b7562049843e0e08f343b1db135d1a7f","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":50325217,"name":"fels_110","full_name":"framgia/fels_110","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_110","description":"Framgia E-Learning System (training)","fork":false,"url":"https://api.github.com/repos/framgia/fels_110","forks_url":"https://api.github.com/repos/framgia/fels_110/forks","keys_url":"https://api.github.com/repos/framgia/fels_110/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fels_110/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fels_110/teams","hooks_url":"https://api.github.com/repos/framgia/fels_110/hooks","issue_events_url":"https://api.github.com/repos/framgia/fels_110/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fels_110/events","assignees_url":"https://api.github.com/repos/framgia/fels_110/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fels_110/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fels_110/tags","blobs_url":"https://api.github.com/repos/framgia/fels_110/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fels_110/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fels_110/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fels_110/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fels_110/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fels_110/languages","stargazers_url":"https://api.github.com/repos/framgia/fels_110/stargazers","contributors_url":"https://api.github.com/repos/framgia/fels_110/contributors","subscribers_url":"https://api.github.com/repos/framgia/fels_110/subscribers","subscription_url":"https://api.github.com/repos/framgia/fels_110/subscription","commits_url":"https://api.github.com/repos/framgia/fels_110/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fels_110/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fels_110/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fels_110/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fels_110/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fels_110/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fels_110/merges","archive_url":"https://api.github.com/repos/framgia/fels_110/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fels_110/downloads","issues_url":"https://api.github.com/repos/framgia/fels_110/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fels_110/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fels_110/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fels_110/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fels_110/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fels_110/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/fels_110/deployments","created_at":"2016-01-25T04:06:35Z","updated_at":"2016-01-25T04:06:35Z","pushed_at":"2016-04-01T07:16:25Z","git_url":"git://github.com/framgia/fels_110.git","ssh_url":"git@github.com:framgia/fels_110.git","clone_url":"https://github.com/framgia/fels_110.git","svn_url":"https://github.com/framgia/fels_110","homepage":null,"size":64,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_110/pulls/15"},"html":{"href":"https://github.com/framgia/fels_110/pull/15"},"issue":{"href":"https://api.github.com/repos/framgia/fels_110/issues/15"},"comments":{"href":"https://api.github.com/repos/framgia/fels_110/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fels_110/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fels_110/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fels_110/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fels_110/statuses/cc3796f0e3ac8e16e116bf54293c0c6b7ca0d800"}}}}