{"action":"created","comment":{"url":"https://api.github.com/repos/yuri-polessky/flashcards/pulls/comments/39569508","id":39569508,"diff_hunk":"@@ -60,14 +56,17 @@ def new_card_params\n   end\n \n   def process_correct_answer\n+    self.state = (typos_count == 0 ? :right : :mistyped)","path":"app/models/review.rb","position":22,"original_position":22,"commit_id":"a7e2e24dbeb37082a09dd589766850132b269bbb","original_commit_id":"a7e2e24dbeb37082a09dd589766850132b269bbb","user":{"login":"mkdev-mentor-1","id":11962702,"avatar_url":"https://avatars.githubusercontent.com/u/11962702?v=3","gravatar_id":"","url":"https://api.github.com/users/mkdev-mentor-1","html_url":"https://github.com/mkdev-mentor-1","followers_url":"https://api.github.com/users/mkdev-mentor-1/followers","following_url":"https://api.github.com/users/mkdev-mentor-1/following{/other_user}","gists_url":"https://api.github.com/users/mkdev-mentor-1/gists{/gist_id}","starred_url":"https://api.github.com/users/mkdev-mentor-1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkdev-mentor-1/subscriptions","organizations_url":"https://api.github.com/users/mkdev-mentor-1/orgs","repos_url":"https://api.github.com/users/mkdev-mentor-1/repos","events_url":"https://api.github.com/users/mkdev-mentor-1/events{/privacy}","received_events_url":"https://api.github.com/users/mkdev-mentor-1/received_events","type":"User","site_admin":false},"body":"точно везде `self.` нужен?","created_at":"2015-09-15T21:43:04Z","updated_at":"2015-09-15T21:43:04Z","html_url":"https://github.com/yuri-polessky/flashcards/pull/20#discussion_r39569508","pull_request_url":"https://api.github.com/repos/yuri-polessky/flashcards/pulls/20","_links":{"self":{"href":"https://api.github.com/repos/yuri-polessky/flashcards/pulls/comments/39569508"},"html":{"href":"https://github.com/yuri-polessky/flashcards/pull/20#discussion_r39569508"},"pull_request":{"href":"https://api.github.com/repos/yuri-polessky/flashcards/pulls/20"}}},"pull_request":{"url":"https://api.github.com/repos/yuri-polessky/flashcards/pulls/20","id":45072263,"html_url":"https://github.com/yuri-polessky/flashcards/pull/20","diff_url":"https://github.com/yuri-polessky/flashcards/pull/20.diff","patch_url":"https://github.com/yuri-polessky/flashcards/pull/20.patch","issue_url":"https://api.github.com/repos/yuri-polessky/flashcards/issues/20","number":20,"state":"open","locked":false,"title":"Add ajax to main page","user":{"login":"yuri-polessky","id":9403076,"avatar_url":"https://avatars.githubusercontent.com/u/9403076?v=3","gravatar_id":"","url":"https://api.github.com/users/yuri-polessky","html_url":"https://github.com/yuri-polessky","followers_url":"https://api.github.com/users/yuri-polessky/followers","following_url":"https://api.github.com/users/yuri-polessky/following{/other_user}","gists_url":"https://api.github.com/users/yuri-polessky/gists{/gist_id}","starred_url":"https://api.github.com/users/yuri-polessky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuri-polessky/subscriptions","organizations_url":"https://api.github.com/users/yuri-polessky/orgs","repos_url":"https://api.github.com/users/yuri-polessky/repos","events_url":"https://api.github.com/users/yuri-polessky/events{/privacy}","received_events_url":"https://api.github.com/users/yuri-polessky/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-15T16:35:19Z","updated_at":"2015-09-15T21:43:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b14a4c8d1d41a8ca9264ca2354593ec46728344b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/yuri-polessky/flashcards/pulls/20/commits","review_comments_url":"https://api.github.com/repos/yuri-polessky/flashcards/pulls/20/comments","review_comment_url":"https://api.github.com/repos/yuri-polessky/flashcards/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yuri-polessky/flashcards/issues/20/comments","statuses_url":"https://api.github.com/repos/yuri-polessky/flashcards/statuses/a7e2e24dbeb37082a09dd589766850132b269bbb","head":{"label":"yuri-polessky:nineteenth-task","ref":"nineteenth-task","sha":"a7e2e24dbeb37082a09dd589766850132b269bbb","user":{"login":"yuri-polessky","id":9403076,"avatar_url":"https://avatars.githubusercontent.com/u/9403076?v=3","gravatar_id":"","url":"https://api.github.com/users/yuri-polessky","html_url":"https://github.com/yuri-polessky","followers_url":"https://api.github.com/users/yuri-polessky/followers","following_url":"https://api.github.com/users/yuri-polessky/following{/other_user}","gists_url":"https://api.github.com/users/yuri-polessky/gists{/gist_id}","starred_url":"https://api.github.com/users/yuri-polessky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuri-polessky/subscriptions","organizations_url":"https://api.github.com/users/yuri-polessky/orgs","repos_url":"https://api.github.com/users/yuri-polessky/repos","events_url":"https://api.github.com/users/yuri-polessky/events{/privacy}","received_events_url":"https://api.github.com/users/yuri-polessky/received_events","type":"User","site_admin":false},"repo":{"id":41664877,"name":"flashcards","full_name":"yuri-polessky/flashcards","owner":{"login":"yuri-polessky","id":9403076,"avatar_url":"https://avatars.githubusercontent.com/u/9403076?v=3","gravatar_id":"","url":"https://api.github.com/users/yuri-polessky","html_url":"https://github.com/yuri-polessky","followers_url":"https://api.github.com/users/yuri-polessky/followers","following_url":"https://api.github.com/users/yuri-polessky/following{/other_user}","gists_url":"https://api.github.com/users/yuri-polessky/gists{/gist_id}","starred_url":"https://api.github.com/users/yuri-polessky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuri-polessky/subscriptions","organizations_url":"https://api.github.com/users/yuri-polessky/orgs","repos_url":"https://api.github.com/users/yuri-polessky/repos","events_url":"https://api.github.com/users/yuri-polessky/events{/privacy}","received_events_url":"https://api.github.com/users/yuri-polessky/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yuri-polessky/flashcards","description":"","fork":false,"url":"https://api.github.com/repos/yuri-polessky/flashcards","forks_url":"https://api.github.com/repos/yuri-polessky/flashcards/forks","keys_url":"https://api.github.com/repos/yuri-polessky/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yuri-polessky/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yuri-polessky/flashcards/teams","hooks_url":"https://api.github.com/repos/yuri-polessky/flashcards/hooks","issue_events_url":"https://api.github.com/repos/yuri-polessky/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/yuri-polessky/flashcards/events","assignees_url":"https://api.github.com/repos/yuri-polessky/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/yuri-polessky/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/yuri-polessky/flashcards/tags","blobs_url":"https://api.github.com/repos/yuri-polessky/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yuri-polessky/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yuri-polessky/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/yuri-polessky/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yuri-polessky/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/yuri-polessky/flashcards/languages","stargazers_url":"https://api.github.com/repos/yuri-polessky/flashcards/stargazers","contributors_url":"https://api.github.com/repos/yuri-polessky/flashcards/contributors","subscribers_url":"https://api.github.com/repos/yuri-polessky/flashcards/subscribers","subscription_url":"https://api.github.com/repos/yuri-polessky/flashcards/subscription","commits_url":"https://api.github.com/repos/yuri-polessky/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/yuri-polessky/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/yuri-polessky/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/yuri-polessky/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/yuri-polessky/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/yuri-polessky/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yuri-polessky/flashcards/merges","archive_url":"https://api.github.com/repos/yuri-polessky/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yuri-polessky/flashcards/downloads","issues_url":"https://api.github.com/repos/yuri-polessky/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/yuri-polessky/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/yuri-polessky/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/yuri-polessky/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yuri-polessky/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/yuri-polessky/flashcards/releases{/id}","created_at":"2015-08-31T08:35:45Z","updated_at":"2015-08-31T14:46:09Z","pushed_at":"2015-09-15T16:51:46Z","git_url":"git://github.com/yuri-polessky/flashcards.git","ssh_url":"git@github.com:yuri-polessky/flashcards.git","clone_url":"https://github.com/yuri-polessky/flashcards.git","svn_url":"https://github.com/yuri-polessky/flashcards","homepage":null,"size":508,"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":"yuri-polessky:master","ref":"master","sha":"d065e7e5f92ebaf84dad37fc12900fc8a7fd2508","user":{"login":"yuri-polessky","id":9403076,"avatar_url":"https://avatars.githubusercontent.com/u/9403076?v=3","gravatar_id":"","url":"https://api.github.com/users/yuri-polessky","html_url":"https://github.com/yuri-polessky","followers_url":"https://api.github.com/users/yuri-polessky/followers","following_url":"https://api.github.com/users/yuri-polessky/following{/other_user}","gists_url":"https://api.github.com/users/yuri-polessky/gists{/gist_id}","starred_url":"https://api.github.com/users/yuri-polessky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuri-polessky/subscriptions","organizations_url":"https://api.github.com/users/yuri-polessky/orgs","repos_url":"https://api.github.com/users/yuri-polessky/repos","events_url":"https://api.github.com/users/yuri-polessky/events{/privacy}","received_events_url":"https://api.github.com/users/yuri-polessky/received_events","type":"User","site_admin":false},"repo":{"id":41664877,"name":"flashcards","full_name":"yuri-polessky/flashcards","owner":{"login":"yuri-polessky","id":9403076,"avatar_url":"https://avatars.githubusercontent.com/u/9403076?v=3","gravatar_id":"","url":"https://api.github.com/users/yuri-polessky","html_url":"https://github.com/yuri-polessky","followers_url":"https://api.github.com/users/yuri-polessky/followers","following_url":"https://api.github.com/users/yuri-polessky/following{/other_user}","gists_url":"https://api.github.com/users/yuri-polessky/gists{/gist_id}","starred_url":"https://api.github.com/users/yuri-polessky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuri-polessky/subscriptions","organizations_url":"https://api.github.com/users/yuri-polessky/orgs","repos_url":"https://api.github.com/users/yuri-polessky/repos","events_url":"https://api.github.com/users/yuri-polessky/events{/privacy}","received_events_url":"https://api.github.com/users/yuri-polessky/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yuri-polessky/flashcards","description":"","fork":false,"url":"https://api.github.com/repos/yuri-polessky/flashcards","forks_url":"https://api.github.com/repos/yuri-polessky/flashcards/forks","keys_url":"https://api.github.com/repos/yuri-polessky/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yuri-polessky/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yuri-polessky/flashcards/teams","hooks_url":"https://api.github.com/repos/yuri-polessky/flashcards/hooks","issue_events_url":"https://api.github.com/repos/yuri-polessky/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/yuri-polessky/flashcards/events","assignees_url":"https://api.github.com/repos/yuri-polessky/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/yuri-polessky/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/yuri-polessky/flashcards/tags","blobs_url":"https://api.github.com/repos/yuri-polessky/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yuri-polessky/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yuri-polessky/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/yuri-polessky/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yuri-polessky/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/yuri-polessky/flashcards/languages","stargazers_url":"https://api.github.com/repos/yuri-polessky/flashcards/stargazers","contributors_url":"https://api.github.com/repos/yuri-polessky/flashcards/contributors","subscribers_url":"https://api.github.com/repos/yuri-polessky/flashcards/subscribers","subscription_url":"https://api.github.com/repos/yuri-polessky/flashcards/subscription","commits_url":"https://api.github.com/repos/yuri-polessky/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/yuri-polessky/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/yuri-polessky/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/yuri-polessky/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/yuri-polessky/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/yuri-polessky/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yuri-polessky/flashcards/merges","archive_url":"https://api.github.com/repos/yuri-polessky/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yuri-polessky/flashcards/downloads","issues_url":"https://api.github.com/repos/yuri-polessky/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/yuri-polessky/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/yuri-polessky/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/yuri-polessky/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yuri-polessky/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/yuri-polessky/flashcards/releases{/id}","created_at":"2015-08-31T08:35:45Z","updated_at":"2015-08-31T14:46:09Z","pushed_at":"2015-09-15T16:51:46Z","git_url":"git://github.com/yuri-polessky/flashcards.git","ssh_url":"git@github.com:yuri-polessky/flashcards.git","clone_url":"https://github.com/yuri-polessky/flashcards.git","svn_url":"https://github.com/yuri-polessky/flashcards","homepage":null,"size":508,"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/yuri-polessky/flashcards/pulls/20"},"html":{"href":"https://github.com/yuri-polessky/flashcards/pull/20"},"issue":{"href":"https://api.github.com/repos/yuri-polessky/flashcards/issues/20"},"comments":{"href":"https://api.github.com/repos/yuri-polessky/flashcards/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/yuri-polessky/flashcards/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/yuri-polessky/flashcards/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yuri-polessky/flashcards/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/yuri-polessky/flashcards/statuses/a7e2e24dbeb37082a09dd589766850132b269bbb"}}}}