{"action":"created","comment":{"url":"https://api.github.com/repos/sachmem/els1/pulls/comments/69409474","id":69409474,"diff_hunk":"@@ -1,6 +1,20 @@\n class User < ActiveRecord::Base\n+  before_save {email.downcase!}\n+\n+  validates :password, presence: true, length: {minimum: 6}\n+  validates :name,  presence: true, length: {maximum: 50}\n+  VALID_EMAIL_REGEX = /\\A[\\w+\\-.]+@[a-z\\d\\-]+(\\.[a-z\\d\\-]+)*\\.[a-z]+\\z/i\n+  validates :email, presence:true, length: {maximum: 255},\n+   format:{with: VALID_EMAIL_REGEX},","path":"app/models/user.rb","position":8,"original_position":8,"commit_id":"7db4f3c9dfb90559810b1253c2abc584c4b86a9c","original_commit_id":"7db4f3c9dfb90559810b1253c2abc584c4b86a9c","user":{"login":"ttuan","id":10399018,"avatar_url":"https://avatars.githubusercontent.com/u/10399018?v=3","gravatar_id":"","url":"https://api.github.com/users/ttuan","html_url":"https://github.com/ttuan","followers_url":"https://api.github.com/users/ttuan/followers","following_url":"https://api.github.com/users/ttuan/following{/other_user}","gists_url":"https://api.github.com/users/ttuan/gists{/gist_id}","starred_url":"https://api.github.com/users/ttuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ttuan/subscriptions","organizations_url":"https://api.github.com/users/ttuan/orgs","repos_url":"https://api.github.com/users/ttuan/repos","events_url":"https://api.github.com/users/ttuan/events{/privacy}","received_events_url":"https://api.github.com/users/ttuan/received_events","type":"User","site_admin":false},"body":"tab vào 2 space","created_at":"2016-07-04T05:29:30Z","updated_at":"2016-07-04T05:29:30Z","html_url":"https://github.com/sachmem/els1/pull/16#discussion_r69409474","pull_request_url":"https://api.github.com/repos/sachmem/els1/pulls/16","_links":{"self":{"href":"https://api.github.com/repos/sachmem/els1/pulls/comments/69409474"},"html":{"href":"https://github.com/sachmem/els1/pull/16#discussion_r69409474"},"pull_request":{"href":"https://api.github.com/repos/sachmem/els1/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/sachmem/els1/pulls/16","id":76069637,"html_url":"https://github.com/sachmem/els1/pull/16","diff_url":"https://github.com/sachmem/els1/pull/16.diff","patch_url":"https://github.com/sachmem/els1/pull/16.patch","issue_url":"https://api.github.com/repos/sachmem/els1/issues/16","number":16,"state":"open","locked":false,"title":"Create signup users","user":{"login":"minhth1905","id":17795860,"avatar_url":"https://avatars.githubusercontent.com/u/17795860?v=3","gravatar_id":"","url":"https://api.github.com/users/minhth1905","html_url":"https://github.com/minhth1905","followers_url":"https://api.github.com/users/minhth1905/followers","following_url":"https://api.github.com/users/minhth1905/following{/other_user}","gists_url":"https://api.github.com/users/minhth1905/gists{/gist_id}","starred_url":"https://api.github.com/users/minhth1905/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minhth1905/subscriptions","organizations_url":"https://api.github.com/users/minhth1905/orgs","repos_url":"https://api.github.com/users/minhth1905/repos","events_url":"https://api.github.com/users/minhth1905/events{/privacy}","received_events_url":"https://api.github.com/users/minhth1905/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-02T16:50:03Z","updated_at":"2016-07-04T05:29:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f8b1539d4ca282c054aeaf7d43a59b2271f87a88","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/sachmem/els1/pulls/16/commits","review_comments_url":"https://api.github.com/repos/sachmem/els1/pulls/16/comments","review_comment_url":"https://api.github.com/repos/sachmem/els1/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sachmem/els1/issues/16/comments","statuses_url":"https://api.github.com/repos/sachmem/els1/statuses/7db4f3c9dfb90559810b1253c2abc584c4b86a9c","head":{"label":"minhth1905:290-create-signup-user","ref":"290-create-signup-user","sha":"7db4f3c9dfb90559810b1253c2abc584c4b86a9c","user":{"login":"minhth1905","id":17795860,"avatar_url":"https://avatars.githubusercontent.com/u/17795860?v=3","gravatar_id":"","url":"https://api.github.com/users/minhth1905","html_url":"https://github.com/minhth1905","followers_url":"https://api.github.com/users/minhth1905/followers","following_url":"https://api.github.com/users/minhth1905/following{/other_user}","gists_url":"https://api.github.com/users/minhth1905/gists{/gist_id}","starred_url":"https://api.github.com/users/minhth1905/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minhth1905/subscriptions","organizations_url":"https://api.github.com/users/minhth1905/orgs","repos_url":"https://api.github.com/users/minhth1905/repos","events_url":"https://api.github.com/users/minhth1905/events{/privacy}","received_events_url":"https://api.github.com/users/minhth1905/received_events","type":"User","site_admin":false},"repo":{"id":62444162,"name":"els1","full_name":"minhth1905/els1","owner":{"login":"minhth1905","id":17795860,"avatar_url":"https://avatars.githubusercontent.com/u/17795860?v=3","gravatar_id":"","url":"https://api.github.com/users/minhth1905","html_url":"https://github.com/minhth1905","followers_url":"https://api.github.com/users/minhth1905/followers","following_url":"https://api.github.com/users/minhth1905/following{/other_user}","gists_url":"https://api.github.com/users/minhth1905/gists{/gist_id}","starred_url":"https://api.github.com/users/minhth1905/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/minhth1905/subscriptions","organizations_url":"https://api.github.com/users/minhth1905/orgs","repos_url":"https://api.github.com/users/minhth1905/repos","events_url":"https://api.github.com/users/minhth1905/events{/privacy}","received_events_url":"https://api.github.com/users/minhth1905/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/minhth1905/els1","description":null,"fork":true,"url":"https://api.github.com/repos/minhth1905/els1","forks_url":"https://api.github.com/repos/minhth1905/els1/forks","keys_url":"https://api.github.com/repos/minhth1905/els1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/minhth1905/els1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/minhth1905/els1/teams","hooks_url":"https://api.github.com/repos/minhth1905/els1/hooks","issue_events_url":"https://api.github.com/repos/minhth1905/els1/issues/events{/number}","events_url":"https://api.github.com/repos/minhth1905/els1/events","assignees_url":"https://api.github.com/repos/minhth1905/els1/assignees{/user}","branches_url":"https://api.github.com/repos/minhth1905/els1/branches{/branch}","tags_url":"https://api.github.com/repos/minhth1905/els1/tags","blobs_url":"https://api.github.com/repos/minhth1905/els1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/minhth1905/els1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/minhth1905/els1/git/refs{/sha}","trees_url":"https://api.github.com/repos/minhth1905/els1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/minhth1905/els1/statuses/{sha}","languages_url":"https://api.github.com/repos/minhth1905/els1/languages","stargazers_url":"https://api.github.com/repos/minhth1905/els1/stargazers","contributors_url":"https://api.github.com/repos/minhth1905/els1/contributors","subscribers_url":"https://api.github.com/repos/minhth1905/els1/subscribers","subscription_url":"https://api.github.com/repos/minhth1905/els1/subscription","commits_url":"https://api.github.com/repos/minhth1905/els1/commits{/sha}","git_commits_url":"https://api.github.com/repos/minhth1905/els1/git/commits{/sha}","comments_url":"https://api.github.com/repos/minhth1905/els1/comments{/number}","issue_comment_url":"https://api.github.com/repos/minhth1905/els1/issues/comments{/number}","contents_url":"https://api.github.com/repos/minhth1905/els1/contents/{+path}","compare_url":"https://api.github.com/repos/minhth1905/els1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/minhth1905/els1/merges","archive_url":"https://api.github.com/repos/minhth1905/els1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/minhth1905/els1/downloads","issues_url":"https://api.github.com/repos/minhth1905/els1/issues{/number}","pulls_url":"https://api.github.com/repos/minhth1905/els1/pulls{/number}","milestones_url":"https://api.github.com/repos/minhth1905/els1/milestones{/number}","notifications_url":"https://api.github.com/repos/minhth1905/els1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/minhth1905/els1/labels{/name}","releases_url":"https://api.github.com/repos/minhth1905/els1/releases{/id}","deployments_url":"https://api.github.com/repos/minhth1905/els1/deployments","created_at":"2016-07-02T09:41:08Z","updated_at":"2016-07-02T09:41:09Z","pushed_at":"2016-07-04T05:11:58Z","git_url":"git://github.com/minhth1905/els1.git","ssh_url":"git@github.com:minhth1905/els1.git","clone_url":"https://github.com/minhth1905/els1.git","svn_url":"https://github.com/minhth1905/els1","homepage":null,"size":35,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"sachmem:development","ref":"development","sha":"e4fc0030a6f054badada94ff432575e6ed2f003e","user":{"login":"sachmem","id":20066220,"avatar_url":"https://avatars.githubusercontent.com/u/20066220?v=3","gravatar_id":"","url":"https://api.github.com/users/sachmem","html_url":"https://github.com/sachmem","followers_url":"https://api.github.com/users/sachmem/followers","following_url":"https://api.github.com/users/sachmem/following{/other_user}","gists_url":"https://api.github.com/users/sachmem/gists{/gist_id}","starred_url":"https://api.github.com/users/sachmem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sachmem/subscriptions","organizations_url":"https://api.github.com/users/sachmem/orgs","repos_url":"https://api.github.com/users/sachmem/repos","events_url":"https://api.github.com/users/sachmem/events{/privacy}","received_events_url":"https://api.github.com/users/sachmem/received_events","type":"Organization","site_admin":false},"repo":{"id":61687492,"name":"els1","full_name":"sachmem/els1","owner":{"login":"sachmem","id":20066220,"avatar_url":"https://avatars.githubusercontent.com/u/20066220?v=3","gravatar_id":"","url":"https://api.github.com/users/sachmem","html_url":"https://github.com/sachmem","followers_url":"https://api.github.com/users/sachmem/followers","following_url":"https://api.github.com/users/sachmem/following{/other_user}","gists_url":"https://api.github.com/users/sachmem/gists{/gist_id}","starred_url":"https://api.github.com/users/sachmem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sachmem/subscriptions","organizations_url":"https://api.github.com/users/sachmem/orgs","repos_url":"https://api.github.com/users/sachmem/repos","events_url":"https://api.github.com/users/sachmem/events{/privacy}","received_events_url":"https://api.github.com/users/sachmem/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sachmem/els1","description":"","fork":false,"url":"https://api.github.com/repos/sachmem/els1","forks_url":"https://api.github.com/repos/sachmem/els1/forks","keys_url":"https://api.github.com/repos/sachmem/els1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sachmem/els1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sachmem/els1/teams","hooks_url":"https://api.github.com/repos/sachmem/els1/hooks","issue_events_url":"https://api.github.com/repos/sachmem/els1/issues/events{/number}","events_url":"https://api.github.com/repos/sachmem/els1/events","assignees_url":"https://api.github.com/repos/sachmem/els1/assignees{/user}","branches_url":"https://api.github.com/repos/sachmem/els1/branches{/branch}","tags_url":"https://api.github.com/repos/sachmem/els1/tags","blobs_url":"https://api.github.com/repos/sachmem/els1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sachmem/els1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sachmem/els1/git/refs{/sha}","trees_url":"https://api.github.com/repos/sachmem/els1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sachmem/els1/statuses/{sha}","languages_url":"https://api.github.com/repos/sachmem/els1/languages","stargazers_url":"https://api.github.com/repos/sachmem/els1/stargazers","contributors_url":"https://api.github.com/repos/sachmem/els1/contributors","subscribers_url":"https://api.github.com/repos/sachmem/els1/subscribers","subscription_url":"https://api.github.com/repos/sachmem/els1/subscription","commits_url":"https://api.github.com/repos/sachmem/els1/commits{/sha}","git_commits_url":"https://api.github.com/repos/sachmem/els1/git/commits{/sha}","comments_url":"https://api.github.com/repos/sachmem/els1/comments{/number}","issue_comment_url":"https://api.github.com/repos/sachmem/els1/issues/comments{/number}","contents_url":"https://api.github.com/repos/sachmem/els1/contents/{+path}","compare_url":"https://api.github.com/repos/sachmem/els1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sachmem/els1/merges","archive_url":"https://api.github.com/repos/sachmem/els1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sachmem/els1/downloads","issues_url":"https://api.github.com/repos/sachmem/els1/issues{/number}","pulls_url":"https://api.github.com/repos/sachmem/els1/pulls{/number}","milestones_url":"https://api.github.com/repos/sachmem/els1/milestones{/number}","notifications_url":"https://api.github.com/repos/sachmem/els1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sachmem/els1/labels{/name}","releases_url":"https://api.github.com/repos/sachmem/els1/releases{/id}","deployments_url":"https://api.github.com/repos/sachmem/els1/deployments","created_at":"2016-06-22T03:56:52Z","updated_at":"2016-06-28T01:35:00Z","pushed_at":"2016-07-04T05:11:58Z","git_url":"git://github.com/sachmem/els1.git","ssh_url":"git@github.com:sachmem/els1.git","clone_url":"https://github.com/sachmem/els1.git","svn_url":"https://github.com/sachmem/els1","homepage":null,"size":42,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":2,"forks":3,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sachmem/els1/pulls/16"},"html":{"href":"https://github.com/sachmem/els1/pull/16"},"issue":{"href":"https://api.github.com/repos/sachmem/els1/issues/16"},"comments":{"href":"https://api.github.com/repos/sachmem/els1/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/sachmem/els1/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/sachmem/els1/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sachmem/els1/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/sachmem/els1/statuses/7db4f3c9dfb90559810b1253c2abc584c4b86a9c"}}}}
{"actor":{"display_login":"ttuan"}}