{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fels_93/pulls/comments/46756993","id":46756993,"diff_hunk":"@@ -1,6 +1,13 @@\n class Word < ActiveRecord::Base\n   belongs_to :category\n-  belongs_to :answer\n-\n+  has_many :answers, dependent: :destroy\n+  accepts_nested_attributes_for :answers\n   validates :content, presence: true\n+\n+  scope :order_by_created_date,-> {order(\"created_at DESC\")}\n+  scope :learned, -> (user, category) {where(\"id in (select word_id from results where","path":"app/models/word.rb","position":10,"original_position":10,"commit_id":"000fd79c7a342fffd0398e3b52ca296e72ba97cb","original_commit_id":"000fd79c7a342fffd0398e3b52ca296e72ba97cb","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":"tương tự như trên nhé","created_at":"2015-12-05T10:40:42Z","updated_at":"2015-12-05T10:40:42Z","html_url":"https://github.com/framgia/fels_93/pull/12#discussion_r46756993","pull_request_url":"https://api.github.com/repos/framgia/fels_93/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_93/pulls/comments/46756993"},"html":{"href":"https://github.com/framgia/fels_93/pull/12#discussion_r46756993"},"pull_request":{"href":"https://api.github.com/repos/framgia/fels_93/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fels_93/pulls/12","id":52484837,"html_url":"https://github.com/framgia/fels_93/pull/12","diff_url":"https://github.com/framgia/fels_93/pull/12.diff","patch_url":"https://github.com/framgia/fels_93/pull/12.patch","issue_url":"https://api.github.com/repos/framgia/fels_93/issues/12","number":12,"state":"open","locked":false,"title":"task-46647-word-list","user":{"login":"Thuan123","id":6301999,"avatar_url":"https://avatars.githubusercontent.com/u/6301999?v=3","gravatar_id":"","url":"https://api.github.com/users/Thuan123","html_url":"https://github.com/Thuan123","followers_url":"https://api.github.com/users/Thuan123/followers","following_url":"https://api.github.com/users/Thuan123/following{/other_user}","gists_url":"https://api.github.com/users/Thuan123/gists{/gist_id}","starred_url":"https://api.github.com/users/Thuan123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Thuan123/subscriptions","organizations_url":"https://api.github.com/users/Thuan123/orgs","repos_url":"https://api.github.com/users/Thuan123/repos","events_url":"https://api.github.com/users/Thuan123/events{/privacy}","received_events_url":"https://api.github.com/users/Thuan123/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-03T02:39:44Z","updated_at":"2015-12-05T10:40:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"460d95144ea2428c147b57f66d7c9106d862abbc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fels_93/pulls/12/commits","review_comments_url":"https://api.github.com/repos/framgia/fels_93/pulls/12/comments","review_comment_url":"https://api.github.com/repos/framgia/fels_93/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fels_93/issues/12/comments","statuses_url":"https://api.github.com/repos/framgia/fels_93/statuses/000fd79c7a342fffd0398e3b52ca296e72ba97cb","head":{"label":"Thuan123:task-46647","ref":"task-46647","sha":"000fd79c7a342fffd0398e3b52ca296e72ba97cb","user":{"login":"Thuan123","id":6301999,"avatar_url":"https://avatars.githubusercontent.com/u/6301999?v=3","gravatar_id":"","url":"https://api.github.com/users/Thuan123","html_url":"https://github.com/Thuan123","followers_url":"https://api.github.com/users/Thuan123/followers","following_url":"https://api.github.com/users/Thuan123/following{/other_user}","gists_url":"https://api.github.com/users/Thuan123/gists{/gist_id}","starred_url":"https://api.github.com/users/Thuan123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Thuan123/subscriptions","organizations_url":"https://api.github.com/users/Thuan123/orgs","repos_url":"https://api.github.com/users/Thuan123/repos","events_url":"https://api.github.com/users/Thuan123/events{/privacy}","received_events_url":"https://api.github.com/users/Thuan123/received_events","type":"User","site_admin":false},"repo":{"id":46469817,"name":"fels_93","full_name":"Thuan123/fels_93","owner":{"login":"Thuan123","id":6301999,"avatar_url":"https://avatars.githubusercontent.com/u/6301999?v=3","gravatar_id":"","url":"https://api.github.com/users/Thuan123","html_url":"https://github.com/Thuan123","followers_url":"https://api.github.com/users/Thuan123/followers","following_url":"https://api.github.com/users/Thuan123/following{/other_user}","gists_url":"https://api.github.com/users/Thuan123/gists{/gist_id}","starred_url":"https://api.github.com/users/Thuan123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Thuan123/subscriptions","organizations_url":"https://api.github.com/users/Thuan123/orgs","repos_url":"https://api.github.com/users/Thuan123/repos","events_url":"https://api.github.com/users/Thuan123/events{/privacy}","received_events_url":"https://api.github.com/users/Thuan123/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Thuan123/fels_93","description":"Framgia E-Learning System (training)","fork":true,"url":"https://api.github.com/repos/Thuan123/fels_93","forks_url":"https://api.github.com/repos/Thuan123/fels_93/forks","keys_url":"https://api.github.com/repos/Thuan123/fels_93/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Thuan123/fels_93/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Thuan123/fels_93/teams","hooks_url":"https://api.github.com/repos/Thuan123/fels_93/hooks","issue_events_url":"https://api.github.com/repos/Thuan123/fels_93/issues/events{/number}","events_url":"https://api.github.com/repos/Thuan123/fels_93/events","assignees_url":"https://api.github.com/repos/Thuan123/fels_93/assignees{/user}","branches_url":"https://api.github.com/repos/Thuan123/fels_93/branches{/branch}","tags_url":"https://api.github.com/repos/Thuan123/fels_93/tags","blobs_url":"https://api.github.com/repos/Thuan123/fels_93/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Thuan123/fels_93/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Thuan123/fels_93/git/refs{/sha}","trees_url":"https://api.github.com/repos/Thuan123/fels_93/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Thuan123/fels_93/statuses/{sha}","languages_url":"https://api.github.com/repos/Thuan123/fels_93/languages","stargazers_url":"https://api.github.com/repos/Thuan123/fels_93/stargazers","contributors_url":"https://api.github.com/repos/Thuan123/fels_93/contributors","subscribers_url":"https://api.github.com/repos/Thuan123/fels_93/subscribers","subscription_url":"https://api.github.com/repos/Thuan123/fels_93/subscription","commits_url":"https://api.github.com/repos/Thuan123/fels_93/commits{/sha}","git_commits_url":"https://api.github.com/repos/Thuan123/fels_93/git/commits{/sha}","comments_url":"https://api.github.com/repos/Thuan123/fels_93/comments{/number}","issue_comment_url":"https://api.github.com/repos/Thuan123/fels_93/issues/comments{/number}","contents_url":"https://api.github.com/repos/Thuan123/fels_93/contents/{+path}","compare_url":"https://api.github.com/repos/Thuan123/fels_93/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Thuan123/fels_93/merges","archive_url":"https://api.github.com/repos/Thuan123/fels_93/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Thuan123/fels_93/downloads","issues_url":"https://api.github.com/repos/Thuan123/fels_93/issues{/number}","pulls_url":"https://api.github.com/repos/Thuan123/fels_93/pulls{/number}","milestones_url":"https://api.github.com/repos/Thuan123/fels_93/milestones{/number}","notifications_url":"https://api.github.com/repos/Thuan123/fels_93/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Thuan123/fels_93/labels{/name}","releases_url":"https://api.github.com/repos/Thuan123/fels_93/releases{/id}","created_at":"2015-11-19T05:28:59Z","updated_at":"2015-11-25T03:24:09Z","pushed_at":"2015-12-05T08:30:18Z","git_url":"git://github.com/Thuan123/fels_93.git","ssh_url":"git@github.com:Thuan123/fels_93.git","clone_url":"https://github.com/Thuan123/fels_93.git","svn_url":"https://github.com/Thuan123/fels_93","homepage":null,"size":61,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"ceaf3229af834bc853791c741be5e88138561d9a","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":46390871,"name":"fels_93","full_name":"framgia/fels_93","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_93","description":"Framgia E-Learning System (training)","fork":false,"url":"https://api.github.com/repos/framgia/fels_93","forks_url":"https://api.github.com/repos/framgia/fels_93/forks","keys_url":"https://api.github.com/repos/framgia/fels_93/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fels_93/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fels_93/teams","hooks_url":"https://api.github.com/repos/framgia/fels_93/hooks","issue_events_url":"https://api.github.com/repos/framgia/fels_93/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fels_93/events","assignees_url":"https://api.github.com/repos/framgia/fels_93/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fels_93/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fels_93/tags","blobs_url":"https://api.github.com/repos/framgia/fels_93/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fels_93/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fels_93/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fels_93/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fels_93/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fels_93/languages","stargazers_url":"https://api.github.com/repos/framgia/fels_93/stargazers","contributors_url":"https://api.github.com/repos/framgia/fels_93/contributors","subscribers_url":"https://api.github.com/repos/framgia/fels_93/subscribers","subscription_url":"https://api.github.com/repos/framgia/fels_93/subscription","commits_url":"https://api.github.com/repos/framgia/fels_93/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fels_93/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fels_93/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fels_93/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fels_93/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fels_93/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fels_93/merges","archive_url":"https://api.github.com/repos/framgia/fels_93/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fels_93/downloads","issues_url":"https://api.github.com/repos/framgia/fels_93/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fels_93/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fels_93/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fels_93/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fels_93/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fels_93/releases{/id}","created_at":"2015-11-18T02:51:51Z","updated_at":"2015-11-18T02:51:51Z","pushed_at":"2015-12-05T08:30:18Z","git_url":"git://github.com/framgia/fels_93.git","ssh_url":"git@github.com:framgia/fels_93.git","clone_url":"https://github.com/framgia/fels_93.git","svn_url":"https://github.com/framgia/fels_93","homepage":null,"size":57,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_93/pulls/12"},"html":{"href":"https://github.com/framgia/fels_93/pull/12"},"issue":{"href":"https://api.github.com/repos/framgia/fels_93/issues/12"},"comments":{"href":"https://api.github.com/repos/framgia/fels_93/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fels_93/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fels_93/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fels_93/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fels_93/statuses/000fd79c7a342fffd0398e3b52ca296e72ba97cb"}}}}