{"action":"created","comment":{"url":"https://api.github.com/repos/longnv5994/sample_app/pulls/comments/74185078","id":74185078,"diff_hunk":"@@ -0,0 +1,10 @@\n+class User < ApplicationRecord\n+  before_save { self.email = email.downcase }\n+  validates :name, presence: true, length: { maximum: 50 }","path":"app/models/user.rb","position":3,"original_position":3,"commit_id":"82bcb2bc4ab422031d9e3d4ae4fa6954d34e9672","original_commit_id":"82bcb2bc4ab422031d9e3d4ae4fa6954d34e9672","user":{"login":"longnv5994","id":17397401,"avatar_url":"https://avatars.githubusercontent.com/u/17397401?v=3","gravatar_id":"","url":"https://api.github.com/users/longnv5994","html_url":"https://github.com/longnv5994","followers_url":"https://api.github.com/users/longnv5994/followers","following_url":"https://api.github.com/users/longnv5994/following{/other_user}","gists_url":"https://api.github.com/users/longnv5994/gists{/gist_id}","starred_url":"https://api.github.com/users/longnv5994/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/longnv5994/subscriptions","organizations_url":"https://api.github.com/users/longnv5994/orgs","repos_url":"https://api.github.com/users/longnv5994/repos","events_url":"https://api.github.com/users/longnv5994/events{/privacy}","received_events_url":"https://api.github.com/users/longnv5994/received_events","type":"User","site_admin":false},"body":"Dạ vâng em sẽ để ý về khoảng trắng trước sau {}\r\nvalidate là 1 method kiểm tra, name là attribute và presence: true là argument của method nhằm check có hiện diện của name?, tương tự length cũng là 1 argument check độ dài với prameter là maximum: 50.\r\nChị comment lại cho em xem đúng chưa ạ?","created_at":"2016-08-10T04:51:50Z","updated_at":"2016-08-10T04:51:50Z","html_url":"https://github.com/longnv5994/sample_app/pull/2#discussion_r74185078","pull_request_url":"https://api.github.com/repos/longnv5994/sample_app/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/longnv5994/sample_app/pulls/comments/74185078"},"html":{"href":"https://github.com/longnv5994/sample_app/pull/2#discussion_r74185078"},"pull_request":{"href":"https://api.github.com/repos/longnv5994/sample_app/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/longnv5994/sample_app/pulls/2","id":80733441,"html_url":"https://github.com/longnv5994/sample_app/pull/2","diff_url":"https://github.com/longnv5994/sample_app/pull/2.diff","patch_url":"https://github.com/longnv5994/sample_app/pull/2.patch","issue_url":"https://api.github.com/repos/longnv5994/sample_app/issues/2","number":2,"state":"open","locked":false,"title":"Make a basic User model (including secure passwords)","user":{"login":"longnv5994","id":17397401,"avatar_url":"https://avatars.githubusercontent.com/u/17397401?v=3","gravatar_id":"","url":"https://api.github.com/users/longnv5994","html_url":"https://github.com/longnv5994","followers_url":"https://api.github.com/users/longnv5994/followers","following_url":"https://api.github.com/users/longnv5994/following{/other_user}","gists_url":"https://api.github.com/users/longnv5994/gists{/gist_id}","starred_url":"https://api.github.com/users/longnv5994/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/longnv5994/subscriptions","organizations_url":"https://api.github.com/users/longnv5994/orgs","repos_url":"https://api.github.com/users/longnv5994/repos","events_url":"https://api.github.com/users/longnv5994/events{/privacy}","received_events_url":"https://api.github.com/users/longnv5994/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-08-10T04:39:27Z","updated_at":"2016-08-10T04:51:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"089b5a230a792bed75f64da993e0186410a68e24","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/longnv5994/sample_app/pulls/2/commits","review_comments_url":"https://api.github.com/repos/longnv5994/sample_app/pulls/2/comments","review_comment_url":"https://api.github.com/repos/longnv5994/sample_app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/longnv5994/sample_app/issues/2/comments","statuses_url":"https://api.github.com/repos/longnv5994/sample_app/statuses/82bcb2bc4ab422031d9e3d4ae4fa6954d34e9672","head":{"label":"longnv5994:modeling-users","ref":"modeling-users","sha":"82bcb2bc4ab422031d9e3d4ae4fa6954d34e9672","user":{"login":"longnv5994","id":17397401,"avatar_url":"https://avatars.githubusercontent.com/u/17397401?v=3","gravatar_id":"","url":"https://api.github.com/users/longnv5994","html_url":"https://github.com/longnv5994","followers_url":"https://api.github.com/users/longnv5994/followers","following_url":"https://api.github.com/users/longnv5994/following{/other_user}","gists_url":"https://api.github.com/users/longnv5994/gists{/gist_id}","starred_url":"https://api.github.com/users/longnv5994/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/longnv5994/subscriptions","organizations_url":"https://api.github.com/users/longnv5994/orgs","repos_url":"https://api.github.com/users/longnv5994/repos","events_url":"https://api.github.com/users/longnv5994/events{/privacy}","received_events_url":"https://api.github.com/users/longnv5994/received_events","type":"User","site_admin":false},"repo":{"id":65163274,"name":"sample_app","full_name":"longnv5994/sample_app","owner":{"login":"longnv5994","id":17397401,"avatar_url":"https://avatars.githubusercontent.com/u/17397401?v=3","gravatar_id":"","url":"https://api.github.com/users/longnv5994","html_url":"https://github.com/longnv5994","followers_url":"https://api.github.com/users/longnv5994/followers","following_url":"https://api.github.com/users/longnv5994/following{/other_user}","gists_url":"https://api.github.com/users/longnv5994/gists{/gist_id}","starred_url":"https://api.github.com/users/longnv5994/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/longnv5994/subscriptions","organizations_url":"https://api.github.com/users/longnv5994/orgs","repos_url":"https://api.github.com/users/longnv5994/repos","events_url":"https://api.github.com/users/longnv5994/events{/privacy}","received_events_url":"https://api.github.com/users/longnv5994/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/longnv5994/sample_app","description":null,"fork":false,"url":"https://api.github.com/repos/longnv5994/sample_app","forks_url":"https://api.github.com/repos/longnv5994/sample_app/forks","keys_url":"https://api.github.com/repos/longnv5994/sample_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/longnv5994/sample_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/longnv5994/sample_app/teams","hooks_url":"https://api.github.com/repos/longnv5994/sample_app/hooks","issue_events_url":"https://api.github.com/repos/longnv5994/sample_app/issues/events{/number}","events_url":"https://api.github.com/repos/longnv5994/sample_app/events","assignees_url":"https://api.github.com/repos/longnv5994/sample_app/assignees{/user}","branches_url":"https://api.github.com/repos/longnv5994/sample_app/branches{/branch}","tags_url":"https://api.github.com/repos/longnv5994/sample_app/tags","blobs_url":"https://api.github.com/repos/longnv5994/sample_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/longnv5994/sample_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/longnv5994/sample_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/longnv5994/sample_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/longnv5994/sample_app/statuses/{sha}","languages_url":"https://api.github.com/repos/longnv5994/sample_app/languages","stargazers_url":"https://api.github.com/repos/longnv5994/sample_app/stargazers","contributors_url":"https://api.github.com/repos/longnv5994/sample_app/contributors","subscribers_url":"https://api.github.com/repos/longnv5994/sample_app/subscribers","subscription_url":"https://api.github.com/repos/longnv5994/sample_app/subscription","commits_url":"https://api.github.com/repos/longnv5994/sample_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/longnv5994/sample_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/longnv5994/sample_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/longnv5994/sample_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/longnv5994/sample_app/contents/{+path}","compare_url":"https://api.github.com/repos/longnv5994/sample_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/longnv5994/sample_app/merges","archive_url":"https://api.github.com/repos/longnv5994/sample_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/longnv5994/sample_app/downloads","issues_url":"https://api.github.com/repos/longnv5994/sample_app/issues{/number}","pulls_url":"https://api.github.com/repos/longnv5994/sample_app/pulls{/number}","milestones_url":"https://api.github.com/repos/longnv5994/sample_app/milestones{/number}","notifications_url":"https://api.github.com/repos/longnv5994/sample_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/longnv5994/sample_app/labels{/name}","releases_url":"https://api.github.com/repos/longnv5994/sample_app/releases{/id}","deployments_url":"https://api.github.com/repos/longnv5994/sample_app/deployments","created_at":"2016-08-08T01:33:12Z","updated_at":"2016-08-08T01:38:51Z","pushed_at":"2016-08-10T04:39:28Z","git_url":"git://github.com/longnv5994/sample_app.git","ssh_url":"git@github.com:longnv5994/sample_app.git","clone_url":"https://github.com/longnv5994/sample_app.git","svn_url":"https://github.com/longnv5994/sample_app","homepage":null,"size":202,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"longnv5994:master","ref":"master","sha":"c8c044eb5e55ac400ec5ff98baab7d965dc2827c","user":{"login":"longnv5994","id":17397401,"avatar_url":"https://avatars.githubusercontent.com/u/17397401?v=3","gravatar_id":"","url":"https://api.github.com/users/longnv5994","html_url":"https://github.com/longnv5994","followers_url":"https://api.github.com/users/longnv5994/followers","following_url":"https://api.github.com/users/longnv5994/following{/other_user}","gists_url":"https://api.github.com/users/longnv5994/gists{/gist_id}","starred_url":"https://api.github.com/users/longnv5994/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/longnv5994/subscriptions","organizations_url":"https://api.github.com/users/longnv5994/orgs","repos_url":"https://api.github.com/users/longnv5994/repos","events_url":"https://api.github.com/users/longnv5994/events{/privacy}","received_events_url":"https://api.github.com/users/longnv5994/received_events","type":"User","site_admin":false},"repo":{"id":65163274,"name":"sample_app","full_name":"longnv5994/sample_app","owner":{"login":"longnv5994","id":17397401,"avatar_url":"https://avatars.githubusercontent.com/u/17397401?v=3","gravatar_id":"","url":"https://api.github.com/users/longnv5994","html_url":"https://github.com/longnv5994","followers_url":"https://api.github.com/users/longnv5994/followers","following_url":"https://api.github.com/users/longnv5994/following{/other_user}","gists_url":"https://api.github.com/users/longnv5994/gists{/gist_id}","starred_url":"https://api.github.com/users/longnv5994/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/longnv5994/subscriptions","organizations_url":"https://api.github.com/users/longnv5994/orgs","repos_url":"https://api.github.com/users/longnv5994/repos","events_url":"https://api.github.com/users/longnv5994/events{/privacy}","received_events_url":"https://api.github.com/users/longnv5994/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/longnv5994/sample_app","description":null,"fork":false,"url":"https://api.github.com/repos/longnv5994/sample_app","forks_url":"https://api.github.com/repos/longnv5994/sample_app/forks","keys_url":"https://api.github.com/repos/longnv5994/sample_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/longnv5994/sample_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/longnv5994/sample_app/teams","hooks_url":"https://api.github.com/repos/longnv5994/sample_app/hooks","issue_events_url":"https://api.github.com/repos/longnv5994/sample_app/issues/events{/number}","events_url":"https://api.github.com/repos/longnv5994/sample_app/events","assignees_url":"https://api.github.com/repos/longnv5994/sample_app/assignees{/user}","branches_url":"https://api.github.com/repos/longnv5994/sample_app/branches{/branch}","tags_url":"https://api.github.com/repos/longnv5994/sample_app/tags","blobs_url":"https://api.github.com/repos/longnv5994/sample_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/longnv5994/sample_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/longnv5994/sample_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/longnv5994/sample_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/longnv5994/sample_app/statuses/{sha}","languages_url":"https://api.github.com/repos/longnv5994/sample_app/languages","stargazers_url":"https://api.github.com/repos/longnv5994/sample_app/stargazers","contributors_url":"https://api.github.com/repos/longnv5994/sample_app/contributors","subscribers_url":"https://api.github.com/repos/longnv5994/sample_app/subscribers","subscription_url":"https://api.github.com/repos/longnv5994/sample_app/subscription","commits_url":"https://api.github.com/repos/longnv5994/sample_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/longnv5994/sample_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/longnv5994/sample_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/longnv5994/sample_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/longnv5994/sample_app/contents/{+path}","compare_url":"https://api.github.com/repos/longnv5994/sample_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/longnv5994/sample_app/merges","archive_url":"https://api.github.com/repos/longnv5994/sample_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/longnv5994/sample_app/downloads","issues_url":"https://api.github.com/repos/longnv5994/sample_app/issues{/number}","pulls_url":"https://api.github.com/repos/longnv5994/sample_app/pulls{/number}","milestones_url":"https://api.github.com/repos/longnv5994/sample_app/milestones{/number}","notifications_url":"https://api.github.com/repos/longnv5994/sample_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/longnv5994/sample_app/labels{/name}","releases_url":"https://api.github.com/repos/longnv5994/sample_app/releases{/id}","deployments_url":"https://api.github.com/repos/longnv5994/sample_app/deployments","created_at":"2016-08-08T01:33:12Z","updated_at":"2016-08-08T01:38:51Z","pushed_at":"2016-08-10T04:39:28Z","git_url":"git://github.com/longnv5994/sample_app.git","ssh_url":"git@github.com:longnv5994/sample_app.git","clone_url":"https://github.com/longnv5994/sample_app.git","svn_url":"https://github.com/longnv5994/sample_app","homepage":null,"size":202,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/longnv5994/sample_app/pulls/2"},"html":{"href":"https://github.com/longnv5994/sample_app/pull/2"},"issue":{"href":"https://api.github.com/repos/longnv5994/sample_app/issues/2"},"comments":{"href":"https://api.github.com/repos/longnv5994/sample_app/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/longnv5994/sample_app/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/longnv5994/sample_app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/longnv5994/sample_app/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/longnv5994/sample_app/statuses/82bcb2bc4ab422031d9e3d4ae4fa6954d34e9672"}}}}
{"actor":{"display_login":"longnv5994"}}