{"action":"created","comment":{"url":"https://api.github.com/repos/buingocquocbkdn/sample_app/pulls/comments/225370051","pull_request_review_id":164955886,"id":225370051,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNTM3MDA1MQ==","diff_hunk":"@@ -0,0 +1,18 @@\n+module SessionsHelper\n+  def log_in user\n+    session[:user_id] = user.id\n+  end\n+\n+  def current_user\n+    @current_user ||= User.find_by(id: session[:user_id]) if session[:user_id]\n+  end\n+\n+  def logged_in?\n+    !current_user.present?","path":"app/helpers/sessions_helper.rb","position":11,"original_position":11,"commit_id":"b49e7f65ca201e193d5412251adf32df7aa81f86","original_commit_id":"b49e7f65ca201e193d5412251adf32df7aa81f86","user":{"login":"VuThiTranVan","id":27009821,"node_id":"MDQ6VXNlcjI3MDA5ODIx","avatar_url":"https://avatars3.githubusercontent.com/u/27009821?v=4","gravatar_id":"","url":"https://api.github.com/users/VuThiTranVan","html_url":"https://github.com/VuThiTranVan","followers_url":"https://api.github.com/users/VuThiTranVan/followers","following_url":"https://api.github.com/users/VuThiTranVan/following{/other_user}","gists_url":"https://api.github.com/users/VuThiTranVan/gists{/gist_id}","starred_url":"https://api.github.com/users/VuThiTranVan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VuThiTranVan/subscriptions","organizations_url":"https://api.github.com/users/VuThiTranVan/orgs","repos_url":"https://api.github.com/users/VuThiTranVan/repos","events_url":"https://api.github.com/users/VuThiTranVan/events{/privacy}","received_events_url":"https://api.github.com/users/VuThiTranVan/received_events","type":"User","site_admin":false},"body":"(lay)(tat) tìm hiểu `present?` `blank?` và `nil?` có gì khác nhau nào\r\nxóa `!` đi nhé","created_at":"2018-10-16T01:36:57Z","updated_at":"2018-10-16T01:37:22Z","html_url":"https://github.com/buingocquocbkdn/sample_app/pull/6#discussion_r225370051","pull_request_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/pulls/6","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/buingocquocbkdn/sample_app/pulls/comments/225370051"},"html":{"href":"https://github.com/buingocquocbkdn/sample_app/pull/6#discussion_r225370051"},"pull_request":{"href":"https://api.github.com/repos/buingocquocbkdn/sample_app/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/buingocquocbkdn/sample_app/pulls/6","id":222817297,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIyODE3Mjk3","html_url":"https://github.com/buingocquocbkdn/sample_app/pull/6","diff_url":"https://github.com/buingocquocbkdn/sample_app/pull/6.diff","patch_url":"https://github.com/buingocquocbkdn/sample_app/pull/6.patch","issue_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/issues/6","number":6,"state":"open","locked":false,"title":"Chapter 8: Basic login","user":{"login":"buingocquocbkdn","id":16585368,"node_id":"MDQ6VXNlcjE2NTg1MzY4","avatar_url":"https://avatars1.githubusercontent.com/u/16585368?v=4","gravatar_id":"","url":"https://api.github.com/users/buingocquocbkdn","html_url":"https://github.com/buingocquocbkdn","followers_url":"https://api.github.com/users/buingocquocbkdn/followers","following_url":"https://api.github.com/users/buingocquocbkdn/following{/other_user}","gists_url":"https://api.github.com/users/buingocquocbkdn/gists{/gist_id}","starred_url":"https://api.github.com/users/buingocquocbkdn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buingocquocbkdn/subscriptions","organizations_url":"https://api.github.com/users/buingocquocbkdn/orgs","repos_url":"https://api.github.com/users/buingocquocbkdn/repos","events_url":"https://api.github.com/users/buingocquocbkdn/events{/privacy}","received_events_url":"https://api.github.com/users/buingocquocbkdn/received_events","type":"User","site_admin":false},"body":"![screenshot from 2018-10-15 14-57-40](https://user-images.githubusercontent.com/16585368/46938039-ee7d7b80-d08c-11e8-8297-95df00e296f5.png)\r\nready","created_at":"2018-10-15T08:14:05Z","updated_at":"2018-10-16T01:37:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c777cd2c87656b40951b20fdae76301d97e807a8","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/pulls/6/commits","review_comments_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/pulls/6/comments","review_comment_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/issues/6/comments","statuses_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/statuses/b49e7f65ca201e193d5412251adf32df7aa81f86","head":{"label":"buingocquocbkdn:chapter8","ref":"chapter8","sha":"b49e7f65ca201e193d5412251adf32df7aa81f86","user":{"login":"buingocquocbkdn","id":16585368,"node_id":"MDQ6VXNlcjE2NTg1MzY4","avatar_url":"https://avatars1.githubusercontent.com/u/16585368?v=4","gravatar_id":"","url":"https://api.github.com/users/buingocquocbkdn","html_url":"https://github.com/buingocquocbkdn","followers_url":"https://api.github.com/users/buingocquocbkdn/followers","following_url":"https://api.github.com/users/buingocquocbkdn/following{/other_user}","gists_url":"https://api.github.com/users/buingocquocbkdn/gists{/gist_id}","starred_url":"https://api.github.com/users/buingocquocbkdn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buingocquocbkdn/subscriptions","organizations_url":"https://api.github.com/users/buingocquocbkdn/orgs","repos_url":"https://api.github.com/users/buingocquocbkdn/repos","events_url":"https://api.github.com/users/buingocquocbkdn/events{/privacy}","received_events_url":"https://api.github.com/users/buingocquocbkdn/received_events","type":"User","site_admin":false},"repo":{"id":152342256,"node_id":"MDEwOlJlcG9zaXRvcnkxNTIzNDIyNTY=","name":"sample_app","full_name":"buingocquocbkdn/sample_app","private":false,"owner":{"login":"buingocquocbkdn","id":16585368,"node_id":"MDQ6VXNlcjE2NTg1MzY4","avatar_url":"https://avatars1.githubusercontent.com/u/16585368?v=4","gravatar_id":"","url":"https://api.github.com/users/buingocquocbkdn","html_url":"https://github.com/buingocquocbkdn","followers_url":"https://api.github.com/users/buingocquocbkdn/followers","following_url":"https://api.github.com/users/buingocquocbkdn/following{/other_user}","gists_url":"https://api.github.com/users/buingocquocbkdn/gists{/gist_id}","starred_url":"https://api.github.com/users/buingocquocbkdn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buingocquocbkdn/subscriptions","organizations_url":"https://api.github.com/users/buingocquocbkdn/orgs","repos_url":"https://api.github.com/users/buingocquocbkdn/repos","events_url":"https://api.github.com/users/buingocquocbkdn/events{/privacy}","received_events_url":"https://api.github.com/users/buingocquocbkdn/received_events","type":"User","site_admin":false},"html_url":"https://github.com/buingocquocbkdn/sample_app","description":null,"fork":false,"url":"https://api.github.com/repos/buingocquocbkdn/sample_app","forks_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/forks","keys_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/teams","hooks_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/hooks","issue_events_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/issues/events{/number}","events_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/events","assignees_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/assignees{/user}","branches_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/branches{/branch}","tags_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/tags","blobs_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/statuses/{sha}","languages_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/languages","stargazers_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/stargazers","contributors_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/contributors","subscribers_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/subscribers","subscription_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/subscription","commits_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/contents/{+path}","compare_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/merges","archive_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/downloads","issues_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/issues{/number}","pulls_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/pulls{/number}","milestones_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/milestones{/number}","notifications_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/labels{/name}","releases_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/releases{/id}","deployments_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/deployments","created_at":"2018-10-10T01:05:52Z","updated_at":"2018-10-15T06:37:00Z","pushed_at":"2018-10-15T09:09:04Z","git_url":"git://github.com/buingocquocbkdn/sample_app.git","ssh_url":"git@github.com:buingocquocbkdn/sample_app.git","clone_url":"https://github.com/buingocquocbkdn/sample_app.git","svn_url":"https://github.com/buingocquocbkdn/sample_app","homepage":null,"size":212,"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":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"buingocquocbkdn:master","ref":"master","sha":"365f4c6b9ba96756766230614247392dda90d10b","user":{"login":"buingocquocbkdn","id":16585368,"node_id":"MDQ6VXNlcjE2NTg1MzY4","avatar_url":"https://avatars1.githubusercontent.com/u/16585368?v=4","gravatar_id":"","url":"https://api.github.com/users/buingocquocbkdn","html_url":"https://github.com/buingocquocbkdn","followers_url":"https://api.github.com/users/buingocquocbkdn/followers","following_url":"https://api.github.com/users/buingocquocbkdn/following{/other_user}","gists_url":"https://api.github.com/users/buingocquocbkdn/gists{/gist_id}","starred_url":"https://api.github.com/users/buingocquocbkdn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buingocquocbkdn/subscriptions","organizations_url":"https://api.github.com/users/buingocquocbkdn/orgs","repos_url":"https://api.github.com/users/buingocquocbkdn/repos","events_url":"https://api.github.com/users/buingocquocbkdn/events{/privacy}","received_events_url":"https://api.github.com/users/buingocquocbkdn/received_events","type":"User","site_admin":false},"repo":{"id":152342256,"node_id":"MDEwOlJlcG9zaXRvcnkxNTIzNDIyNTY=","name":"sample_app","full_name":"buingocquocbkdn/sample_app","private":false,"owner":{"login":"buingocquocbkdn","id":16585368,"node_id":"MDQ6VXNlcjE2NTg1MzY4","avatar_url":"https://avatars1.githubusercontent.com/u/16585368?v=4","gravatar_id":"","url":"https://api.github.com/users/buingocquocbkdn","html_url":"https://github.com/buingocquocbkdn","followers_url":"https://api.github.com/users/buingocquocbkdn/followers","following_url":"https://api.github.com/users/buingocquocbkdn/following{/other_user}","gists_url":"https://api.github.com/users/buingocquocbkdn/gists{/gist_id}","starred_url":"https://api.github.com/users/buingocquocbkdn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buingocquocbkdn/subscriptions","organizations_url":"https://api.github.com/users/buingocquocbkdn/orgs","repos_url":"https://api.github.com/users/buingocquocbkdn/repos","events_url":"https://api.github.com/users/buingocquocbkdn/events{/privacy}","received_events_url":"https://api.github.com/users/buingocquocbkdn/received_events","type":"User","site_admin":false},"html_url":"https://github.com/buingocquocbkdn/sample_app","description":null,"fork":false,"url":"https://api.github.com/repos/buingocquocbkdn/sample_app","forks_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/forks","keys_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/teams","hooks_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/hooks","issue_events_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/issues/events{/number}","events_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/events","assignees_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/assignees{/user}","branches_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/branches{/branch}","tags_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/tags","blobs_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/statuses/{sha}","languages_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/languages","stargazers_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/stargazers","contributors_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/contributors","subscribers_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/subscribers","subscription_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/subscription","commits_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/contents/{+path}","compare_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/merges","archive_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/downloads","issues_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/issues{/number}","pulls_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/pulls{/number}","milestones_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/milestones{/number}","notifications_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/labels{/name}","releases_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/releases{/id}","deployments_url":"https://api.github.com/repos/buingocquocbkdn/sample_app/deployments","created_at":"2018-10-10T01:05:52Z","updated_at":"2018-10-15T06:37:00Z","pushed_at":"2018-10-15T09:09:04Z","git_url":"git://github.com/buingocquocbkdn/sample_app.git","ssh_url":"git@github.com:buingocquocbkdn/sample_app.git","clone_url":"https://github.com/buingocquocbkdn/sample_app.git","svn_url":"https://github.com/buingocquocbkdn/sample_app","homepage":null,"size":212,"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":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/buingocquocbkdn/sample_app/pulls/6"},"html":{"href":"https://github.com/buingocquocbkdn/sample_app/pull/6"},"issue":{"href":"https://api.github.com/repos/buingocquocbkdn/sample_app/issues/6"},"comments":{"href":"https://api.github.com/repos/buingocquocbkdn/sample_app/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/buingocquocbkdn/sample_app/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/buingocquocbkdn/sample_app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/buingocquocbkdn/sample_app/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/buingocquocbkdn/sample_app/statuses/b49e7f65ca201e193d5412251adf32df7aa81f86"}},"author_association":"OWNER"}}
{"actor":{"display_login":"VuThiTranVan"}}