{"action":"created","comment":{"url":"https://api.github.com/repos/vovanlong/sample_app/pulls/comments/170837890","pull_request_review_id":99583603,"id":170837890,"diff_hunk":"@@ -8,8 +9,28 @@ class User < ApplicationRecord\n   has_secure_password\n   validates :password, presence: true, length: {minimum: Settings.password_minlenth}\n \n-  def self.digest string\n-    cost = ActiveModel::SecurePassword.min_cost ? BCrypt::Engine::MIN_COST : BCrypt::Engine.cost\n-    BCrypt::Password.create(string, cost: cost)\n+  class << self","path":"app/models/user.rb","position":13,"original_position":13,"commit_id":"5c8fae269657da2d82dcf16413ebbbbc04eee9ee","original_commit_id":"88b940420922deaa261e113bbada2273a00b0136","user":{"login":"vovanlong","id":36064862,"avatar_url":"https://avatars1.githubusercontent.com/u/36064862?v=4","gravatar_id":"","url":"https://api.github.com/users/vovanlong","html_url":"https://github.com/vovanlong","followers_url":"https://api.github.com/users/vovanlong/followers","following_url":"https://api.github.com/users/vovanlong/following{/other_user}","gists_url":"https://api.github.com/users/vovanlong/gists{/gist_id}","starred_url":"https://api.github.com/users/vovanlong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vovanlong/subscriptions","organizations_url":"https://api.github.com/users/vovanlong/orgs","repos_url":"https://api.github.com/users/vovanlong/repos","events_url":"https://api.github.com/users/vovanlong/events{/privacy}","received_events_url":"https://api.github.com/users/vovanlong/received_events","type":"User","site_admin":false},"body":"class << self cho mình sử dụng cách method phía dưới ","created_at":"2018-02-27T07:49:10Z","updated_at":"2018-02-27T07:49:10Z","html_url":"https://github.com/vovanlong/sample_app/pull/7#discussion_r170837890","pull_request_url":"https://api.github.com/repos/vovanlong/sample_app/pulls/7","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/vovanlong/sample_app/pulls/comments/170837890"},"html":{"href":"https://github.com/vovanlong/sample_app/pull/7#discussion_r170837890"},"pull_request":{"href":"https://api.github.com/repos/vovanlong/sample_app/pulls/7"}},"in_reply_to_id":170828116},"pull_request":{"url":"https://api.github.com/repos/vovanlong/sample_app/pulls/7","id":171554381,"html_url":"https://github.com/vovanlong/sample_app/pull/7","diff_url":"https://github.com/vovanlong/sample_app/pull/7.diff","patch_url":"https://github.com/vovanlong/sample_app/pull/7.patch","issue_url":"https://api.github.com/repos/vovanlong/sample_app/issues/7","number":7,"state":"open","locked":false,"title":"chap9","user":{"login":"vovanlong","id":36064862,"avatar_url":"https://avatars1.githubusercontent.com/u/36064862?v=4","gravatar_id":"","url":"https://api.github.com/users/vovanlong","html_url":"https://github.com/vovanlong","followers_url":"https://api.github.com/users/vovanlong/followers","following_url":"https://api.github.com/users/vovanlong/following{/other_user}","gists_url":"https://api.github.com/users/vovanlong/gists{/gist_id}","starred_url":"https://api.github.com/users/vovanlong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vovanlong/subscriptions","organizations_url":"https://api.github.com/users/vovanlong/orgs","repos_url":"https://api.github.com/users/vovanlong/repos","events_url":"https://api.github.com/users/vovanlong/events{/privacy}","received_events_url":"https://api.github.com/users/vovanlong/received_events","type":"User","site_admin":false},"body":"![chap9](https://user-images.githubusercontent.com/36064862/36709084-b8465ac6-1ba8-11e8-9a13-3d35bfb32e18.png)\r\n","created_at":"2018-02-27T03:26:56Z","updated_at":"2018-02-27T07:49:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"84ec1fe66bc9e247f3288c53657def993467dd10","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/vovanlong/sample_app/pulls/7/commits","review_comments_url":"https://api.github.com/repos/vovanlong/sample_app/pulls/7/comments","review_comment_url":"https://api.github.com/repos/vovanlong/sample_app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vovanlong/sample_app/issues/7/comments","statuses_url":"https://api.github.com/repos/vovanlong/sample_app/statuses/5c8fae269657da2d82dcf16413ebbbbc04eee9ee","head":{"label":"vovanlong:chap9","ref":"chap9","sha":"5c8fae269657da2d82dcf16413ebbbbc04eee9ee","user":{"login":"vovanlong","id":36064862,"avatar_url":"https://avatars1.githubusercontent.com/u/36064862?v=4","gravatar_id":"","url":"https://api.github.com/users/vovanlong","html_url":"https://github.com/vovanlong","followers_url":"https://api.github.com/users/vovanlong/followers","following_url":"https://api.github.com/users/vovanlong/following{/other_user}","gists_url":"https://api.github.com/users/vovanlong/gists{/gist_id}","starred_url":"https://api.github.com/users/vovanlong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vovanlong/subscriptions","organizations_url":"https://api.github.com/users/vovanlong/orgs","repos_url":"https://api.github.com/users/vovanlong/repos","events_url":"https://api.github.com/users/vovanlong/events{/privacy}","received_events_url":"https://api.github.com/users/vovanlong/received_events","type":"User","site_admin":false},"repo":{"id":120857324,"name":"sample_app","full_name":"vovanlong/sample_app","owner":{"login":"vovanlong","id":36064862,"avatar_url":"https://avatars1.githubusercontent.com/u/36064862?v=4","gravatar_id":"","url":"https://api.github.com/users/vovanlong","html_url":"https://github.com/vovanlong","followers_url":"https://api.github.com/users/vovanlong/followers","following_url":"https://api.github.com/users/vovanlong/following{/other_user}","gists_url":"https://api.github.com/users/vovanlong/gists{/gist_id}","starred_url":"https://api.github.com/users/vovanlong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vovanlong/subscriptions","organizations_url":"https://api.github.com/users/vovanlong/orgs","repos_url":"https://api.github.com/users/vovanlong/repos","events_url":"https://api.github.com/users/vovanlong/events{/privacy}","received_events_url":"https://api.github.com/users/vovanlong/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vovanlong/sample_app","description":null,"fork":false,"url":"https://api.github.com/repos/vovanlong/sample_app","forks_url":"https://api.github.com/repos/vovanlong/sample_app/forks","keys_url":"https://api.github.com/repos/vovanlong/sample_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vovanlong/sample_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vovanlong/sample_app/teams","hooks_url":"https://api.github.com/repos/vovanlong/sample_app/hooks","issue_events_url":"https://api.github.com/repos/vovanlong/sample_app/issues/events{/number}","events_url":"https://api.github.com/repos/vovanlong/sample_app/events","assignees_url":"https://api.github.com/repos/vovanlong/sample_app/assignees{/user}","branches_url":"https://api.github.com/repos/vovanlong/sample_app/branches{/branch}","tags_url":"https://api.github.com/repos/vovanlong/sample_app/tags","blobs_url":"https://api.github.com/repos/vovanlong/sample_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vovanlong/sample_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vovanlong/sample_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/vovanlong/sample_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vovanlong/sample_app/statuses/{sha}","languages_url":"https://api.github.com/repos/vovanlong/sample_app/languages","stargazers_url":"https://api.github.com/repos/vovanlong/sample_app/stargazers","contributors_url":"https://api.github.com/repos/vovanlong/sample_app/contributors","subscribers_url":"https://api.github.com/repos/vovanlong/sample_app/subscribers","subscription_url":"https://api.github.com/repos/vovanlong/sample_app/subscription","commits_url":"https://api.github.com/repos/vovanlong/sample_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/vovanlong/sample_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/vovanlong/sample_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/vovanlong/sample_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/vovanlong/sample_app/contents/{+path}","compare_url":"https://api.github.com/repos/vovanlong/sample_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vovanlong/sample_app/merges","archive_url":"https://api.github.com/repos/vovanlong/sample_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vovanlong/sample_app/downloads","issues_url":"https://api.github.com/repos/vovanlong/sample_app/issues{/number}","pulls_url":"https://api.github.com/repos/vovanlong/sample_app/pulls{/number}","milestones_url":"https://api.github.com/repos/vovanlong/sample_app/milestones{/number}","notifications_url":"https://api.github.com/repos/vovanlong/sample_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vovanlong/sample_app/labels{/name}","releases_url":"https://api.github.com/repos/vovanlong/sample_app/releases{/id}","deployments_url":"https://api.github.com/repos/vovanlong/sample_app/deployments","created_at":"2018-02-09T04:41:42Z","updated_at":"2018-02-09T04:44:41Z","pushed_at":"2018-02-27T06:50:12Z","git_url":"git://github.com/vovanlong/sample_app.git","ssh_url":"git@github.com:vovanlong/sample_app.git","clone_url":"https://github.com/vovanlong/sample_app.git","svn_url":"https://github.com/vovanlong/sample_app","homepage":null,"size":66,"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":"develop"}},"base":{"label":"vovanlong:develop","ref":"develop","sha":"d8a316506fc1cd7b448758b3680b67ee7b078de3","user":{"login":"vovanlong","id":36064862,"avatar_url":"https://avatars1.githubusercontent.com/u/36064862?v=4","gravatar_id":"","url":"https://api.github.com/users/vovanlong","html_url":"https://github.com/vovanlong","followers_url":"https://api.github.com/users/vovanlong/followers","following_url":"https://api.github.com/users/vovanlong/following{/other_user}","gists_url":"https://api.github.com/users/vovanlong/gists{/gist_id}","starred_url":"https://api.github.com/users/vovanlong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vovanlong/subscriptions","organizations_url":"https://api.github.com/users/vovanlong/orgs","repos_url":"https://api.github.com/users/vovanlong/repos","events_url":"https://api.github.com/users/vovanlong/events{/privacy}","received_events_url":"https://api.github.com/users/vovanlong/received_events","type":"User","site_admin":false},"repo":{"id":120857324,"name":"sample_app","full_name":"vovanlong/sample_app","owner":{"login":"vovanlong","id":36064862,"avatar_url":"https://avatars1.githubusercontent.com/u/36064862?v=4","gravatar_id":"","url":"https://api.github.com/users/vovanlong","html_url":"https://github.com/vovanlong","followers_url":"https://api.github.com/users/vovanlong/followers","following_url":"https://api.github.com/users/vovanlong/following{/other_user}","gists_url":"https://api.github.com/users/vovanlong/gists{/gist_id}","starred_url":"https://api.github.com/users/vovanlong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vovanlong/subscriptions","organizations_url":"https://api.github.com/users/vovanlong/orgs","repos_url":"https://api.github.com/users/vovanlong/repos","events_url":"https://api.github.com/users/vovanlong/events{/privacy}","received_events_url":"https://api.github.com/users/vovanlong/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vovanlong/sample_app","description":null,"fork":false,"url":"https://api.github.com/repos/vovanlong/sample_app","forks_url":"https://api.github.com/repos/vovanlong/sample_app/forks","keys_url":"https://api.github.com/repos/vovanlong/sample_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vovanlong/sample_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vovanlong/sample_app/teams","hooks_url":"https://api.github.com/repos/vovanlong/sample_app/hooks","issue_events_url":"https://api.github.com/repos/vovanlong/sample_app/issues/events{/number}","events_url":"https://api.github.com/repos/vovanlong/sample_app/events","assignees_url":"https://api.github.com/repos/vovanlong/sample_app/assignees{/user}","branches_url":"https://api.github.com/repos/vovanlong/sample_app/branches{/branch}","tags_url":"https://api.github.com/repos/vovanlong/sample_app/tags","blobs_url":"https://api.github.com/repos/vovanlong/sample_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vovanlong/sample_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vovanlong/sample_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/vovanlong/sample_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vovanlong/sample_app/statuses/{sha}","languages_url":"https://api.github.com/repos/vovanlong/sample_app/languages","stargazers_url":"https://api.github.com/repos/vovanlong/sample_app/stargazers","contributors_url":"https://api.github.com/repos/vovanlong/sample_app/contributors","subscribers_url":"https://api.github.com/repos/vovanlong/sample_app/subscribers","subscription_url":"https://api.github.com/repos/vovanlong/sample_app/subscription","commits_url":"https://api.github.com/repos/vovanlong/sample_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/vovanlong/sample_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/vovanlong/sample_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/vovanlong/sample_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/vovanlong/sample_app/contents/{+path}","compare_url":"https://api.github.com/repos/vovanlong/sample_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vovanlong/sample_app/merges","archive_url":"https://api.github.com/repos/vovanlong/sample_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vovanlong/sample_app/downloads","issues_url":"https://api.github.com/repos/vovanlong/sample_app/issues{/number}","pulls_url":"https://api.github.com/repos/vovanlong/sample_app/pulls{/number}","milestones_url":"https://api.github.com/repos/vovanlong/sample_app/milestones{/number}","notifications_url":"https://api.github.com/repos/vovanlong/sample_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vovanlong/sample_app/labels{/name}","releases_url":"https://api.github.com/repos/vovanlong/sample_app/releases{/id}","deployments_url":"https://api.github.com/repos/vovanlong/sample_app/deployments","created_at":"2018-02-09T04:41:42Z","updated_at":"2018-02-09T04:44:41Z","pushed_at":"2018-02-27T06:50:12Z","git_url":"git://github.com/vovanlong/sample_app.git","ssh_url":"git@github.com:vovanlong/sample_app.git","clone_url":"https://github.com/vovanlong/sample_app.git","svn_url":"https://github.com/vovanlong/sample_app","homepage":null,"size":66,"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":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/vovanlong/sample_app/pulls/7"},"html":{"href":"https://github.com/vovanlong/sample_app/pull/7"},"issue":{"href":"https://api.github.com/repos/vovanlong/sample_app/issues/7"},"comments":{"href":"https://api.github.com/repos/vovanlong/sample_app/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/vovanlong/sample_app/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/vovanlong/sample_app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vovanlong/sample_app/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/vovanlong/sample_app/statuses/5c8fae269657da2d82dcf16413ebbbbc04eee9ee"}},"author_association":"OWNER"}}
{"actor":{"display_login":"vovanlong"}}