{"action":"created","comment":{"url":"https://api.github.com/repos/binhthanhnguyen/elerning-vietanh/pulls/comments/33437068","id":33437068,"diff_hunk":"@@ -1,12 +1,13 @@\n class User < ActiveRecord::Base\n-  validates :name, presence: true, length: { Settings.models.maximum}\n-  VALID_EMAIL_REGEX = /\\A[\\w+\\-.]+@[a-z\\d\\-]+(\\.[a-z\\d\\-]+)*\\.[a-z]+\\z/i\n-  validates :email, presence: true,\n-  validates :password, length: { Settings.models.minimum }\n-    format: { with: VALID_EMAIL_REGEX },\n-    uniqueness: { case_sensitive: false }\n-\n-  before_save { email.downcase! }\n+  validates :name, presence: true, length: {maximum: Settings.models.maximum1}\n+  VALID_EMAIL_REGEX = /\\A[\\w+\\-.]+@[a-z\\d\\-.]+\\.[a-z]+\\z/i\n+  validates :email, presence: true, length: {maximum: Settings.models.maximum2},\n+                    format: { with: VALID_EMAIL_REGEX },\n+                    uniqueness: { case_sensitive: false }\n \n+  validates :password, presence: true, length: {minimum: Settings.models.minimum}","path":"app/models/user.rb","position":16,"original_position":16,"commit_id":"16fe2964c0bb33abfc0e030b3ff2f3458dad9c27","original_commit_id":"16fe2964c0bb33abfc0e030b3ff2f3458dad9c27","user":{"login":"binhthanhnguyen","id":12368804,"avatar_url":"https://avatars.githubusercontent.com/u/12368804?v=3","gravatar_id":"","url":"https://api.github.com/users/binhthanhnguyen","html_url":"https://github.com/binhthanhnguyen","followers_url":"https://api.github.com/users/binhthanhnguyen/followers","following_url":"https://api.github.com/users/binhthanhnguyen/following{/other_user}","gists_url":"https://api.github.com/users/binhthanhnguyen/gists{/gist_id}","starred_url":"https://api.github.com/users/binhthanhnguyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/binhthanhnguyen/subscriptions","organizations_url":"https://api.github.com/users/binhthanhnguyen/orgs","repos_url":"https://api.github.com/users/binhthanhnguyen/repos","events_url":"https://api.github.com/users/binhthanhnguyen/events{/privacy}","received_events_url":"https://api.github.com/users/binhthanhnguyen/received_events","type":"User","site_admin":false},"body":"indent","created_at":"2015-06-29T06:28:34Z","updated_at":"2015-06-29T06:28:34Z","html_url":"https://github.com/binhthanhnguyen/elerning-vietanh/pull/4#discussion_r33437068","pull_request_url":"https://api.github.com/repos/binhthanhnguyen/elerning-vietanh/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/binhthanhnguyen/elerning-vietanh/pulls/comments/33437068"},"html":{"href":"https://github.com/binhthanhnguyen/elerning-vietanh/pull/4#discussion_r33437068"},"pull_request":{"href":"https://api.github.com/repos/binhthanhnguyen/elerning-vietanh/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/binhthanhnguyen/elerning-vietanh/pulls/4","id":38738437,"html_url":"https://github.com/binhthanhnguyen/elerning-vietanh/pull/4","diff_url":"https://github.com/binhthanhnguyen/elerning-vietanh/pull/4.diff","patch_url":"https://github.com/binhthanhnguyen/elerning-vietanh/pull/4.patch","issue_url":"https://api.github.com/repos/binhthanhnguyen/elerning-vietanh/issues/4","number":4,"state":"open","locked":false,"title":"Sign up","user":{"login":"vietanhbkaaa","id":12491647,"avatar_url":"https://avatars.githubusercontent.com/u/12491647?v=3","gravatar_id":"","url":"https://api.github.com/users/vietanhbkaaa","html_url":"https://github.com/vietanhbkaaa","followers_url":"https://api.github.com/users/vietanhbkaaa/followers","following_url":"https://api.github.com/users/vietanhbkaaa/following{/other_user}","gists_url":"https://api.github.com/users/vietanhbkaaa/gists{/gist_id}","starred_url":"https://api.github.com/users/vietanhbkaaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vietanhbkaaa/subscriptions","organizations_url":"https://api.github.com/users/vietanhbkaaa/orgs","repos_url":"https://api.github.com/users/vietanhbkaaa/repos","events_url":"https://api.github.com/users/vietanhbkaaa/events{/privacy}","received_events_url":"https://api.github.com/users/vietanhbkaaa/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-29T03:02:00Z","updated_at":"2015-06-29T06:28:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bf5149bfd24036d667a06bb71b355b88d3c59b28","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/binhthanhnguyen/elerning-vietanh/pulls/4/commits","review_comments_url":"https://api.github.com/repos/binhthanhnguyen/elerning-vietanh/pulls/4/comments","review_comment_url":"https://api.github.com/repos/binhthanhnguyen/elerning-vietanh/pulls/comments{/number}","comments_url":"https://api.github.com/repos/binhthanhnguyen/elerning-vietanh/issues/4/comments","statuses_url":"https://api.github.com/repos/binhthanhnguyen/elerning-vietanh/statuses/16fe2964c0bb33abfc0e030b3ff2f3458dad9c27","head":{"label":"vietanhbkaaa:sign-up","ref":"sign-up","sha":"16fe2964c0bb33abfc0e030b3ff2f3458dad9c27","user":{"login":"vietanhbkaaa","id":12491647,"avatar_url":"https://avatars.githubusercontent.com/u/12491647?v=3","gravatar_id":"","url":"https://api.github.com/users/vietanhbkaaa","html_url":"https://github.com/vietanhbkaaa","followers_url":"https://api.github.com/users/vietanhbkaaa/followers","following_url":"https://api.github.com/users/vietanhbkaaa/following{/other_user}","gists_url":"https://api.github.com/users/vietanhbkaaa/gists{/gist_id}","starred_url":"https://api.github.com/users/vietanhbkaaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vietanhbkaaa/subscriptions","organizations_url":"https://api.github.com/users/vietanhbkaaa/orgs","repos_url":"https://api.github.com/users/vietanhbkaaa/repos","events_url":"https://api.github.com/users/vietanhbkaaa/events{/privacy}","received_events_url":"https://api.github.com/users/vietanhbkaaa/received_events","type":"User","site_admin":false},"repo":{"id":38086636,"name":"elerning-vietanh","full_name":"vietanhbkaaa/elerning-vietanh","owner":{"login":"vietanhbkaaa","id":12491647,"avatar_url":"https://avatars.githubusercontent.com/u/12491647?v=3","gravatar_id":"","url":"https://api.github.com/users/vietanhbkaaa","html_url":"https://github.com/vietanhbkaaa","followers_url":"https://api.github.com/users/vietanhbkaaa/followers","following_url":"https://api.github.com/users/vietanhbkaaa/following{/other_user}","gists_url":"https://api.github.com/users/vietanhbkaaa/gists{/gist_id}","starred_url":"https://api.github.com/users/vietanhbkaaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vietanhbkaaa/subscriptions","organizations_url":"https://api.github.com/users/vietanhbkaaa/orgs","repos_url":"https://api.github.com/users/vietanhbkaaa/repos","events_url":"https://api.github.com/users/vietanhbkaaa/events{/privacy}","received_events_url":"https://api.github.com/users/vietanhbkaaa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vietanhbkaaa/elerning-vietanh","description":"","fork":true,"url":"https://api.github.com/repos/vietanhbkaaa/elerning-vietanh","forks_url":"https://api.github.com/repos/vietanhbkaaa/elerning-vietanh/forks","keys_url":"https://api.github.com/repos/vietanhbkaaa/elerning-vietanh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vietanhbkaaa/elerning-vietanh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vietanhbkaaa/elerning-vietanh/teams","hooks_url":"https://api.github.com/repos/vietanhbkaaa/elerning-vietanh/hooks","issue_events_url":"https://api.github.com/repos/vietanhbkaaa/elerning-vietanh/issues/events{/number}","events_url":"https://api.github.com/repos/vietanhbkaaa/elerning-vietanh/events","assignees_url":"https://api.github.com/repos/vietanhbkaaa/elerning-vietanh/assignees{/user}","branches_url":"https://api.github.com/repos/vietanhbkaaa/elerning-vietanh/branches{/branch}","tags_url":"https://api.github.com/repos/vietanhbkaaa/elerning-vietanh/tags","blobs_url":"https://api.github.com/repos/vietanhbkaaa/elerning-vietanh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vietanhbkaaa/elerning-vietanh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vietanhbkaaa/elerning-vietanh/git/refs{/sha}","trees_url":"https://api.github.com/repos/vietanhbkaaa/elerning-vietanh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vietanhbkaaa/elerning-vietanh/statuses/{sha}","languages_url":"https://api.github.com/repos/vietanhbkaaa/elerning-vietanh/languages","stargazers_url":"https://api.github.com/repos/vietanhbkaaa/elerning-vietanh/stargazers","contributors_url":"https://api.github.com/repos/vietanhbkaaa/elerning-vietanh/contributors","subscribers_url":"https://api.github.com/repos/vietanhbkaaa/elerning-vietanh/subscribers","subscription_url":"https://api.github.com/repos/vietanhbkaaa/elerning-vietanh/subscription","commits_url":"https://api.github.com/repos/vietanhbkaaa/elerning-vietanh/commits{/sha}","git_commits_url":"https://api.github.com/repos/vietanhbkaaa/elerning-vietanh/git/commits{/sha}","comments_url":"https://api.github.com/repos/vietanhbkaaa/elerning-vietanh/comments{/number}","issue_comment_url":"https://api.github.com/repos/vietanhbkaaa/elerning-vietanh/issues/comments{/number}","contents_url":"https://api.github.com/repos/vietanhbkaaa/elerning-vietanh/contents/{+path}","compare_url":"https://api.github.com/repos/vietanhbkaaa/elerning-vietanh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vietanhbkaaa/elerning-vietanh/merges","archive_url":"https://api.github.com/repos/vietanhbkaaa/elerning-vietanh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vietanhbkaaa/elerning-vietanh/downloads","issues_url":"https://api.github.com/repos/vietanhbkaaa/elerning-vietanh/issues{/number}","pulls_url":"https://api.github.com/repos/vietanhbkaaa/elerning-vietanh/pulls{/number}","milestones_url":"https://api.github.com/repos/vietanhbkaaa/elerning-vietanh/milestones{/number}","notifications_url":"https://api.github.com/repos/vietanhbkaaa/elerning-vietanh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vietanhbkaaa/elerning-vietanh/labels{/name}","releases_url":"https://api.github.com/repos/vietanhbkaaa/elerning-vietanh/releases{/id}","created_at":"2015-06-26T02:39:28Z","updated_at":"2015-06-26T02:39:29Z","pushed_at":"2015-06-29T06:20:42Z","git_url":"git://github.com/vietanhbkaaa/elerning-vietanh.git","ssh_url":"git@github.com:vietanhbkaaa/elerning-vietanh.git","clone_url":"https://github.com/vietanhbkaaa/elerning-vietanh.git","svn_url":"https://github.com/vietanhbkaaa/elerning-vietanh","homepage":null,"size":0,"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":"develop"}},"base":{"label":"binhthanhnguyen:develop","ref":"develop","sha":"206b4c08c3edada962b01ee9063240efdbf5171c","user":{"login":"binhthanhnguyen","id":12368804,"avatar_url":"https://avatars.githubusercontent.com/u/12368804?v=3","gravatar_id":"","url":"https://api.github.com/users/binhthanhnguyen","html_url":"https://github.com/binhthanhnguyen","followers_url":"https://api.github.com/users/binhthanhnguyen/followers","following_url":"https://api.github.com/users/binhthanhnguyen/following{/other_user}","gists_url":"https://api.github.com/users/binhthanhnguyen/gists{/gist_id}","starred_url":"https://api.github.com/users/binhthanhnguyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/binhthanhnguyen/subscriptions","organizations_url":"https://api.github.com/users/binhthanhnguyen/orgs","repos_url":"https://api.github.com/users/binhthanhnguyen/repos","events_url":"https://api.github.com/users/binhthanhnguyen/events{/privacy}","received_events_url":"https://api.github.com/users/binhthanhnguyen/received_events","type":"User","site_admin":false},"repo":{"id":38085477,"name":"elerning-vietanh","full_name":"binhthanhnguyen/elerning-vietanh","owner":{"login":"binhthanhnguyen","id":12368804,"avatar_url":"https://avatars.githubusercontent.com/u/12368804?v=3","gravatar_id":"","url":"https://api.github.com/users/binhthanhnguyen","html_url":"https://github.com/binhthanhnguyen","followers_url":"https://api.github.com/users/binhthanhnguyen/followers","following_url":"https://api.github.com/users/binhthanhnguyen/following{/other_user}","gists_url":"https://api.github.com/users/binhthanhnguyen/gists{/gist_id}","starred_url":"https://api.github.com/users/binhthanhnguyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/binhthanhnguyen/subscriptions","organizations_url":"https://api.github.com/users/binhthanhnguyen/orgs","repos_url":"https://api.github.com/users/binhthanhnguyen/repos","events_url":"https://api.github.com/users/binhthanhnguyen/events{/privacy}","received_events_url":"https://api.github.com/users/binhthanhnguyen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/binhthanhnguyen/elerning-vietanh","description":"","fork":false,"url":"https://api.github.com/repos/binhthanhnguyen/elerning-vietanh","forks_url":"https://api.github.com/repos/binhthanhnguyen/elerning-vietanh/forks","keys_url":"https://api.github.com/repos/binhthanhnguyen/elerning-vietanh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/binhthanhnguyen/elerning-vietanh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/binhthanhnguyen/elerning-vietanh/teams","hooks_url":"https://api.github.com/repos/binhthanhnguyen/elerning-vietanh/hooks","issue_events_url":"https://api.github.com/repos/binhthanhnguyen/elerning-vietanh/issues/events{/number}","events_url":"https://api.github.com/repos/binhthanhnguyen/elerning-vietanh/events","assignees_url":"https://api.github.com/repos/binhthanhnguyen/elerning-vietanh/assignees{/user}","branches_url":"https://api.github.com/repos/binhthanhnguyen/elerning-vietanh/branches{/branch}","tags_url":"https://api.github.com/repos/binhthanhnguyen/elerning-vietanh/tags","blobs_url":"https://api.github.com/repos/binhthanhnguyen/elerning-vietanh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/binhthanhnguyen/elerning-vietanh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/binhthanhnguyen/elerning-vietanh/git/refs{/sha}","trees_url":"https://api.github.com/repos/binhthanhnguyen/elerning-vietanh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/binhthanhnguyen/elerning-vietanh/statuses/{sha}","languages_url":"https://api.github.com/repos/binhthanhnguyen/elerning-vietanh/languages","stargazers_url":"https://api.github.com/repos/binhthanhnguyen/elerning-vietanh/stargazers","contributors_url":"https://api.github.com/repos/binhthanhnguyen/elerning-vietanh/contributors","subscribers_url":"https://api.github.com/repos/binhthanhnguyen/elerning-vietanh/subscribers","subscription_url":"https://api.github.com/repos/binhthanhnguyen/elerning-vietanh/subscription","commits_url":"https://api.github.com/repos/binhthanhnguyen/elerning-vietanh/commits{/sha}","git_commits_url":"https://api.github.com/repos/binhthanhnguyen/elerning-vietanh/git/commits{/sha}","comments_url":"https://api.github.com/repos/binhthanhnguyen/elerning-vietanh/comments{/number}","issue_comment_url":"https://api.github.com/repos/binhthanhnguyen/elerning-vietanh/issues/comments{/number}","contents_url":"https://api.github.com/repos/binhthanhnguyen/elerning-vietanh/contents/{+path}","compare_url":"https://api.github.com/repos/binhthanhnguyen/elerning-vietanh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/binhthanhnguyen/elerning-vietanh/merges","archive_url":"https://api.github.com/repos/binhthanhnguyen/elerning-vietanh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/binhthanhnguyen/elerning-vietanh/downloads","issues_url":"https://api.github.com/repos/binhthanhnguyen/elerning-vietanh/issues{/number}","pulls_url":"https://api.github.com/repos/binhthanhnguyen/elerning-vietanh/pulls{/number}","milestones_url":"https://api.github.com/repos/binhthanhnguyen/elerning-vietanh/milestones{/number}","notifications_url":"https://api.github.com/repos/binhthanhnguyen/elerning-vietanh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/binhthanhnguyen/elerning-vietanh/labels{/name}","releases_url":"https://api.github.com/repos/binhthanhnguyen/elerning-vietanh/releases{/id}","created_at":"2015-06-26T02:10:27Z","updated_at":"2015-06-26T02:38:34Z","pushed_at":"2015-06-29T06:20:43Z","git_url":"git://github.com/binhthanhnguyen/elerning-vietanh.git","ssh_url":"git@github.com:binhthanhnguyen/elerning-vietanh.git","clone_url":"https://github.com/binhthanhnguyen/elerning-vietanh.git","svn_url":"https://github.com/binhthanhnguyen/elerning-vietanh","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/binhthanhnguyen/elerning-vietanh/pulls/4"},"html":{"href":"https://github.com/binhthanhnguyen/elerning-vietanh/pull/4"},"issue":{"href":"https://api.github.com/repos/binhthanhnguyen/elerning-vietanh/issues/4"},"comments":{"href":"https://api.github.com/repos/binhthanhnguyen/elerning-vietanh/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/binhthanhnguyen/elerning-vietanh/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/binhthanhnguyen/elerning-vietanh/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/binhthanhnguyen/elerning-vietanh/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/binhthanhnguyen/elerning-vietanh/statuses/16fe2964c0bb33abfc0e030b3ff2f3458dad9c27"}}}}