{"action":"created","comment":{"url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/pulls/comments/166551496","pull_request_review_id":94629481,"id":166551496,"diff_hunk":"@@ -6,4 +6,10 @@ def gravatar_for user, options = {size: 80}\n     gravatar_url = \"https://secure.gravatar.com/avatar/#{gravatar_id}?s=#{size}\"\n     image_tag gravatar_url, alt: user.name, class: \"gravatar\"\n   end\n+\n+  def load_genders","path":"app/helpers/users_helper.rb","position":5,"original_position":5,"commit_id":"aef2941fc6d15c37d7d1c73ee8c4ef3785c7d4e7","original_commit_id":"aef2941fc6d15c37d7d1c73ee8c4ef3785c7d4e7","user":{"login":"lab-oe7-r-sonnv","id":34698978,"avatar_url":"https://avatars1.githubusercontent.com/u/34698978?v=4","gravatar_id":"","url":"https://api.github.com/users/lab-oe7-r-sonnv","html_url":"https://github.com/lab-oe7-r-sonnv","followers_url":"https://api.github.com/users/lab-oe7-r-sonnv/followers","following_url":"https://api.github.com/users/lab-oe7-r-sonnv/following{/other_user}","gists_url":"https://api.github.com/users/lab-oe7-r-sonnv/gists{/gist_id}","starred_url":"https://api.github.com/users/lab-oe7-r-sonnv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lab-oe7-r-sonnv/subscriptions","organizations_url":"https://api.github.com/users/lab-oe7-r-sonnv/orgs","repos_url":"https://api.github.com/users/lab-oe7-r-sonnv/repos","events_url":"https://api.github.com/users/lab-oe7-r-sonnv/events{/privacy}","received_events_url":"https://api.github.com/users/lab-oe7-r-sonnv/received_events","type":"User","site_admin":false},"body":"reek báo lỗi `TooManyMethods` trong `models/users` nên em để `load_genders` sang `UsersHelper` để fix lỗi này. Em thấy chuyển được vì `load_genders` chỉ phục vụ cho view","created_at":"2018-02-07T08:55:23Z","updated_at":"2018-02-07T08:55:23Z","html_url":"https://github.com/lab-oe7-r-sonnv/rails-tut/pull/17#discussion_r166551496","pull_request_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/pulls/17","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/pulls/comments/166551496"},"html":{"href":"https://github.com/lab-oe7-r-sonnv/rails-tut/pull/17#discussion_r166551496"},"pull_request":{"href":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/pulls/17"}},"in_reply_to_id":166550288},"pull_request":{"url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/pulls/17","id":167333760,"html_url":"https://github.com/lab-oe7-r-sonnv/rails-tut/pull/17","diff_url":"https://github.com/lab-oe7-r-sonnv/rails-tut/pull/17.diff","patch_url":"https://github.com/lab-oe7-r-sonnv/rails-tut/pull/17.patch","issue_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/issues/17","number":17,"state":"open","locked":false,"title":"Chapter 14: Following users","user":{"login":"lab-oe7-r-sonnv","id":34698978,"avatar_url":"https://avatars1.githubusercontent.com/u/34698978?v=4","gravatar_id":"","url":"https://api.github.com/users/lab-oe7-r-sonnv","html_url":"https://github.com/lab-oe7-r-sonnv","followers_url":"https://api.github.com/users/lab-oe7-r-sonnv/followers","following_url":"https://api.github.com/users/lab-oe7-r-sonnv/following{/other_user}","gists_url":"https://api.github.com/users/lab-oe7-r-sonnv/gists{/gist_id}","starred_url":"https://api.github.com/users/lab-oe7-r-sonnv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lab-oe7-r-sonnv/subscriptions","organizations_url":"https://api.github.com/users/lab-oe7-r-sonnv/orgs","repos_url":"https://api.github.com/users/lab-oe7-r-sonnv/repos","events_url":"https://api.github.com/users/lab-oe7-r-sonnv/events{/privacy}","received_events_url":"https://api.github.com/users/lab-oe7-r-sonnv/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-02-06T06:54:24Z","updated_at":"2018-02-07T08:55:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c3acea257b3c6c104759cf0850e0897a98b79082","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/pulls/17/commits","review_comments_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/pulls/17/comments","review_comment_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/issues/17/comments","statuses_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/statuses/aef2941fc6d15c37d7d1c73ee8c4ef3785c7d4e7","head":{"label":"lab-oe7-r-sonnv:chap14_following_users","ref":"chap14_following_users","sha":"aef2941fc6d15c37d7d1c73ee8c4ef3785c7d4e7","user":{"login":"lab-oe7-r-sonnv","id":34698978,"avatar_url":"https://avatars1.githubusercontent.com/u/34698978?v=4","gravatar_id":"","url":"https://api.github.com/users/lab-oe7-r-sonnv","html_url":"https://github.com/lab-oe7-r-sonnv","followers_url":"https://api.github.com/users/lab-oe7-r-sonnv/followers","following_url":"https://api.github.com/users/lab-oe7-r-sonnv/following{/other_user}","gists_url":"https://api.github.com/users/lab-oe7-r-sonnv/gists{/gist_id}","starred_url":"https://api.github.com/users/lab-oe7-r-sonnv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lab-oe7-r-sonnv/subscriptions","organizations_url":"https://api.github.com/users/lab-oe7-r-sonnv/orgs","repos_url":"https://api.github.com/users/lab-oe7-r-sonnv/repos","events_url":"https://api.github.com/users/lab-oe7-r-sonnv/events{/privacy}","received_events_url":"https://api.github.com/users/lab-oe7-r-sonnv/received_events","type":"User","site_admin":false},"repo":{"id":115495050,"name":"rails-tut","full_name":"lab-oe7-r-sonnv/rails-tut","owner":{"login":"lab-oe7-r-sonnv","id":34698978,"avatar_url":"https://avatars1.githubusercontent.com/u/34698978?v=4","gravatar_id":"","url":"https://api.github.com/users/lab-oe7-r-sonnv","html_url":"https://github.com/lab-oe7-r-sonnv","followers_url":"https://api.github.com/users/lab-oe7-r-sonnv/followers","following_url":"https://api.github.com/users/lab-oe7-r-sonnv/following{/other_user}","gists_url":"https://api.github.com/users/lab-oe7-r-sonnv/gists{/gist_id}","starred_url":"https://api.github.com/users/lab-oe7-r-sonnv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lab-oe7-r-sonnv/subscriptions","organizations_url":"https://api.github.com/users/lab-oe7-r-sonnv/orgs","repos_url":"https://api.github.com/users/lab-oe7-r-sonnv/repos","events_url":"https://api.github.com/users/lab-oe7-r-sonnv/events{/privacy}","received_events_url":"https://api.github.com/users/lab-oe7-r-sonnv/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lab-oe7-r-sonnv/rails-tut","description":null,"fork":false,"url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut","forks_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/forks","keys_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/teams","hooks_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/hooks","issue_events_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/issues/events{/number}","events_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/events","assignees_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/assignees{/user}","branches_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/branches{/branch}","tags_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/tags","blobs_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/git/refs{/sha}","trees_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/statuses/{sha}","languages_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/languages","stargazers_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/stargazers","contributors_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/contributors","subscribers_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/subscribers","subscription_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/subscription","commits_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/commits{/sha}","git_commits_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/git/commits{/sha}","comments_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/comments{/number}","issue_comment_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/issues/comments{/number}","contents_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/contents/{+path}","compare_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/merges","archive_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/downloads","issues_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/issues{/number}","pulls_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/pulls{/number}","milestones_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/milestones{/number}","notifications_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/labels{/name}","releases_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/releases{/id}","deployments_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/deployments","created_at":"2017-12-27T07:35:45Z","updated_at":"2017-12-27T09:54:54Z","pushed_at":"2018-02-07T05:45:40Z","git_url":"git://github.com/lab-oe7-r-sonnv/rails-tut.git","ssh_url":"git@github.com:lab-oe7-r-sonnv/rails-tut.git","clone_url":"https://github.com/lab-oe7-r-sonnv/rails-tut.git","svn_url":"https://github.com/lab-oe7-r-sonnv/rails-tut","homepage":null,"size":136,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"lab-oe7-r-sonnv:master","ref":"master","sha":"c34a5afdf389bf77cb525d50ee693c784236a8ec","user":{"login":"lab-oe7-r-sonnv","id":34698978,"avatar_url":"https://avatars1.githubusercontent.com/u/34698978?v=4","gravatar_id":"","url":"https://api.github.com/users/lab-oe7-r-sonnv","html_url":"https://github.com/lab-oe7-r-sonnv","followers_url":"https://api.github.com/users/lab-oe7-r-sonnv/followers","following_url":"https://api.github.com/users/lab-oe7-r-sonnv/following{/other_user}","gists_url":"https://api.github.com/users/lab-oe7-r-sonnv/gists{/gist_id}","starred_url":"https://api.github.com/users/lab-oe7-r-sonnv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lab-oe7-r-sonnv/subscriptions","organizations_url":"https://api.github.com/users/lab-oe7-r-sonnv/orgs","repos_url":"https://api.github.com/users/lab-oe7-r-sonnv/repos","events_url":"https://api.github.com/users/lab-oe7-r-sonnv/events{/privacy}","received_events_url":"https://api.github.com/users/lab-oe7-r-sonnv/received_events","type":"User","site_admin":false},"repo":{"id":115495050,"name":"rails-tut","full_name":"lab-oe7-r-sonnv/rails-tut","owner":{"login":"lab-oe7-r-sonnv","id":34698978,"avatar_url":"https://avatars1.githubusercontent.com/u/34698978?v=4","gravatar_id":"","url":"https://api.github.com/users/lab-oe7-r-sonnv","html_url":"https://github.com/lab-oe7-r-sonnv","followers_url":"https://api.github.com/users/lab-oe7-r-sonnv/followers","following_url":"https://api.github.com/users/lab-oe7-r-sonnv/following{/other_user}","gists_url":"https://api.github.com/users/lab-oe7-r-sonnv/gists{/gist_id}","starred_url":"https://api.github.com/users/lab-oe7-r-sonnv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lab-oe7-r-sonnv/subscriptions","organizations_url":"https://api.github.com/users/lab-oe7-r-sonnv/orgs","repos_url":"https://api.github.com/users/lab-oe7-r-sonnv/repos","events_url":"https://api.github.com/users/lab-oe7-r-sonnv/events{/privacy}","received_events_url":"https://api.github.com/users/lab-oe7-r-sonnv/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lab-oe7-r-sonnv/rails-tut","description":null,"fork":false,"url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut","forks_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/forks","keys_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/teams","hooks_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/hooks","issue_events_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/issues/events{/number}","events_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/events","assignees_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/assignees{/user}","branches_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/branches{/branch}","tags_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/tags","blobs_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/git/refs{/sha}","trees_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/statuses/{sha}","languages_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/languages","stargazers_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/stargazers","contributors_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/contributors","subscribers_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/subscribers","subscription_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/subscription","commits_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/commits{/sha}","git_commits_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/git/commits{/sha}","comments_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/comments{/number}","issue_comment_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/issues/comments{/number}","contents_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/contents/{+path}","compare_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/merges","archive_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/downloads","issues_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/issues{/number}","pulls_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/pulls{/number}","milestones_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/milestones{/number}","notifications_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/labels{/name}","releases_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/releases{/id}","deployments_url":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/deployments","created_at":"2017-12-27T07:35:45Z","updated_at":"2017-12-27T09:54:54Z","pushed_at":"2018-02-07T05:45:40Z","git_url":"git://github.com/lab-oe7-r-sonnv/rails-tut.git","ssh_url":"git@github.com:lab-oe7-r-sonnv/rails-tut.git","clone_url":"https://github.com/lab-oe7-r-sonnv/rails-tut.git","svn_url":"https://github.com/lab-oe7-r-sonnv/rails-tut","homepage":null,"size":136,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/pulls/17"},"html":{"href":"https://github.com/lab-oe7-r-sonnv/rails-tut/pull/17"},"issue":{"href":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/issues/17"},"comments":{"href":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/lab-oe7-r-sonnv/rails-tut/statuses/aef2941fc6d15c37d7d1c73ee8c4ef3785c7d4e7"}},"author_association":"OWNER"}}
{"actor":{"display_login":"lab-oe7-r-sonnv"}}