{"action":"created","comment":{"url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/pulls/comments/202906702","pull_request_review_id":137690299,"id":202906702,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMjkwNjcwMg==","diff_hunk":"@@ -0,0 +1,14 @@\n+class AccountActivationsController < ApplicationController\n+  def edit\n+    user = User.find_by email: params[:email]\n+    if user && !user.activated? && user.authenticated?(:activation, params[:id])","path":"app/controllers/account_activations_controller.rb","position":4,"original_position":4,"commit_id":"8ea490a8d275dbddcd2fa32c0c2c2079aa11771f","original_commit_id":"8ea490a8d275dbddcd2fa32c0c2c2079aa11771f","user":{"login":"NguyenDucChinhENC","id":26338442,"node_id":"MDQ6VXNlcjI2MzM4NDQy","avatar_url":"https://avatars2.githubusercontent.com/u/26338442?v=4","gravatar_id":"","url":"https://api.github.com/users/NguyenDucChinhENC","html_url":"https://github.com/NguyenDucChinhENC","followers_url":"https://api.github.com/users/NguyenDucChinhENC/followers","following_url":"https://api.github.com/users/NguyenDucChinhENC/following{/other_user}","gists_url":"https://api.github.com/users/NguyenDucChinhENC/gists{/gist_id}","starred_url":"https://api.github.com/users/NguyenDucChinhENC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NguyenDucChinhENC/subscriptions","organizations_url":"https://api.github.com/users/NguyenDucChinhENC/orgs","repos_url":"https://api.github.com/users/NguyenDucChinhENC/repos","events_url":"https://api.github.com/users/NguyenDucChinhENC/events{/privacy}","received_events_url":"https://api.github.com/users/NguyenDucChinhENC/received_events","type":"User","site_admin":false},"body":"Sau khi đăng ký, trong create, t gọi User.send_activation_email được viết trong model User\r\nTrong hàm send_activation_email ở model, tiếp tục gọ account_activation trong UserMailer.\r\n","created_at":"2018-07-17T06:31:37Z","updated_at":"2018-07-17T06:31:37Z","html_url":"https://github.com/NguyenDucChinhENC/rutorial_2018_framgia/pull/11#discussion_r202906702","pull_request_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/pulls/11","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/pulls/comments/202906702"},"html":{"href":"https://github.com/NguyenDucChinhENC/rutorial_2018_framgia/pull/11#discussion_r202906702"},"pull_request":{"href":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/pulls/11"}},"in_reply_to_id":202894054},"pull_request":{"url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/pulls/11","id":201812085,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAxODEyMDg1","html_url":"https://github.com/NguyenDucChinhENC/rutorial_2018_framgia/pull/11","diff_url":"https://github.com/NguyenDucChinhENC/rutorial_2018_framgia/pull/11.diff","patch_url":"https://github.com/NguyenDucChinhENC/rutorial_2018_framgia/pull/11.patch","issue_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/issues/11","number":11,"state":"open","locked":false,"title":"Chapter 11","user":{"login":"NguyenDucChinhENC","id":26338442,"node_id":"MDQ6VXNlcjI2MzM4NDQy","avatar_url":"https://avatars2.githubusercontent.com/u/26338442?v=4","gravatar_id":"","url":"https://api.github.com/users/NguyenDucChinhENC","html_url":"https://github.com/NguyenDucChinhENC","followers_url":"https://api.github.com/users/NguyenDucChinhENC/followers","following_url":"https://api.github.com/users/NguyenDucChinhENC/following{/other_user}","gists_url":"https://api.github.com/users/NguyenDucChinhENC/gists{/gist_id}","starred_url":"https://api.github.com/users/NguyenDucChinhENC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NguyenDucChinhENC/subscriptions","organizations_url":"https://api.github.com/users/NguyenDucChinhENC/orgs","repos_url":"https://api.github.com/users/NguyenDucChinhENC/repos","events_url":"https://api.github.com/users/NguyenDucChinhENC/events{/privacy}","received_events_url":"https://api.github.com/users/NguyenDucChinhENC/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-07-17T03:01:43Z","updated_at":"2018-07-17T06:31:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4e180a7c295fad246d7f153da9010c7d29683538","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/pulls/11/commits","review_comments_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/pulls/11/comments","review_comment_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/issues/11/comments","statuses_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/statuses/8ea490a8d275dbddcd2fa32c0c2c2079aa11771f","head":{"label":"NguyenDucChinhENC:chapter_11","ref":"chapter_11","sha":"8ea490a8d275dbddcd2fa32c0c2c2079aa11771f","user":{"login":"NguyenDucChinhENC","id":26338442,"node_id":"MDQ6VXNlcjI2MzM4NDQy","avatar_url":"https://avatars2.githubusercontent.com/u/26338442?v=4","gravatar_id":"","url":"https://api.github.com/users/NguyenDucChinhENC","html_url":"https://github.com/NguyenDucChinhENC","followers_url":"https://api.github.com/users/NguyenDucChinhENC/followers","following_url":"https://api.github.com/users/NguyenDucChinhENC/following{/other_user}","gists_url":"https://api.github.com/users/NguyenDucChinhENC/gists{/gist_id}","starred_url":"https://api.github.com/users/NguyenDucChinhENC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NguyenDucChinhENC/subscriptions","organizations_url":"https://api.github.com/users/NguyenDucChinhENC/orgs","repos_url":"https://api.github.com/users/NguyenDucChinhENC/repos","events_url":"https://api.github.com/users/NguyenDucChinhENC/events{/privacy}","received_events_url":"https://api.github.com/users/NguyenDucChinhENC/received_events","type":"User","site_admin":false},"repo":{"id":140643867,"node_id":"MDEwOlJlcG9zaXRvcnkxNDA2NDM4Njc=","name":"rutorial_2018_framgia","full_name":"NguyenDucChinhENC/rutorial_2018_framgia","owner":{"login":"NguyenDucChinhENC","id":26338442,"node_id":"MDQ6VXNlcjI2MzM4NDQy","avatar_url":"https://avatars2.githubusercontent.com/u/26338442?v=4","gravatar_id":"","url":"https://api.github.com/users/NguyenDucChinhENC","html_url":"https://github.com/NguyenDucChinhENC","followers_url":"https://api.github.com/users/NguyenDucChinhENC/followers","following_url":"https://api.github.com/users/NguyenDucChinhENC/following{/other_user}","gists_url":"https://api.github.com/users/NguyenDucChinhENC/gists{/gist_id}","starred_url":"https://api.github.com/users/NguyenDucChinhENC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NguyenDucChinhENC/subscriptions","organizations_url":"https://api.github.com/users/NguyenDucChinhENC/orgs","repos_url":"https://api.github.com/users/NguyenDucChinhENC/repos","events_url":"https://api.github.com/users/NguyenDucChinhENC/events{/privacy}","received_events_url":"https://api.github.com/users/NguyenDucChinhENC/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/NguyenDucChinhENC/rutorial_2018_framgia","description":null,"fork":false,"url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia","forks_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/forks","keys_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/teams","hooks_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/hooks","issue_events_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/issues/events{/number}","events_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/events","assignees_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/assignees{/user}","branches_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/branches{/branch}","tags_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/tags","blobs_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/git/refs{/sha}","trees_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/statuses/{sha}","languages_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/languages","stargazers_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/stargazers","contributors_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/contributors","subscribers_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/subscribers","subscription_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/subscription","commits_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/commits{/sha}","git_commits_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/git/commits{/sha}","comments_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/comments{/number}","issue_comment_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/issues/comments{/number}","contents_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/contents/{+path}","compare_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/merges","archive_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/downloads","issues_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/issues{/number}","pulls_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/pulls{/number}","milestones_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/milestones{/number}","notifications_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/labels{/name}","releases_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/releases{/id}","deployments_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/deployments","created_at":"2018-07-12T01:15:47Z","updated_at":"2018-07-17T03:53:02Z","pushed_at":"2018-07-17T04:02:18Z","git_url":"git://github.com/NguyenDucChinhENC/rutorial_2018_framgia.git","ssh_url":"git@github.com:NguyenDucChinhENC/rutorial_2018_framgia.git","clone_url":"https://github.com/NguyenDucChinhENC/rutorial_2018_framgia.git","svn_url":"https://github.com/NguyenDucChinhENC/rutorial_2018_framgia","homepage":null,"size":83,"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":"NguyenDucChinhENC:master","ref":"master","sha":"8e1e3126d972162fb02fe7e5b8148d151ffc9e1c","user":{"login":"NguyenDucChinhENC","id":26338442,"node_id":"MDQ6VXNlcjI2MzM4NDQy","avatar_url":"https://avatars2.githubusercontent.com/u/26338442?v=4","gravatar_id":"","url":"https://api.github.com/users/NguyenDucChinhENC","html_url":"https://github.com/NguyenDucChinhENC","followers_url":"https://api.github.com/users/NguyenDucChinhENC/followers","following_url":"https://api.github.com/users/NguyenDucChinhENC/following{/other_user}","gists_url":"https://api.github.com/users/NguyenDucChinhENC/gists{/gist_id}","starred_url":"https://api.github.com/users/NguyenDucChinhENC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NguyenDucChinhENC/subscriptions","organizations_url":"https://api.github.com/users/NguyenDucChinhENC/orgs","repos_url":"https://api.github.com/users/NguyenDucChinhENC/repos","events_url":"https://api.github.com/users/NguyenDucChinhENC/events{/privacy}","received_events_url":"https://api.github.com/users/NguyenDucChinhENC/received_events","type":"User","site_admin":false},"repo":{"id":140643867,"node_id":"MDEwOlJlcG9zaXRvcnkxNDA2NDM4Njc=","name":"rutorial_2018_framgia","full_name":"NguyenDucChinhENC/rutorial_2018_framgia","owner":{"login":"NguyenDucChinhENC","id":26338442,"node_id":"MDQ6VXNlcjI2MzM4NDQy","avatar_url":"https://avatars2.githubusercontent.com/u/26338442?v=4","gravatar_id":"","url":"https://api.github.com/users/NguyenDucChinhENC","html_url":"https://github.com/NguyenDucChinhENC","followers_url":"https://api.github.com/users/NguyenDucChinhENC/followers","following_url":"https://api.github.com/users/NguyenDucChinhENC/following{/other_user}","gists_url":"https://api.github.com/users/NguyenDucChinhENC/gists{/gist_id}","starred_url":"https://api.github.com/users/NguyenDucChinhENC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NguyenDucChinhENC/subscriptions","organizations_url":"https://api.github.com/users/NguyenDucChinhENC/orgs","repos_url":"https://api.github.com/users/NguyenDucChinhENC/repos","events_url":"https://api.github.com/users/NguyenDucChinhENC/events{/privacy}","received_events_url":"https://api.github.com/users/NguyenDucChinhENC/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/NguyenDucChinhENC/rutorial_2018_framgia","description":null,"fork":false,"url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia","forks_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/forks","keys_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/teams","hooks_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/hooks","issue_events_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/issues/events{/number}","events_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/events","assignees_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/assignees{/user}","branches_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/branches{/branch}","tags_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/tags","blobs_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/git/refs{/sha}","trees_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/statuses/{sha}","languages_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/languages","stargazers_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/stargazers","contributors_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/contributors","subscribers_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/subscribers","subscription_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/subscription","commits_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/commits{/sha}","git_commits_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/git/commits{/sha}","comments_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/comments{/number}","issue_comment_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/issues/comments{/number}","contents_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/contents/{+path}","compare_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/merges","archive_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/downloads","issues_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/issues{/number}","pulls_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/pulls{/number}","milestones_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/milestones{/number}","notifications_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/labels{/name}","releases_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/releases{/id}","deployments_url":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/deployments","created_at":"2018-07-12T01:15:47Z","updated_at":"2018-07-17T03:53:02Z","pushed_at":"2018-07-17T04:02:18Z","git_url":"git://github.com/NguyenDucChinhENC/rutorial_2018_framgia.git","ssh_url":"git@github.com:NguyenDucChinhENC/rutorial_2018_framgia.git","clone_url":"https://github.com/NguyenDucChinhENC/rutorial_2018_framgia.git","svn_url":"https://github.com/NguyenDucChinhENC/rutorial_2018_framgia","homepage":null,"size":83,"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/NguyenDucChinhENC/rutorial_2018_framgia/pulls/11"},"html":{"href":"https://github.com/NguyenDucChinhENC/rutorial_2018_framgia/pull/11"},"issue":{"href":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/issues/11"},"comments":{"href":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/NguyenDucChinhENC/rutorial_2018_framgia/statuses/8ea490a8d275dbddcd2fa32c0c2c2079aa11771f"}},"author_association":"OWNER"}}
{"actor":{"display_login":"NguyenDucChinhENC"}}