{"action":"created","comment":{"url":"https://api.github.com/repos/arty88/questions/pulls/comments/92587441","pull_request_review_id":13103247,"id":92587441,"diff_hunk":"@@ -62,4 +63,12 @@ def update_with_password(params, *options)\n       super\n     end\n   end\n+\n+  def has_subscribe?(question)\n+    subscribes.where(question: question).any?","path":"app/models/user.rb","position":14,"original_position":14,"commit_id":"9227710ac21cc61cd80b6d93fa4723e4414131bb","original_commit_id":"9227710ac21cc61cd80b6d93fa4723e4414131bb","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":"лучше exists? используй, он не грузит данные в память, а проверяет на уровне базы наличие записи","created_at":"2016-12-15T11:00:57Z","updated_at":"2016-12-15T11:01:44Z","html_url":"https://github.com/arty88/questions/pull/15#discussion_r92587441","pull_request_url":"https://api.github.com/repos/arty88/questions/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/arty88/questions/pulls/comments/92587441"},"html":{"href":"https://github.com/arty88/questions/pull/15#discussion_r92587441"},"pull_request":{"href":"https://api.github.com/repos/arty88/questions/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/arty88/questions/pulls/15","id":98110132,"html_url":"https://github.com/arty88/questions/pull/15","diff_url":"https://github.com/arty88/questions/pull/15.diff","patch_url":"https://github.com/arty88/questions/pull/15.patch","issue_url":"https://api.github.com/repos/arty88/questions/issues/15","number":15,"state":"open","locked":false,"title":"Part 17","user":{"login":"arty88","id":1897405,"avatar_url":"https://avatars.githubusercontent.com/u/1897405?v=3","gravatar_id":"","url":"https://api.github.com/users/arty88","html_url":"https://github.com/arty88","followers_url":"https://api.github.com/users/arty88/followers","following_url":"https://api.github.com/users/arty88/following{/other_user}","gists_url":"https://api.github.com/users/arty88/gists{/gist_id}","starred_url":"https://api.github.com/users/arty88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arty88/subscriptions","organizations_url":"https://api.github.com/users/arty88/orgs","repos_url":"https://api.github.com/users/arty88/repos","events_url":"https://api.github.com/users/arty88/events{/privacy}","received_events_url":"https://api.github.com/users/arty88/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-12-15T09:02:08Z","updated_at":"2016-12-15T11:01:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f2270367a6f616234c89251f50426b3d968748af","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/arty88/questions/pulls/15/commits","review_comments_url":"https://api.github.com/repos/arty88/questions/pulls/15/comments","review_comment_url":"https://api.github.com/repos/arty88/questions/pulls/comments{/number}","comments_url":"https://api.github.com/repos/arty88/questions/issues/15/comments","statuses_url":"https://api.github.com/repos/arty88/questions/statuses/9227710ac21cc61cd80b6d93fa4723e4414131bb","head":{"label":"arty88:part-17-bg_jobs","ref":"part-17-bg_jobs","sha":"9227710ac21cc61cd80b6d93fa4723e4414131bb","user":{"login":"arty88","id":1897405,"avatar_url":"https://avatars.githubusercontent.com/u/1897405?v=3","gravatar_id":"","url":"https://api.github.com/users/arty88","html_url":"https://github.com/arty88","followers_url":"https://api.github.com/users/arty88/followers","following_url":"https://api.github.com/users/arty88/following{/other_user}","gists_url":"https://api.github.com/users/arty88/gists{/gist_id}","starred_url":"https://api.github.com/users/arty88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arty88/subscriptions","organizations_url":"https://api.github.com/users/arty88/orgs","repos_url":"https://api.github.com/users/arty88/repos","events_url":"https://api.github.com/users/arty88/events{/privacy}","received_events_url":"https://api.github.com/users/arty88/received_events","type":"User","site_admin":false},"repo":{"id":70570294,"name":"questions","full_name":"arty88/questions","owner":{"login":"arty88","id":1897405,"avatar_url":"https://avatars.githubusercontent.com/u/1897405?v=3","gravatar_id":"","url":"https://api.github.com/users/arty88","html_url":"https://github.com/arty88","followers_url":"https://api.github.com/users/arty88/followers","following_url":"https://api.github.com/users/arty88/following{/other_user}","gists_url":"https://api.github.com/users/arty88/gists{/gist_id}","starred_url":"https://api.github.com/users/arty88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arty88/subscriptions","organizations_url":"https://api.github.com/users/arty88/orgs","repos_url":"https://api.github.com/users/arty88/repos","events_url":"https://api.github.com/users/arty88/events{/privacy}","received_events_url":"https://api.github.com/users/arty88/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/arty88/questions","description":" Курс от Thinknetica, профессиональная разработка на Ruby on Rails","fork":false,"url":"https://api.github.com/repos/arty88/questions","forks_url":"https://api.github.com/repos/arty88/questions/forks","keys_url":"https://api.github.com/repos/arty88/questions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/arty88/questions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/arty88/questions/teams","hooks_url":"https://api.github.com/repos/arty88/questions/hooks","issue_events_url":"https://api.github.com/repos/arty88/questions/issues/events{/number}","events_url":"https://api.github.com/repos/arty88/questions/events","assignees_url":"https://api.github.com/repos/arty88/questions/assignees{/user}","branches_url":"https://api.github.com/repos/arty88/questions/branches{/branch}","tags_url":"https://api.github.com/repos/arty88/questions/tags","blobs_url":"https://api.github.com/repos/arty88/questions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/arty88/questions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/arty88/questions/git/refs{/sha}","trees_url":"https://api.github.com/repos/arty88/questions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/arty88/questions/statuses/{sha}","languages_url":"https://api.github.com/repos/arty88/questions/languages","stargazers_url":"https://api.github.com/repos/arty88/questions/stargazers","contributors_url":"https://api.github.com/repos/arty88/questions/contributors","subscribers_url":"https://api.github.com/repos/arty88/questions/subscribers","subscription_url":"https://api.github.com/repos/arty88/questions/subscription","commits_url":"https://api.github.com/repos/arty88/questions/commits{/sha}","git_commits_url":"https://api.github.com/repos/arty88/questions/git/commits{/sha}","comments_url":"https://api.github.com/repos/arty88/questions/comments{/number}","issue_comment_url":"https://api.github.com/repos/arty88/questions/issues/comments{/number}","contents_url":"https://api.github.com/repos/arty88/questions/contents/{+path}","compare_url":"https://api.github.com/repos/arty88/questions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/arty88/questions/merges","archive_url":"https://api.github.com/repos/arty88/questions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/arty88/questions/downloads","issues_url":"https://api.github.com/repos/arty88/questions/issues{/number}","pulls_url":"https://api.github.com/repos/arty88/questions/pulls{/number}","milestones_url":"https://api.github.com/repos/arty88/questions/milestones{/number}","notifications_url":"https://api.github.com/repos/arty88/questions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/arty88/questions/labels{/name}","releases_url":"https://api.github.com/repos/arty88/questions/releases{/id}","deployments_url":"https://api.github.com/repos/arty88/questions/deployments","created_at":"2016-10-11T08:02:51Z","updated_at":"2016-10-11T08:03:29Z","pushed_at":"2016-12-15T09:02:08Z","git_url":"git://github.com/arty88/questions.git","ssh_url":"git@github.com:arty88/questions.git","clone_url":"https://github.com/arty88/questions.git","svn_url":"https://github.com/arty88/questions","homepage":null,"size":824,"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":"arty88:master","ref":"master","sha":"9c8d92eb990b1de41a9d330aa6ba8470db006216","user":{"login":"arty88","id":1897405,"avatar_url":"https://avatars.githubusercontent.com/u/1897405?v=3","gravatar_id":"","url":"https://api.github.com/users/arty88","html_url":"https://github.com/arty88","followers_url":"https://api.github.com/users/arty88/followers","following_url":"https://api.github.com/users/arty88/following{/other_user}","gists_url":"https://api.github.com/users/arty88/gists{/gist_id}","starred_url":"https://api.github.com/users/arty88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arty88/subscriptions","organizations_url":"https://api.github.com/users/arty88/orgs","repos_url":"https://api.github.com/users/arty88/repos","events_url":"https://api.github.com/users/arty88/events{/privacy}","received_events_url":"https://api.github.com/users/arty88/received_events","type":"User","site_admin":false},"repo":{"id":70570294,"name":"questions","full_name":"arty88/questions","owner":{"login":"arty88","id":1897405,"avatar_url":"https://avatars.githubusercontent.com/u/1897405?v=3","gravatar_id":"","url":"https://api.github.com/users/arty88","html_url":"https://github.com/arty88","followers_url":"https://api.github.com/users/arty88/followers","following_url":"https://api.github.com/users/arty88/following{/other_user}","gists_url":"https://api.github.com/users/arty88/gists{/gist_id}","starred_url":"https://api.github.com/users/arty88/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arty88/subscriptions","organizations_url":"https://api.github.com/users/arty88/orgs","repos_url":"https://api.github.com/users/arty88/repos","events_url":"https://api.github.com/users/arty88/events{/privacy}","received_events_url":"https://api.github.com/users/arty88/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/arty88/questions","description":" Курс от Thinknetica, профессиональная разработка на Ruby on Rails","fork":false,"url":"https://api.github.com/repos/arty88/questions","forks_url":"https://api.github.com/repos/arty88/questions/forks","keys_url":"https://api.github.com/repos/arty88/questions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/arty88/questions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/arty88/questions/teams","hooks_url":"https://api.github.com/repos/arty88/questions/hooks","issue_events_url":"https://api.github.com/repos/arty88/questions/issues/events{/number}","events_url":"https://api.github.com/repos/arty88/questions/events","assignees_url":"https://api.github.com/repos/arty88/questions/assignees{/user}","branches_url":"https://api.github.com/repos/arty88/questions/branches{/branch}","tags_url":"https://api.github.com/repos/arty88/questions/tags","blobs_url":"https://api.github.com/repos/arty88/questions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/arty88/questions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/arty88/questions/git/refs{/sha}","trees_url":"https://api.github.com/repos/arty88/questions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/arty88/questions/statuses/{sha}","languages_url":"https://api.github.com/repos/arty88/questions/languages","stargazers_url":"https://api.github.com/repos/arty88/questions/stargazers","contributors_url":"https://api.github.com/repos/arty88/questions/contributors","subscribers_url":"https://api.github.com/repos/arty88/questions/subscribers","subscription_url":"https://api.github.com/repos/arty88/questions/subscription","commits_url":"https://api.github.com/repos/arty88/questions/commits{/sha}","git_commits_url":"https://api.github.com/repos/arty88/questions/git/commits{/sha}","comments_url":"https://api.github.com/repos/arty88/questions/comments{/number}","issue_comment_url":"https://api.github.com/repos/arty88/questions/issues/comments{/number}","contents_url":"https://api.github.com/repos/arty88/questions/contents/{+path}","compare_url":"https://api.github.com/repos/arty88/questions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/arty88/questions/merges","archive_url":"https://api.github.com/repos/arty88/questions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/arty88/questions/downloads","issues_url":"https://api.github.com/repos/arty88/questions/issues{/number}","pulls_url":"https://api.github.com/repos/arty88/questions/pulls{/number}","milestones_url":"https://api.github.com/repos/arty88/questions/milestones{/number}","notifications_url":"https://api.github.com/repos/arty88/questions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/arty88/questions/labels{/name}","releases_url":"https://api.github.com/repos/arty88/questions/releases{/id}","deployments_url":"https://api.github.com/repos/arty88/questions/deployments","created_at":"2016-10-11T08:02:51Z","updated_at":"2016-10-11T08:03:29Z","pushed_at":"2016-12-15T09:02:08Z","git_url":"git://github.com/arty88/questions.git","ssh_url":"git@github.com:arty88/questions.git","clone_url":"https://github.com/arty88/questions.git","svn_url":"https://github.com/arty88/questions","homepage":null,"size":824,"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/arty88/questions/pulls/15"},"html":{"href":"https://github.com/arty88/questions/pull/15"},"issue":{"href":"https://api.github.com/repos/arty88/questions/issues/15"},"comments":{"href":"https://api.github.com/repos/arty88/questions/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/arty88/questions/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/arty88/questions/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/arty88/questions/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/arty88/questions/statuses/9227710ac21cc61cd80b6d93fa4723e4414131bb"}}}}
{"actor":{"display_login":"vkurennov"}}