{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fels_66/pulls/comments/33327092","id":33327092,"diff_hunk":"@@ -0,0 +1,77 @@\n+class User < ActiveRecord::Base\n+  has_many :entries, dependent: :destroy\n+  has_many :active_relationships, class_name:  \"Relationship\",\n+                                  foreign_key: \"follower_id\",\n+                                  dependent:   :destroy\n+  has_many :passive_relationships, class_name:  \"Relationship\",\n+                                   foreign_key: \"followed_id\",\n+                                   dependent:   :destroy\n+  has_many :following, through: :active_relationships,  source: :followed\n+  has_many :followers, through: :passive_relationships, source: :follower\n+\n+  has_many :activities, dependent: :destroy\n+  has_many :lessons, dependent: :destroy\n+\n+  attr_accessor :remember_token\n+  before_save   :downcase_email\n+\n+  validates :name,  presence: true, length: { maximum: 50 }\n+  VALID_EMAIL_REGEX = /\\A[\\w+\\-.]+@[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":21,"original_position":21,"commit_id":"a8badcf37c99c7fcb2b4ba03489adf1584d2ac04","original_commit_id":"a8badcf37c99c7fcb2b4ba03489adf1584d2ac04","user":{"login":"phamkykhoi","id":8532305,"avatar_url":"https://avatars.githubusercontent.com/u/8532305?v=3","gravatar_id":"","url":"https://api.github.com/users/phamkykhoi","html_url":"https://github.com/phamkykhoi","followers_url":"https://api.github.com/users/phamkykhoi/followers","following_url":"https://api.github.com/users/phamkykhoi/following{/other_user}","gists_url":"https://api.github.com/users/phamkykhoi/gists{/gist_id}","starred_url":"https://api.github.com/users/phamkykhoi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phamkykhoi/subscriptions","organizations_url":"https://api.github.com/users/phamkykhoi/orgs","repos_url":"https://api.github.com/users/phamkykhoi/repos","events_url":"https://api.github.com/users/phamkykhoi/events{/privacy}","received_events_url":"https://api.github.com/users/phamkykhoi/received_events","type":"User","site_admin":false},"body":"Remove ( )","created_at":"2015-06-26T03:54:31Z","updated_at":"2015-06-26T03:54:31Z","html_url":"https://github.com/framgia/fels_66/pull/2#discussion_r33327092","pull_request_url":"https://api.github.com/repos/framgia/fels_66/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_66/pulls/comments/33327092"},"html":{"href":"https://github.com/framgia/fels_66/pull/2#discussion_r33327092"},"pull_request":{"href":"https://api.github.com/repos/framgia/fels_66/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fels_66/pulls/2","id":38531068,"html_url":"https://github.com/framgia/fels_66/pull/2","diff_url":"https://github.com/framgia/fels_66/pull/2.diff","patch_url":"https://github.com/framgia/fels_66/pull/2.patch","issue_url":"https://api.github.com/repos/framgia/fels_66/issues/2","number":2,"state":"open","locked":false,"title":"init model","user":{"login":"VuongLong","id":5051736,"avatar_url":"https://avatars.githubusercontent.com/u/5051736?v=3","gravatar_id":"","url":"https://api.github.com/users/VuongLong","html_url":"https://github.com/VuongLong","followers_url":"https://api.github.com/users/VuongLong/followers","following_url":"https://api.github.com/users/VuongLong/following{/other_user}","gists_url":"https://api.github.com/users/VuongLong/gists{/gist_id}","starred_url":"https://api.github.com/users/VuongLong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VuongLong/subscriptions","organizations_url":"https://api.github.com/users/VuongLong/orgs","repos_url":"https://api.github.com/users/VuongLong/repos","events_url":"https://api.github.com/users/VuongLong/events{/privacy}","received_events_url":"https://api.github.com/users/VuongLong/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-25T10:05:52Z","updated_at":"2015-06-26T03:54:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7830ce6c7e44ec22bbea96fce2d6b6f1a084b7c9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fels_66/pulls/2/commits","review_comments_url":"https://api.github.com/repos/framgia/fels_66/pulls/2/comments","review_comment_url":"https://api.github.com/repos/framgia/fels_66/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fels_66/issues/2/comments","statuses_url":"https://api.github.com/repos/framgia/fels_66/statuses/a8badcf37c99c7fcb2b4ba03489adf1584d2ac04","head":{"label":"VuongLong:init_model","ref":"init_model","sha":"a8badcf37c99c7fcb2b4ba03489adf1584d2ac04","user":{"login":"VuongLong","id":5051736,"avatar_url":"https://avatars.githubusercontent.com/u/5051736?v=3","gravatar_id":"","url":"https://api.github.com/users/VuongLong","html_url":"https://github.com/VuongLong","followers_url":"https://api.github.com/users/VuongLong/followers","following_url":"https://api.github.com/users/VuongLong/following{/other_user}","gists_url":"https://api.github.com/users/VuongLong/gists{/gist_id}","starred_url":"https://api.github.com/users/VuongLong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VuongLong/subscriptions","organizations_url":"https://api.github.com/users/VuongLong/orgs","repos_url":"https://api.github.com/users/VuongLong/repos","events_url":"https://api.github.com/users/VuongLong/events{/privacy}","received_events_url":"https://api.github.com/users/VuongLong/received_events","type":"User","site_admin":false},"repo":{"id":38031461,"name":"fels_66","full_name":"VuongLong/fels_66","owner":{"login":"VuongLong","id":5051736,"avatar_url":"https://avatars.githubusercontent.com/u/5051736?v=3","gravatar_id":"","url":"https://api.github.com/users/VuongLong","html_url":"https://github.com/VuongLong","followers_url":"https://api.github.com/users/VuongLong/followers","following_url":"https://api.github.com/users/VuongLong/following{/other_user}","gists_url":"https://api.github.com/users/VuongLong/gists{/gist_id}","starred_url":"https://api.github.com/users/VuongLong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VuongLong/subscriptions","organizations_url":"https://api.github.com/users/VuongLong/orgs","repos_url":"https://api.github.com/users/VuongLong/repos","events_url":"https://api.github.com/users/VuongLong/events{/privacy}","received_events_url":"https://api.github.com/users/VuongLong/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/VuongLong/fels_66","description":"Framgia E-Learning System (training)","fork":true,"url":"https://api.github.com/repos/VuongLong/fels_66","forks_url":"https://api.github.com/repos/VuongLong/fels_66/forks","keys_url":"https://api.github.com/repos/VuongLong/fels_66/keys{/key_id}","collaborators_url":"https://api.github.com/repos/VuongLong/fels_66/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/VuongLong/fels_66/teams","hooks_url":"https://api.github.com/repos/VuongLong/fels_66/hooks","issue_events_url":"https://api.github.com/repos/VuongLong/fels_66/issues/events{/number}","events_url":"https://api.github.com/repos/VuongLong/fels_66/events","assignees_url":"https://api.github.com/repos/VuongLong/fels_66/assignees{/user}","branches_url":"https://api.github.com/repos/VuongLong/fels_66/branches{/branch}","tags_url":"https://api.github.com/repos/VuongLong/fels_66/tags","blobs_url":"https://api.github.com/repos/VuongLong/fels_66/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/VuongLong/fels_66/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/VuongLong/fels_66/git/refs{/sha}","trees_url":"https://api.github.com/repos/VuongLong/fels_66/git/trees{/sha}","statuses_url":"https://api.github.com/repos/VuongLong/fels_66/statuses/{sha}","languages_url":"https://api.github.com/repos/VuongLong/fels_66/languages","stargazers_url":"https://api.github.com/repos/VuongLong/fels_66/stargazers","contributors_url":"https://api.github.com/repos/VuongLong/fels_66/contributors","subscribers_url":"https://api.github.com/repos/VuongLong/fels_66/subscribers","subscription_url":"https://api.github.com/repos/VuongLong/fels_66/subscription","commits_url":"https://api.github.com/repos/VuongLong/fels_66/commits{/sha}","git_commits_url":"https://api.github.com/repos/VuongLong/fels_66/git/commits{/sha}","comments_url":"https://api.github.com/repos/VuongLong/fels_66/comments{/number}","issue_comment_url":"https://api.github.com/repos/VuongLong/fels_66/issues/comments{/number}","contents_url":"https://api.github.com/repos/VuongLong/fels_66/contents/{+path}","compare_url":"https://api.github.com/repos/VuongLong/fels_66/compare/{base}...{head}","merges_url":"https://api.github.com/repos/VuongLong/fels_66/merges","archive_url":"https://api.github.com/repos/VuongLong/fels_66/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/VuongLong/fels_66/downloads","issues_url":"https://api.github.com/repos/VuongLong/fels_66/issues{/number}","pulls_url":"https://api.github.com/repos/VuongLong/fels_66/pulls{/number}","milestones_url":"https://api.github.com/repos/VuongLong/fels_66/milestones{/number}","notifications_url":"https://api.github.com/repos/VuongLong/fels_66/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/VuongLong/fels_66/labels{/name}","releases_url":"https://api.github.com/repos/VuongLong/fels_66/releases{/id}","created_at":"2015-06-25T06:13:12Z","updated_at":"2015-06-25T02:12:42Z","pushed_at":"2015-06-25T10:05:15Z","git_url":"git://github.com/VuongLong/fels_66.git","ssh_url":"git@github.com:VuongLong/fels_66.git","clone_url":"https://github.com/VuongLong/fels_66.git","svn_url":"https://github.com/VuongLong/fels_66","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"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":"framgia:develop","ref":"develop","sha":"69829567cfaee70d70151ffe3834004b10a563be","user":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"repo":{"id":38022560,"name":"fels_66","full_name":"framgia/fels_66","owner":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/framgia/fels_66","description":"Framgia E-Learning System (training)","fork":false,"url":"https://api.github.com/repos/framgia/fels_66","forks_url":"https://api.github.com/repos/framgia/fels_66/forks","keys_url":"https://api.github.com/repos/framgia/fels_66/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fels_66/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fels_66/teams","hooks_url":"https://api.github.com/repos/framgia/fels_66/hooks","issue_events_url":"https://api.github.com/repos/framgia/fels_66/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fels_66/events","assignees_url":"https://api.github.com/repos/framgia/fels_66/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fels_66/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fels_66/tags","blobs_url":"https://api.github.com/repos/framgia/fels_66/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fels_66/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fels_66/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fels_66/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fels_66/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fels_66/languages","stargazers_url":"https://api.github.com/repos/framgia/fels_66/stargazers","contributors_url":"https://api.github.com/repos/framgia/fels_66/contributors","subscribers_url":"https://api.github.com/repos/framgia/fels_66/subscribers","subscription_url":"https://api.github.com/repos/framgia/fels_66/subscription","commits_url":"https://api.github.com/repos/framgia/fels_66/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fels_66/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fels_66/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fels_66/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fels_66/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fels_66/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fels_66/merges","archive_url":"https://api.github.com/repos/framgia/fels_66/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fels_66/downloads","issues_url":"https://api.github.com/repos/framgia/fels_66/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fels_66/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fels_66/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fels_66/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fels_66/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fels_66/releases{/id}","created_at":"2015-06-25T02:12:42Z","updated_at":"2015-06-25T02:12:42Z","pushed_at":"2015-06-25T10:05:53Z","git_url":"git://github.com/framgia/fels_66.git","ssh_url":"git@github.com:framgia/fels_66.git","clone_url":"https://github.com/framgia/fels_66.git","svn_url":"https://github.com/framgia/fels_66","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_66/pulls/2"},"html":{"href":"https://github.com/framgia/fels_66/pull/2"},"issue":{"href":"https://api.github.com/repos/framgia/fels_66/issues/2"},"comments":{"href":"https://api.github.com/repos/framgia/fels_66/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fels_66/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fels_66/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fels_66/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fels_66/statuses/a8badcf37c99c7fcb2b4ba03489adf1584d2ac04"}}}}