{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fels_97/pulls/comments/47315475","id":47315475,"diff_hunk":"@@ -8,7 +8,9 @@ class User < ActiveRecord::Base\n                     uniqueness: { case_sensitive: false }\n   has_secure_password\n   validates :password, length: { minimum: 6 }, on: [:create]\n-\n+  has_attached_file :avatar, styles: { medium:  \"300x300>\", \n+                     thumb:  \"100x100#\" }, :default_url => \"/images/:style/missing.png\"\n+  validates_attachment_content_type :avatar, :content_type => /\\Aimage\\/.*\\Z/\n   # Returns the hash digest of the given string.","path":"app/models/user.rb","position":8,"original_position":8,"commit_id":"3d5ea5b0ee57f0ad3fdc67a5c7d2460fb73176c3","original_commit_id":"3d5ea5b0ee57f0ad3fdc67a5c7d2460fb73176c3","user":{"login":"dieunb","id":2122175,"avatar_url":"https://avatars.githubusercontent.com/u/2122175?v=3","gravatar_id":"","url":"https://api.github.com/users/dieunb","html_url":"https://github.com/dieunb","followers_url":"https://api.github.com/users/dieunb/followers","following_url":"https://api.github.com/users/dieunb/following{/other_user}","gists_url":"https://api.github.com/users/dieunb/gists{/gist_id}","starred_url":"https://api.github.com/users/dieunb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dieunb/subscriptions","organizations_url":"https://api.github.com/users/dieunb/orgs","repos_url":"https://api.github.com/users/dieunb/repos","events_url":"https://api.github.com/users/dieunb/events{/privacy}","received_events_url":"https://api.github.com/users/dieunb/received_events","type":"User","site_admin":false},"body":"remove all remark","created_at":"2015-12-11T02:23:07Z","updated_at":"2015-12-11T02:23:07Z","html_url":"https://github.com/framgia/fels_97/pull/9#discussion_r47315475","pull_request_url":"https://api.github.com/repos/framgia/fels_97/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_97/pulls/comments/47315475"},"html":{"href":"https://github.com/framgia/fels_97/pull/9#discussion_r47315475"},"pull_request":{"href":"https://api.github.com/repos/framgia/fels_97/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fels_97/pulls/9","id":53212734,"html_url":"https://github.com/framgia/fels_97/pull/9","diff_url":"https://github.com/framgia/fels_97/pull/9.diff","patch_url":"https://github.com/framgia/fels_97/pull/9.patch","issue_url":"https://api.github.com/repos/framgia/fels_97/issues/9","number":9,"state":"open","locked":false,"title":"finish edit,show profile","user":{"login":"phudinhdanh","id":14831038,"avatar_url":"https://avatars.githubusercontent.com/u/14831038?v=3","gravatar_id":"","url":"https://api.github.com/users/phudinhdanh","html_url":"https://github.com/phudinhdanh","followers_url":"https://api.github.com/users/phudinhdanh/followers","following_url":"https://api.github.com/users/phudinhdanh/following{/other_user}","gists_url":"https://api.github.com/users/phudinhdanh/gists{/gist_id}","starred_url":"https://api.github.com/users/phudinhdanh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phudinhdanh/subscriptions","organizations_url":"https://api.github.com/users/phudinhdanh/orgs","repos_url":"https://api.github.com/users/phudinhdanh/repos","events_url":"https://api.github.com/users/phudinhdanh/events{/privacy}","received_events_url":"https://api.github.com/users/phudinhdanh/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-10T03:52:02Z","updated_at":"2015-12-11T02:23:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"af0de77ad357eb311ca683230a4601698271b2fb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fels_97/pulls/9/commits","review_comments_url":"https://api.github.com/repos/framgia/fels_97/pulls/9/comments","review_comment_url":"https://api.github.com/repos/framgia/fels_97/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fels_97/issues/9/comments","statuses_url":"https://api.github.com/repos/framgia/fels_97/statuses/3d5ea5b0ee57f0ad3fdc67a5c7d2460fb73176c3","head":{"label":"dinhdanhphu:updateprofile","ref":"updateprofile","sha":"3d5ea5b0ee57f0ad3fdc67a5c7d2460fb73176c3","user":{"login":"dinhdanhphu","id":16080260,"avatar_url":"https://avatars.githubusercontent.com/u/16080260?v=3","gravatar_id":"","url":"https://api.github.com/users/dinhdanhphu","html_url":"https://github.com/dinhdanhphu","followers_url":"https://api.github.com/users/dinhdanhphu/followers","following_url":"https://api.github.com/users/dinhdanhphu/following{/other_user}","gists_url":"https://api.github.com/users/dinhdanhphu/gists{/gist_id}","starred_url":"https://api.github.com/users/dinhdanhphu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dinhdanhphu/subscriptions","organizations_url":"https://api.github.com/users/dinhdanhphu/orgs","repos_url":"https://api.github.com/users/dinhdanhphu/repos","events_url":"https://api.github.com/users/dinhdanhphu/events{/privacy}","received_events_url":"https://api.github.com/users/dinhdanhphu/received_events","type":"User","site_admin":false},"repo":{"id":47522302,"name":"fels_97","full_name":"dinhdanhphu/fels_97","owner":{"login":"dinhdanhphu","id":16080260,"avatar_url":"https://avatars.githubusercontent.com/u/16080260?v=3","gravatar_id":"","url":"https://api.github.com/users/dinhdanhphu","html_url":"https://github.com/dinhdanhphu","followers_url":"https://api.github.com/users/dinhdanhphu/followers","following_url":"https://api.github.com/users/dinhdanhphu/following{/other_user}","gists_url":"https://api.github.com/users/dinhdanhphu/gists{/gist_id}","starred_url":"https://api.github.com/users/dinhdanhphu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dinhdanhphu/subscriptions","organizations_url":"https://api.github.com/users/dinhdanhphu/orgs","repos_url":"https://api.github.com/users/dinhdanhphu/repos","events_url":"https://api.github.com/users/dinhdanhphu/events{/privacy}","received_events_url":"https://api.github.com/users/dinhdanhphu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dinhdanhphu/fels_97","description":"Framgia E-Learning System (training)","fork":true,"url":"https://api.github.com/repos/dinhdanhphu/fels_97","forks_url":"https://api.github.com/repos/dinhdanhphu/fels_97/forks","keys_url":"https://api.github.com/repos/dinhdanhphu/fels_97/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dinhdanhphu/fels_97/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dinhdanhphu/fels_97/teams","hooks_url":"https://api.github.com/repos/dinhdanhphu/fels_97/hooks","issue_events_url":"https://api.github.com/repos/dinhdanhphu/fels_97/issues/events{/number}","events_url":"https://api.github.com/repos/dinhdanhphu/fels_97/events","assignees_url":"https://api.github.com/repos/dinhdanhphu/fels_97/assignees{/user}","branches_url":"https://api.github.com/repos/dinhdanhphu/fels_97/branches{/branch}","tags_url":"https://api.github.com/repos/dinhdanhphu/fels_97/tags","blobs_url":"https://api.github.com/repos/dinhdanhphu/fels_97/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dinhdanhphu/fels_97/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dinhdanhphu/fels_97/git/refs{/sha}","trees_url":"https://api.github.com/repos/dinhdanhphu/fels_97/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dinhdanhphu/fels_97/statuses/{sha}","languages_url":"https://api.github.com/repos/dinhdanhphu/fels_97/languages","stargazers_url":"https://api.github.com/repos/dinhdanhphu/fels_97/stargazers","contributors_url":"https://api.github.com/repos/dinhdanhphu/fels_97/contributors","subscribers_url":"https://api.github.com/repos/dinhdanhphu/fels_97/subscribers","subscription_url":"https://api.github.com/repos/dinhdanhphu/fels_97/subscription","commits_url":"https://api.github.com/repos/dinhdanhphu/fels_97/commits{/sha}","git_commits_url":"https://api.github.com/repos/dinhdanhphu/fels_97/git/commits{/sha}","comments_url":"https://api.github.com/repos/dinhdanhphu/fels_97/comments{/number}","issue_comment_url":"https://api.github.com/repos/dinhdanhphu/fels_97/issues/comments{/number}","contents_url":"https://api.github.com/repos/dinhdanhphu/fels_97/contents/{+path}","compare_url":"https://api.github.com/repos/dinhdanhphu/fels_97/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dinhdanhphu/fels_97/merges","archive_url":"https://api.github.com/repos/dinhdanhphu/fels_97/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dinhdanhphu/fels_97/downloads","issues_url":"https://api.github.com/repos/dinhdanhphu/fels_97/issues{/number}","pulls_url":"https://api.github.com/repos/dinhdanhphu/fels_97/pulls{/number}","milestones_url":"https://api.github.com/repos/dinhdanhphu/fels_97/milestones{/number}","notifications_url":"https://api.github.com/repos/dinhdanhphu/fels_97/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dinhdanhphu/fels_97/labels{/name}","releases_url":"https://api.github.com/repos/dinhdanhphu/fels_97/releases{/id}","created_at":"2015-12-07T01:37:44Z","updated_at":"2015-12-02T02:30:29Z","pushed_at":"2015-12-10T09:03:36Z","git_url":"git://github.com/dinhdanhphu/fels_97.git","ssh_url":"git@github.com:dinhdanhphu/fels_97.git","clone_url":"https://github.com/dinhdanhphu/fels_97.git","svn_url":"https://github.com/dinhdanhphu/fels_97","homepage":null,"size":42,"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":"3fa152f1feb78c085c35c8f7d2cb79bb32b66669","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":47231744,"name":"fels_97","full_name":"framgia/fels_97","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_97","description":"Framgia E-Learning System (training)","fork":false,"url":"https://api.github.com/repos/framgia/fels_97","forks_url":"https://api.github.com/repos/framgia/fels_97/forks","keys_url":"https://api.github.com/repos/framgia/fels_97/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fels_97/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fels_97/teams","hooks_url":"https://api.github.com/repos/framgia/fels_97/hooks","issue_events_url":"https://api.github.com/repos/framgia/fels_97/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fels_97/events","assignees_url":"https://api.github.com/repos/framgia/fels_97/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fels_97/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fels_97/tags","blobs_url":"https://api.github.com/repos/framgia/fels_97/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fels_97/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fels_97/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fels_97/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fels_97/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fels_97/languages","stargazers_url":"https://api.github.com/repos/framgia/fels_97/stargazers","contributors_url":"https://api.github.com/repos/framgia/fels_97/contributors","subscribers_url":"https://api.github.com/repos/framgia/fels_97/subscribers","subscription_url":"https://api.github.com/repos/framgia/fels_97/subscription","commits_url":"https://api.github.com/repos/framgia/fels_97/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fels_97/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fels_97/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fels_97/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fels_97/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fels_97/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fels_97/merges","archive_url":"https://api.github.com/repos/framgia/fels_97/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fels_97/downloads","issues_url":"https://api.github.com/repos/framgia/fels_97/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fels_97/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fels_97/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fels_97/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fels_97/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fels_97/releases{/id}","created_at":"2015-12-02T02:30:29Z","updated_at":"2015-12-02T02:30:29Z","pushed_at":"2015-12-10T09:03:37Z","git_url":"git://github.com/framgia/fels_97.git","ssh_url":"git@github.com:framgia/fels_97.git","clone_url":"https://github.com/framgia/fels_97.git","svn_url":"https://github.com/framgia/fels_97","homepage":null,"size":36,"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":6,"forks":2,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_97/pulls/9"},"html":{"href":"https://github.com/framgia/fels_97/pull/9"},"issue":{"href":"https://api.github.com/repos/framgia/fels_97/issues/9"},"comments":{"href":"https://api.github.com/repos/framgia/fels_97/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fels_97/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fels_97/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fels_97/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fels_97/statuses/3d5ea5b0ee57f0ad3fdc67a5c7d2460fb73176c3"}}}}