{"action":"created","comment":{"url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/pulls/comments/172749968","pull_request_review_id":101818212,"id":172749968,"diff_hunk":"@@ -26,12 +27,33 @@ def remember\n     update_attribute(:remember_digest, User.digest(remember_token))\n   end\n \n-  def authenticated? remember_token\n-    return false if remember_digest.nil?\n-    BCrypt::Password.new(remember_digest).is_password?(remember_token)\n+  def authenticated?(attribute, token)\n+    digest = send(\"#{attribute}_digest\")\n+    return false if digest.nil?\n+    BCrypt::Password.new(digest).is_password?(token)\n   end\n \n   def forget\n     update_attribute(:remember_digest, nil)\n   end\n+\n+  def activate\n+    update_attribute(:activate, true)\n+    update_attribute(:activate_at, Time.zone.now)","path":"app/models/user.rb","position":null,"original_position":29,"commit_id":"00bd2e6d6f08e48dfd41717b709a1e4177257b22","original_commit_id":"8912b9fb93ea4f11ba023d7872a8e18e75136212","user":{"login":"CaoAnhDao1804","id":35882165,"avatar_url":"https://avatars2.githubusercontent.com/u/35882165?v=4","gravatar_id":"","url":"https://api.github.com/users/CaoAnhDao1804","html_url":"https://github.com/CaoAnhDao1804","followers_url":"https://api.github.com/users/CaoAnhDao1804/followers","following_url":"https://api.github.com/users/CaoAnhDao1804/following{/other_user}","gists_url":"https://api.github.com/users/CaoAnhDao1804/gists{/gist_id}","starred_url":"https://api.github.com/users/CaoAnhDao1804/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CaoAnhDao1804/subscriptions","organizations_url":"https://api.github.com/users/CaoAnhDao1804/orgs","repos_url":"https://api.github.com/users/CaoAnhDao1804/repos","events_url":"https://api.github.com/users/CaoAnhDao1804/events{/privacy}","received_events_url":"https://api.github.com/users/CaoAnhDao1804/received_events","type":"User","site_admin":false},"body":"dạ được chị.","created_at":"2018-03-07T06:20:55Z","updated_at":"2018-03-07T06:30:31Z","html_url":"https://github.com/CaoAnhDao1804/sample_app/pull/9#discussion_r172749968","pull_request_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/pulls/9","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/CaoAnhDao1804/sample_app/pulls/comments/172749968"},"html":{"href":"https://github.com/CaoAnhDao1804/sample_app/pull/9#discussion_r172749968"},"pull_request":{"href":"https://api.github.com/repos/CaoAnhDao1804/sample_app/pulls/9"}},"in_reply_to_id":172554099},"pull_request":{"url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/pulls/9","id":173156545,"html_url":"https://github.com/CaoAnhDao1804/sample_app/pull/9","diff_url":"https://github.com/CaoAnhDao1804/sample_app/pull/9.diff","patch_url":"https://github.com/CaoAnhDao1804/sample_app/pull/9.patch","issue_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/issues/9","number":9,"state":"open","locked":false,"title":"Account activation","user":{"login":"CaoAnhDao1804","id":35882165,"avatar_url":"https://avatars2.githubusercontent.com/u/35882165?v=4","gravatar_id":"","url":"https://api.github.com/users/CaoAnhDao1804","html_url":"https://github.com/CaoAnhDao1804","followers_url":"https://api.github.com/users/CaoAnhDao1804/followers","following_url":"https://api.github.com/users/CaoAnhDao1804/following{/other_user}","gists_url":"https://api.github.com/users/CaoAnhDao1804/gists{/gist_id}","starred_url":"https://api.github.com/users/CaoAnhDao1804/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CaoAnhDao1804/subscriptions","organizations_url":"https://api.github.com/users/CaoAnhDao1804/orgs","repos_url":"https://api.github.com/users/CaoAnhDao1804/repos","events_url":"https://api.github.com/users/CaoAnhDao1804/events{/privacy}","received_events_url":"https://api.github.com/users/CaoAnhDao1804/received_events","type":"User","site_admin":false},"body":"![screenshot from 2018-03-06 20-22-12](https://user-images.githubusercontent.com/35882165/37034569-479fee20-217c-11e8-8285-4c1caf75d8c0.png)\r\n","created_at":"2018-03-06T13:23:53Z","updated_at":"2018-03-07T06:30:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"16210d2894f9c94274d761ec38b67b3382c6c8f3","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/pulls/9/commits","review_comments_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/pulls/9/comments","review_comment_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/issues/9/comments","statuses_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/statuses/00bd2e6d6f08e48dfd41717b709a1e4177257b22","head":{"label":"CaoAnhDao1804:account-activation","ref":"account-activation","sha":"00bd2e6d6f08e48dfd41717b709a1e4177257b22","user":{"login":"CaoAnhDao1804","id":35882165,"avatar_url":"https://avatars2.githubusercontent.com/u/35882165?v=4","gravatar_id":"","url":"https://api.github.com/users/CaoAnhDao1804","html_url":"https://github.com/CaoAnhDao1804","followers_url":"https://api.github.com/users/CaoAnhDao1804/followers","following_url":"https://api.github.com/users/CaoAnhDao1804/following{/other_user}","gists_url":"https://api.github.com/users/CaoAnhDao1804/gists{/gist_id}","starred_url":"https://api.github.com/users/CaoAnhDao1804/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CaoAnhDao1804/subscriptions","organizations_url":"https://api.github.com/users/CaoAnhDao1804/orgs","repos_url":"https://api.github.com/users/CaoAnhDao1804/repos","events_url":"https://api.github.com/users/CaoAnhDao1804/events{/privacy}","received_events_url":"https://api.github.com/users/CaoAnhDao1804/received_events","type":"User","site_admin":false},"repo":{"id":122423163,"name":"sample_app","full_name":"CaoAnhDao1804/sample_app","owner":{"login":"CaoAnhDao1804","id":35882165,"avatar_url":"https://avatars2.githubusercontent.com/u/35882165?v=4","gravatar_id":"","url":"https://api.github.com/users/CaoAnhDao1804","html_url":"https://github.com/CaoAnhDao1804","followers_url":"https://api.github.com/users/CaoAnhDao1804/followers","following_url":"https://api.github.com/users/CaoAnhDao1804/following{/other_user}","gists_url":"https://api.github.com/users/CaoAnhDao1804/gists{/gist_id}","starred_url":"https://api.github.com/users/CaoAnhDao1804/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CaoAnhDao1804/subscriptions","organizations_url":"https://api.github.com/users/CaoAnhDao1804/orgs","repos_url":"https://api.github.com/users/CaoAnhDao1804/repos","events_url":"https://api.github.com/users/CaoAnhDao1804/events{/privacy}","received_events_url":"https://api.github.com/users/CaoAnhDao1804/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/CaoAnhDao1804/sample_app","description":null,"fork":false,"url":"https://api.github.com/repos/CaoAnhDao1804/sample_app","forks_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/forks","keys_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/teams","hooks_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/hooks","issue_events_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/issues/events{/number}","events_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/events","assignees_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/assignees{/user}","branches_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/branches{/branch}","tags_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/tags","blobs_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/statuses/{sha}","languages_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/languages","stargazers_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/stargazers","contributors_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/contributors","subscribers_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/subscribers","subscription_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/subscription","commits_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/contents/{+path}","compare_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/merges","archive_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/downloads","issues_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/issues{/number}","pulls_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/pulls{/number}","milestones_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/milestones{/number}","notifications_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/labels{/name}","releases_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/releases{/id}","deployments_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/deployments","created_at":"2018-02-22T02:55:30Z","updated_at":"2018-02-22T03:01:17Z","pushed_at":"2018-03-07T06:30:01Z","git_url":"git://github.com/CaoAnhDao1804/sample_app.git","ssh_url":"git@github.com:CaoAnhDao1804/sample_app.git","clone_url":"https://github.com/CaoAnhDao1804/sample_app.git","svn_url":"https://github.com/CaoAnhDao1804/sample_app","homepage":null,"size":210,"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":"CaoAnhDao1804:master","ref":"master","sha":"d08d8c0379b4a231eaaef7ddb58414c375dd5b68","user":{"login":"CaoAnhDao1804","id":35882165,"avatar_url":"https://avatars2.githubusercontent.com/u/35882165?v=4","gravatar_id":"","url":"https://api.github.com/users/CaoAnhDao1804","html_url":"https://github.com/CaoAnhDao1804","followers_url":"https://api.github.com/users/CaoAnhDao1804/followers","following_url":"https://api.github.com/users/CaoAnhDao1804/following{/other_user}","gists_url":"https://api.github.com/users/CaoAnhDao1804/gists{/gist_id}","starred_url":"https://api.github.com/users/CaoAnhDao1804/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CaoAnhDao1804/subscriptions","organizations_url":"https://api.github.com/users/CaoAnhDao1804/orgs","repos_url":"https://api.github.com/users/CaoAnhDao1804/repos","events_url":"https://api.github.com/users/CaoAnhDao1804/events{/privacy}","received_events_url":"https://api.github.com/users/CaoAnhDao1804/received_events","type":"User","site_admin":false},"repo":{"id":122423163,"name":"sample_app","full_name":"CaoAnhDao1804/sample_app","owner":{"login":"CaoAnhDao1804","id":35882165,"avatar_url":"https://avatars2.githubusercontent.com/u/35882165?v=4","gravatar_id":"","url":"https://api.github.com/users/CaoAnhDao1804","html_url":"https://github.com/CaoAnhDao1804","followers_url":"https://api.github.com/users/CaoAnhDao1804/followers","following_url":"https://api.github.com/users/CaoAnhDao1804/following{/other_user}","gists_url":"https://api.github.com/users/CaoAnhDao1804/gists{/gist_id}","starred_url":"https://api.github.com/users/CaoAnhDao1804/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CaoAnhDao1804/subscriptions","organizations_url":"https://api.github.com/users/CaoAnhDao1804/orgs","repos_url":"https://api.github.com/users/CaoAnhDao1804/repos","events_url":"https://api.github.com/users/CaoAnhDao1804/events{/privacy}","received_events_url":"https://api.github.com/users/CaoAnhDao1804/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/CaoAnhDao1804/sample_app","description":null,"fork":false,"url":"https://api.github.com/repos/CaoAnhDao1804/sample_app","forks_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/forks","keys_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/teams","hooks_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/hooks","issue_events_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/issues/events{/number}","events_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/events","assignees_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/assignees{/user}","branches_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/branches{/branch}","tags_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/tags","blobs_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/statuses/{sha}","languages_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/languages","stargazers_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/stargazers","contributors_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/contributors","subscribers_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/subscribers","subscription_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/subscription","commits_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/contents/{+path}","compare_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/merges","archive_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/downloads","issues_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/issues{/number}","pulls_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/pulls{/number}","milestones_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/milestones{/number}","notifications_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/labels{/name}","releases_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/releases{/id}","deployments_url":"https://api.github.com/repos/CaoAnhDao1804/sample_app/deployments","created_at":"2018-02-22T02:55:30Z","updated_at":"2018-02-22T03:01:17Z","pushed_at":"2018-03-07T06:30:01Z","git_url":"git://github.com/CaoAnhDao1804/sample_app.git","ssh_url":"git@github.com:CaoAnhDao1804/sample_app.git","clone_url":"https://github.com/CaoAnhDao1804/sample_app.git","svn_url":"https://github.com/CaoAnhDao1804/sample_app","homepage":null,"size":210,"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/CaoAnhDao1804/sample_app/pulls/9"},"html":{"href":"https://github.com/CaoAnhDao1804/sample_app/pull/9"},"issue":{"href":"https://api.github.com/repos/CaoAnhDao1804/sample_app/issues/9"},"comments":{"href":"https://api.github.com/repos/CaoAnhDao1804/sample_app/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/CaoAnhDao1804/sample_app/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/CaoAnhDao1804/sample_app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CaoAnhDao1804/sample_app/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/CaoAnhDao1804/sample_app/statuses/00bd2e6d6f08e48dfd41717b709a1e4177257b22"}},"author_association":"OWNER"}}
{"actor":{"display_login":"CaoAnhDao1804"}}