{"action":"created","comment":{"url":"https://api.github.com/repos/arthurkulchenko/qna_think/pulls/comments/73138545","id":73138545,"diff_hunk":"@@ -3,4 +3,23 @@ class Answer < ApplicationRecord\n   belongs_to :user\n \n   validates :content, :user_id, presence: true\n+\n+  before_update :check_of_best","path":"app/models/answer.rb","position":5,"original_position":5,"commit_id":"4e70e5fab659cc298ccc25738d96fb536ddbc016","original_commit_id":"4e70e5fab659cc298ccc25738d96fb536ddbc016","user":{"login":"vkurennov","id":968537,"avatar_url":"https://avatars.githubusercontent.com/u/968537?v=3","gravatar_id":"","url":"https://api.github.com/users/vkurennov","html_url":"https://github.com/vkurennov","followers_url":"https://api.github.com/users/vkurennov/followers","following_url":"https://api.github.com/users/vkurennov/following{/other_user}","gists_url":"https://api.github.com/users/vkurennov/gists{/gist_id}","starred_url":"https://api.github.com/users/vkurennov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vkurennov/subscriptions","organizations_url":"https://api.github.com/users/vkurennov/orgs","repos_url":"https://api.github.com/users/vkurennov/repos","events_url":"https://api.github.com/users/vkurennov/events{/privacy}","received_events_url":"https://api.github.com/users/vkurennov/received_events","type":"User","site_admin":false},"body":"А где тесты, проверяющие это поведение при апдейте?","created_at":"2016-08-02T11:30:49Z","updated_at":"2016-08-02T11:30:49Z","html_url":"https://github.com/arthurkulchenko/qna_think/pull/8#discussion_r73138545","pull_request_url":"https://api.github.com/repos/arthurkulchenko/qna_think/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/arthurkulchenko/qna_think/pulls/comments/73138545"},"html":{"href":"https://github.com/arthurkulchenko/qna_think/pull/8#discussion_r73138545"},"pull_request":{"href":"https://api.github.com/repos/arthurkulchenko/qna_think/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/arthurkulchenko/qna_think/pulls/8","id":78823016,"html_url":"https://github.com/arthurkulchenko/qna_think/pull/8","diff_url":"https://github.com/arthurkulchenko/qna_think/pull/8.diff","patch_url":"https://github.com/arthurkulchenko/qna_think/pull/8.patch","issue_url":"https://api.github.com/repos/arthurkulchenko/qna_think/issues/8","number":8,"state":"open","locked":false,"title":"Ajax2","user":{"login":"arthurkulchenko","id":12735101,"avatar_url":"https://avatars.githubusercontent.com/u/12735101?v=3","gravatar_id":"","url":"https://api.github.com/users/arthurkulchenko","html_url":"https://github.com/arthurkulchenko","followers_url":"https://api.github.com/users/arthurkulchenko/followers","following_url":"https://api.github.com/users/arthurkulchenko/following{/other_user}","gists_url":"https://api.github.com/users/arthurkulchenko/gists{/gist_id}","starred_url":"https://api.github.com/users/arthurkulchenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arthurkulchenko/subscriptions","organizations_url":"https://api.github.com/users/arthurkulchenko/orgs","repos_url":"https://api.github.com/users/arthurkulchenko/repos","events_url":"https://api.github.com/users/arthurkulchenko/events{/privacy}","received_events_url":"https://api.github.com/users/arthurkulchenko/received_events","type":"User","site_admin":false},"body":"[забыл слить прежде чем продолжить](https://github.com/arthurkulchenko/qna_think/pull/5/commits/8b549b0e0f17615a5c664b728c1597c2e23220f8)","created_at":"2016-07-26T09:57:01Z","updated_at":"2016-08-02T11:30:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b0850dc5e049eeb2f8bdce4ef19d6354cbaf65d2","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/arthurkulchenko/qna_think/pulls/8/commits","review_comments_url":"https://api.github.com/repos/arthurkulchenko/qna_think/pulls/8/comments","review_comment_url":"https://api.github.com/repos/arthurkulchenko/qna_think/pulls/comments{/number}","comments_url":"https://api.github.com/repos/arthurkulchenko/qna_think/issues/8/comments","statuses_url":"https://api.github.com/repos/arthurkulchenko/qna_think/statuses/4e70e5fab659cc298ccc25738d96fb536ddbc016","head":{"label":"arthurkulchenko:ajax2","ref":"ajax2","sha":"4e70e5fab659cc298ccc25738d96fb536ddbc016","user":{"login":"arthurkulchenko","id":12735101,"avatar_url":"https://avatars.githubusercontent.com/u/12735101?v=3","gravatar_id":"","url":"https://api.github.com/users/arthurkulchenko","html_url":"https://github.com/arthurkulchenko","followers_url":"https://api.github.com/users/arthurkulchenko/followers","following_url":"https://api.github.com/users/arthurkulchenko/following{/other_user}","gists_url":"https://api.github.com/users/arthurkulchenko/gists{/gist_id}","starred_url":"https://api.github.com/users/arthurkulchenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arthurkulchenko/subscriptions","organizations_url":"https://api.github.com/users/arthurkulchenko/orgs","repos_url":"https://api.github.com/users/arthurkulchenko/repos","events_url":"https://api.github.com/users/arthurkulchenko/events{/privacy}","received_events_url":"https://api.github.com/users/arthurkulchenko/received_events","type":"User","site_admin":false},"repo":{"id":62087351,"name":"qna_think","full_name":"arthurkulchenko/qna_think","owner":{"login":"arthurkulchenko","id":12735101,"avatar_url":"https://avatars.githubusercontent.com/u/12735101?v=3","gravatar_id":"","url":"https://api.github.com/users/arthurkulchenko","html_url":"https://github.com/arthurkulchenko","followers_url":"https://api.github.com/users/arthurkulchenko/followers","following_url":"https://api.github.com/users/arthurkulchenko/following{/other_user}","gists_url":"https://api.github.com/users/arthurkulchenko/gists{/gist_id}","starred_url":"https://api.github.com/users/arthurkulchenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arthurkulchenko/subscriptions","organizations_url":"https://api.github.com/users/arthurkulchenko/orgs","repos_url":"https://api.github.com/users/arthurkulchenko/repos","events_url":"https://api.github.com/users/arthurkulchenko/events{/privacy}","received_events_url":"https://api.github.com/users/arthurkulchenko/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/arthurkulchenko/qna_think","description":null,"fork":false,"url":"https://api.github.com/repos/arthurkulchenko/qna_think","forks_url":"https://api.github.com/repos/arthurkulchenko/qna_think/forks","keys_url":"https://api.github.com/repos/arthurkulchenko/qna_think/keys{/key_id}","collaborators_url":"https://api.github.com/repos/arthurkulchenko/qna_think/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/arthurkulchenko/qna_think/teams","hooks_url":"https://api.github.com/repos/arthurkulchenko/qna_think/hooks","issue_events_url":"https://api.github.com/repos/arthurkulchenko/qna_think/issues/events{/number}","events_url":"https://api.github.com/repos/arthurkulchenko/qna_think/events","assignees_url":"https://api.github.com/repos/arthurkulchenko/qna_think/assignees{/user}","branches_url":"https://api.github.com/repos/arthurkulchenko/qna_think/branches{/branch}","tags_url":"https://api.github.com/repos/arthurkulchenko/qna_think/tags","blobs_url":"https://api.github.com/repos/arthurkulchenko/qna_think/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/arthurkulchenko/qna_think/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/arthurkulchenko/qna_think/git/refs{/sha}","trees_url":"https://api.github.com/repos/arthurkulchenko/qna_think/git/trees{/sha}","statuses_url":"https://api.github.com/repos/arthurkulchenko/qna_think/statuses/{sha}","languages_url":"https://api.github.com/repos/arthurkulchenko/qna_think/languages","stargazers_url":"https://api.github.com/repos/arthurkulchenko/qna_think/stargazers","contributors_url":"https://api.github.com/repos/arthurkulchenko/qna_think/contributors","subscribers_url":"https://api.github.com/repos/arthurkulchenko/qna_think/subscribers","subscription_url":"https://api.github.com/repos/arthurkulchenko/qna_think/subscription","commits_url":"https://api.github.com/repos/arthurkulchenko/qna_think/commits{/sha}","git_commits_url":"https://api.github.com/repos/arthurkulchenko/qna_think/git/commits{/sha}","comments_url":"https://api.github.com/repos/arthurkulchenko/qna_think/comments{/number}","issue_comment_url":"https://api.github.com/repos/arthurkulchenko/qna_think/issues/comments{/number}","contents_url":"https://api.github.com/repos/arthurkulchenko/qna_think/contents/{+path}","compare_url":"https://api.github.com/repos/arthurkulchenko/qna_think/compare/{base}...{head}","merges_url":"https://api.github.com/repos/arthurkulchenko/qna_think/merges","archive_url":"https://api.github.com/repos/arthurkulchenko/qna_think/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/arthurkulchenko/qna_think/downloads","issues_url":"https://api.github.com/repos/arthurkulchenko/qna_think/issues{/number}","pulls_url":"https://api.github.com/repos/arthurkulchenko/qna_think/pulls{/number}","milestones_url":"https://api.github.com/repos/arthurkulchenko/qna_think/milestones{/number}","notifications_url":"https://api.github.com/repos/arthurkulchenko/qna_think/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/arthurkulchenko/qna_think/labels{/name}","releases_url":"https://api.github.com/repos/arthurkulchenko/qna_think/releases{/id}","deployments_url":"https://api.github.com/repos/arthurkulchenko/qna_think/deployments","created_at":"2016-06-27T20:51:16Z","updated_at":"2016-06-27T20:51:33Z","pushed_at":"2016-08-01T11:21:27Z","git_url":"git://github.com/arthurkulchenko/qna_think.git","ssh_url":"git@github.com:arthurkulchenko/qna_think.git","clone_url":"https://github.com/arthurkulchenko/qna_think.git","svn_url":"https://github.com/arthurkulchenko/qna_think","homepage":null,"size":145,"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":"arthurkulchenko:master","ref":"master","sha":"f9f8555159ebd05d9ecfb7fad0f290af3c148e4c","user":{"login":"arthurkulchenko","id":12735101,"avatar_url":"https://avatars.githubusercontent.com/u/12735101?v=3","gravatar_id":"","url":"https://api.github.com/users/arthurkulchenko","html_url":"https://github.com/arthurkulchenko","followers_url":"https://api.github.com/users/arthurkulchenko/followers","following_url":"https://api.github.com/users/arthurkulchenko/following{/other_user}","gists_url":"https://api.github.com/users/arthurkulchenko/gists{/gist_id}","starred_url":"https://api.github.com/users/arthurkulchenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arthurkulchenko/subscriptions","organizations_url":"https://api.github.com/users/arthurkulchenko/orgs","repos_url":"https://api.github.com/users/arthurkulchenko/repos","events_url":"https://api.github.com/users/arthurkulchenko/events{/privacy}","received_events_url":"https://api.github.com/users/arthurkulchenko/received_events","type":"User","site_admin":false},"repo":{"id":62087351,"name":"qna_think","full_name":"arthurkulchenko/qna_think","owner":{"login":"arthurkulchenko","id":12735101,"avatar_url":"https://avatars.githubusercontent.com/u/12735101?v=3","gravatar_id":"","url":"https://api.github.com/users/arthurkulchenko","html_url":"https://github.com/arthurkulchenko","followers_url":"https://api.github.com/users/arthurkulchenko/followers","following_url":"https://api.github.com/users/arthurkulchenko/following{/other_user}","gists_url":"https://api.github.com/users/arthurkulchenko/gists{/gist_id}","starred_url":"https://api.github.com/users/arthurkulchenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arthurkulchenko/subscriptions","organizations_url":"https://api.github.com/users/arthurkulchenko/orgs","repos_url":"https://api.github.com/users/arthurkulchenko/repos","events_url":"https://api.github.com/users/arthurkulchenko/events{/privacy}","received_events_url":"https://api.github.com/users/arthurkulchenko/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/arthurkulchenko/qna_think","description":null,"fork":false,"url":"https://api.github.com/repos/arthurkulchenko/qna_think","forks_url":"https://api.github.com/repos/arthurkulchenko/qna_think/forks","keys_url":"https://api.github.com/repos/arthurkulchenko/qna_think/keys{/key_id}","collaborators_url":"https://api.github.com/repos/arthurkulchenko/qna_think/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/arthurkulchenko/qna_think/teams","hooks_url":"https://api.github.com/repos/arthurkulchenko/qna_think/hooks","issue_events_url":"https://api.github.com/repos/arthurkulchenko/qna_think/issues/events{/number}","events_url":"https://api.github.com/repos/arthurkulchenko/qna_think/events","assignees_url":"https://api.github.com/repos/arthurkulchenko/qna_think/assignees{/user}","branches_url":"https://api.github.com/repos/arthurkulchenko/qna_think/branches{/branch}","tags_url":"https://api.github.com/repos/arthurkulchenko/qna_think/tags","blobs_url":"https://api.github.com/repos/arthurkulchenko/qna_think/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/arthurkulchenko/qna_think/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/arthurkulchenko/qna_think/git/refs{/sha}","trees_url":"https://api.github.com/repos/arthurkulchenko/qna_think/git/trees{/sha}","statuses_url":"https://api.github.com/repos/arthurkulchenko/qna_think/statuses/{sha}","languages_url":"https://api.github.com/repos/arthurkulchenko/qna_think/languages","stargazers_url":"https://api.github.com/repos/arthurkulchenko/qna_think/stargazers","contributors_url":"https://api.github.com/repos/arthurkulchenko/qna_think/contributors","subscribers_url":"https://api.github.com/repos/arthurkulchenko/qna_think/subscribers","subscription_url":"https://api.github.com/repos/arthurkulchenko/qna_think/subscription","commits_url":"https://api.github.com/repos/arthurkulchenko/qna_think/commits{/sha}","git_commits_url":"https://api.github.com/repos/arthurkulchenko/qna_think/git/commits{/sha}","comments_url":"https://api.github.com/repos/arthurkulchenko/qna_think/comments{/number}","issue_comment_url":"https://api.github.com/repos/arthurkulchenko/qna_think/issues/comments{/number}","contents_url":"https://api.github.com/repos/arthurkulchenko/qna_think/contents/{+path}","compare_url":"https://api.github.com/repos/arthurkulchenko/qna_think/compare/{base}...{head}","merges_url":"https://api.github.com/repos/arthurkulchenko/qna_think/merges","archive_url":"https://api.github.com/repos/arthurkulchenko/qna_think/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/arthurkulchenko/qna_think/downloads","issues_url":"https://api.github.com/repos/arthurkulchenko/qna_think/issues{/number}","pulls_url":"https://api.github.com/repos/arthurkulchenko/qna_think/pulls{/number}","milestones_url":"https://api.github.com/repos/arthurkulchenko/qna_think/milestones{/number}","notifications_url":"https://api.github.com/repos/arthurkulchenko/qna_think/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/arthurkulchenko/qna_think/labels{/name}","releases_url":"https://api.github.com/repos/arthurkulchenko/qna_think/releases{/id}","deployments_url":"https://api.github.com/repos/arthurkulchenko/qna_think/deployments","created_at":"2016-06-27T20:51:16Z","updated_at":"2016-06-27T20:51:33Z","pushed_at":"2016-08-01T11:21:27Z","git_url":"git://github.com/arthurkulchenko/qna_think.git","ssh_url":"git@github.com:arthurkulchenko/qna_think.git","clone_url":"https://github.com/arthurkulchenko/qna_think.git","svn_url":"https://github.com/arthurkulchenko/qna_think","homepage":null,"size":145,"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/arthurkulchenko/qna_think/pulls/8"},"html":{"href":"https://github.com/arthurkulchenko/qna_think/pull/8"},"issue":{"href":"https://api.github.com/repos/arthurkulchenko/qna_think/issues/8"},"comments":{"href":"https://api.github.com/repos/arthurkulchenko/qna_think/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/arthurkulchenko/qna_think/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/arthurkulchenko/qna_think/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/arthurkulchenko/qna_think/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/arthurkulchenko/qna_think/statuses/4e70e5fab659cc298ccc25738d96fb536ddbc016"}}}}
{"actor":{"display_login":"vkurennov"}}