{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fels_95/pulls/comments/49958546","id":49958546,"diff_hunk":"@@ -1,4 +1,32 @@\n class Word < ActiveRecord::Base\n   belongs_to :category\n   belongs_to :result\n+  has_many :answers\n+\n+  scope :all_word_category, ->(category_id){where category_id: category_id}\n+  scope :learned, ->(user_id){where Settings.word.LEARNED_WORD,\n+    user_id: user_id}\n+  scope :not_learned, ->(user_id){where.not Settings.word.LEARNED_WORD,\n+    user_id: user_id}\n+\n+  class << self\n+    def all_status\n+      [\"Learned\", \"not learned\", \"All\"]","path":"app/models/word.rb","position":14,"original_position":14,"commit_id":"389f907f8fac81966c3be220cd3743a498fee852","original_commit_id":"389f907f8fac81966c3be220cd3743a498fee852","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":"Sao k sử dụng Setting, mà lại còn viết hoa vs viêt thường lung tung nữa","created_at":"2016-01-18T02:48:57Z","updated_at":"2016-01-18T02:48:57Z","html_url":"https://github.com/framgia/fels_95/pull/17#discussion_r49958546","pull_request_url":"https://api.github.com/repos/framgia/fels_95/pulls/17","_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_95/pulls/comments/49958546"},"html":{"href":"https://github.com/framgia/fels_95/pull/17#discussion_r49958546"},"pull_request":{"href":"https://api.github.com/repos/framgia/fels_95/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fels_95/pulls/17","id":56295731,"html_url":"https://github.com/framgia/fels_95/pull/17","diff_url":"https://github.com/framgia/fels_95/pull/17.diff","patch_url":"https://github.com/framgia/fels_95/pull/17.patch","issue_url":"https://api.github.com/repos/framgia/fels_95/issues/17","number":17,"state":"open","locked":false,"title":"refs #49966 page index word","user":{"login":"truongthanhnguyen","id":10624835,"avatar_url":"https://avatars.githubusercontent.com/u/10624835?v=3","gravatar_id":"","url":"https://api.github.com/users/truongthanhnguyen","html_url":"https://github.com/truongthanhnguyen","followers_url":"https://api.github.com/users/truongthanhnguyen/followers","following_url":"https://api.github.com/users/truongthanhnguyen/following{/other_user}","gists_url":"https://api.github.com/users/truongthanhnguyen/gists{/gist_id}","starred_url":"https://api.github.com/users/truongthanhnguyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/truongthanhnguyen/subscriptions","organizations_url":"https://api.github.com/users/truongthanhnguyen/orgs","repos_url":"https://api.github.com/users/truongthanhnguyen/repos","events_url":"https://api.github.com/users/truongthanhnguyen/events{/privacy}","received_events_url":"https://api.github.com/users/truongthanhnguyen/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-01-18T02:16:40Z","updated_at":"2016-01-18T02:48:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3c9e1efb9cd02f8b113682fd1abd5c1e5cb8f126","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fels_95/pulls/17/commits","review_comments_url":"https://api.github.com/repos/framgia/fels_95/pulls/17/comments","review_comment_url":"https://api.github.com/repos/framgia/fels_95/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fels_95/issues/17/comments","statuses_url":"https://api.github.com/repos/framgia/fels_95/statuses/389f907f8fac81966c3be220cd3743a498fee852","head":{"label":"truongthanhnguyen:task/49966_page_index_word","ref":"task/49966_page_index_word","sha":"389f907f8fac81966c3be220cd3743a498fee852","user":{"login":"truongthanhnguyen","id":10624835,"avatar_url":"https://avatars.githubusercontent.com/u/10624835?v=3","gravatar_id":"","url":"https://api.github.com/users/truongthanhnguyen","html_url":"https://github.com/truongthanhnguyen","followers_url":"https://api.github.com/users/truongthanhnguyen/followers","following_url":"https://api.github.com/users/truongthanhnguyen/following{/other_user}","gists_url":"https://api.github.com/users/truongthanhnguyen/gists{/gist_id}","starred_url":"https://api.github.com/users/truongthanhnguyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/truongthanhnguyen/subscriptions","organizations_url":"https://api.github.com/users/truongthanhnguyen/orgs","repos_url":"https://api.github.com/users/truongthanhnguyen/repos","events_url":"https://api.github.com/users/truongthanhnguyen/events{/privacy}","received_events_url":"https://api.github.com/users/truongthanhnguyen/received_events","type":"User","site_admin":false},"repo":{"id":48737270,"name":"fels_95","full_name":"truongthanhnguyen/fels_95","owner":{"login":"truongthanhnguyen","id":10624835,"avatar_url":"https://avatars.githubusercontent.com/u/10624835?v=3","gravatar_id":"","url":"https://api.github.com/users/truongthanhnguyen","html_url":"https://github.com/truongthanhnguyen","followers_url":"https://api.github.com/users/truongthanhnguyen/followers","following_url":"https://api.github.com/users/truongthanhnguyen/following{/other_user}","gists_url":"https://api.github.com/users/truongthanhnguyen/gists{/gist_id}","starred_url":"https://api.github.com/users/truongthanhnguyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/truongthanhnguyen/subscriptions","organizations_url":"https://api.github.com/users/truongthanhnguyen/orgs","repos_url":"https://api.github.com/users/truongthanhnguyen/repos","events_url":"https://api.github.com/users/truongthanhnguyen/events{/privacy}","received_events_url":"https://api.github.com/users/truongthanhnguyen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/truongthanhnguyen/fels_95","description":"Framgia E-Learning System (training)","fork":true,"url":"https://api.github.com/repos/truongthanhnguyen/fels_95","forks_url":"https://api.github.com/repos/truongthanhnguyen/fels_95/forks","keys_url":"https://api.github.com/repos/truongthanhnguyen/fels_95/keys{/key_id}","collaborators_url":"https://api.github.com/repos/truongthanhnguyen/fels_95/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/truongthanhnguyen/fels_95/teams","hooks_url":"https://api.github.com/repos/truongthanhnguyen/fels_95/hooks","issue_events_url":"https://api.github.com/repos/truongthanhnguyen/fels_95/issues/events{/number}","events_url":"https://api.github.com/repos/truongthanhnguyen/fels_95/events","assignees_url":"https://api.github.com/repos/truongthanhnguyen/fels_95/assignees{/user}","branches_url":"https://api.github.com/repos/truongthanhnguyen/fels_95/branches{/branch}","tags_url":"https://api.github.com/repos/truongthanhnguyen/fels_95/tags","blobs_url":"https://api.github.com/repos/truongthanhnguyen/fels_95/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/truongthanhnguyen/fels_95/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/truongthanhnguyen/fels_95/git/refs{/sha}","trees_url":"https://api.github.com/repos/truongthanhnguyen/fels_95/git/trees{/sha}","statuses_url":"https://api.github.com/repos/truongthanhnguyen/fels_95/statuses/{sha}","languages_url":"https://api.github.com/repos/truongthanhnguyen/fels_95/languages","stargazers_url":"https://api.github.com/repos/truongthanhnguyen/fels_95/stargazers","contributors_url":"https://api.github.com/repos/truongthanhnguyen/fels_95/contributors","subscribers_url":"https://api.github.com/repos/truongthanhnguyen/fels_95/subscribers","subscription_url":"https://api.github.com/repos/truongthanhnguyen/fels_95/subscription","commits_url":"https://api.github.com/repos/truongthanhnguyen/fels_95/commits{/sha}","git_commits_url":"https://api.github.com/repos/truongthanhnguyen/fels_95/git/commits{/sha}","comments_url":"https://api.github.com/repos/truongthanhnguyen/fels_95/comments{/number}","issue_comment_url":"https://api.github.com/repos/truongthanhnguyen/fels_95/issues/comments{/number}","contents_url":"https://api.github.com/repos/truongthanhnguyen/fels_95/contents/{+path}","compare_url":"https://api.github.com/repos/truongthanhnguyen/fels_95/compare/{base}...{head}","merges_url":"https://api.github.com/repos/truongthanhnguyen/fels_95/merges","archive_url":"https://api.github.com/repos/truongthanhnguyen/fels_95/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/truongthanhnguyen/fels_95/downloads","issues_url":"https://api.github.com/repos/truongthanhnguyen/fels_95/issues{/number}","pulls_url":"https://api.github.com/repos/truongthanhnguyen/fels_95/pulls{/number}","milestones_url":"https://api.github.com/repos/truongthanhnguyen/fels_95/milestones{/number}","notifications_url":"https://api.github.com/repos/truongthanhnguyen/fels_95/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/truongthanhnguyen/fels_95/labels{/name}","releases_url":"https://api.github.com/repos/truongthanhnguyen/fels_95/releases{/id}","created_at":"2015-12-29T08:35:01Z","updated_at":"2015-11-27T06:37:46Z","pushed_at":"2016-01-18T02:47:11Z","git_url":"git://github.com/truongthanhnguyen/fels_95.git","ssh_url":"git@github.com:truongthanhnguyen/fels_95.git","clone_url":"https://github.com/truongthanhnguyen/fels_95.git","svn_url":"https://github.com/truongthanhnguyen/fels_95","homepage":null,"size":76,"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":"2e8f62de6546bc39fb38fce8ebd2a6eb3c73e39b","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":46963906,"name":"fels_95","full_name":"framgia/fels_95","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_95","description":"Framgia E-Learning System (training)","fork":false,"url":"https://api.github.com/repos/framgia/fels_95","forks_url":"https://api.github.com/repos/framgia/fels_95/forks","keys_url":"https://api.github.com/repos/framgia/fels_95/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fels_95/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fels_95/teams","hooks_url":"https://api.github.com/repos/framgia/fels_95/hooks","issue_events_url":"https://api.github.com/repos/framgia/fels_95/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fels_95/events","assignees_url":"https://api.github.com/repos/framgia/fels_95/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fels_95/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fels_95/tags","blobs_url":"https://api.github.com/repos/framgia/fels_95/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fels_95/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fels_95/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fels_95/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fels_95/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fels_95/languages","stargazers_url":"https://api.github.com/repos/framgia/fels_95/stargazers","contributors_url":"https://api.github.com/repos/framgia/fels_95/contributors","subscribers_url":"https://api.github.com/repos/framgia/fels_95/subscribers","subscription_url":"https://api.github.com/repos/framgia/fels_95/subscription","commits_url":"https://api.github.com/repos/framgia/fels_95/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fels_95/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fels_95/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fels_95/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fels_95/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fels_95/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fels_95/merges","archive_url":"https://api.github.com/repos/framgia/fels_95/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fels_95/downloads","issues_url":"https://api.github.com/repos/framgia/fels_95/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fels_95/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fels_95/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fels_95/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fels_95/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fels_95/releases{/id}","created_at":"2015-11-27T06:37:46Z","updated_at":"2015-11-27T06:37:46Z","pushed_at":"2016-01-18T02:47:12Z","git_url":"git://github.com/framgia/fels_95.git","ssh_url":"git@github.com:framgia/fels_95.git","clone_url":"https://github.com/framgia/fels_95.git","svn_url":"https://github.com/framgia/fels_95","homepage":null,"size":82,"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":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_95/pulls/17"},"html":{"href":"https://github.com/framgia/fels_95/pull/17"},"issue":{"href":"https://api.github.com/repos/framgia/fels_95/issues/17"},"comments":{"href":"https://api.github.com/repos/framgia/fels_95/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fels_95/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fels_95/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fels_95/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fels_95/statuses/389f907f8fac81966c3be220cd3743a498fee852"}}}}