{"action":"created","comment":{"url":"https://api.github.com/repos/ar4ben/flashcards/pulls/comments/87765218","pull_request_review_id":8362900,"id":87765218,"diff_hunk":"@@ -45,4 +42,9 @@ def destroy\n   def cards_params\n     params.require(:card).permit(:original_text, :translated_text, :review_date)\n   end\n+\n+  def check_user","path":"app/controllers/cards_controller.rb","position":51,"original_position":51,"commit_id":"456eebcdcbc94ee5d933537a9403e8845da11987","original_commit_id":"456eebcdcbc94ee5d933537a9403e8845da11987","user":{"login":"IvanShamatov","id":160239,"avatar_url":"https://avatars.githubusercontent.com/u/160239?v=3","gravatar_id":"","url":"https://api.github.com/users/IvanShamatov","html_url":"https://github.com/IvanShamatov","followers_url":"https://api.github.com/users/IvanShamatov/followers","following_url":"https://api.github.com/users/IvanShamatov/following{/other_user}","gists_url":"https://api.github.com/users/IvanShamatov/gists{/gist_id}","starred_url":"https://api.github.com/users/IvanShamatov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IvanShamatov/subscriptions","organizations_url":"https://api.github.com/users/IvanShamatov/orgs","repos_url":"https://api.github.com/users/IvanShamatov/repos","events_url":"https://api.github.com/users/IvanShamatov/events{/privacy}","received_events_url":"https://api.github.com/users/IvanShamatov/received_events","type":"User","site_admin":false},"body":"от этого метода можно избавиться, если ты просто переопределишь метод \r\nset_card, который служит для DRY контроллера просто как \r\n@card = current_user.cards.find(params[:id])","created_at":"2016-11-14T09:39:27Z","updated_at":"2016-11-14T09:39:27Z","html_url":"https://github.com/ar4ben/flashcards/pull/8#discussion_r87765218","pull_request_url":"https://api.github.com/repos/ar4ben/flashcards/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/ar4ben/flashcards/pulls/comments/87765218"},"html":{"href":"https://github.com/ar4ben/flashcards/pull/8#discussion_r87765218"},"pull_request":{"href":"https://api.github.com/repos/ar4ben/flashcards/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/ar4ben/flashcards/pulls/8","id":93493619,"html_url":"https://github.com/ar4ben/flashcards/pull/8","diff_url":"https://github.com/ar4ben/flashcards/pull/8.diff","patch_url":"https://github.com/ar4ben/flashcards/pull/8.patch","issue_url":"https://api.github.com/repos/ar4ben/flashcards/issues/8","number":8,"state":"open","locked":false,"title":"Task without OAuth + 1 broken test","user":{"login":"ar4ben","id":14436084,"avatar_url":"https://avatars.githubusercontent.com/u/14436084?v=3","gravatar_id":"","url":"https://api.github.com/users/ar4ben","html_url":"https://github.com/ar4ben","followers_url":"https://api.github.com/users/ar4ben/followers","following_url":"https://api.github.com/users/ar4ben/following{/other_user}","gists_url":"https://api.github.com/users/ar4ben/gists{/gist_id}","starred_url":"https://api.github.com/users/ar4ben/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ar4ben/subscriptions","organizations_url":"https://api.github.com/users/ar4ben/orgs","repos_url":"https://api.github.com/users/ar4ben/repos","events_url":"https://api.github.com/users/ar4ben/events{/privacy}","received_events_url":"https://api.github.com/users/ar4ben/received_events","type":"User","site_admin":false},"body":"\r\n    Где хранится залогиненный пользователь?\r\nв сесии\r\n    В каком виде хранятся пароли в базе данных?\r\nв виде хэша\r\n","created_at":"2016-11-14T00:14:46Z","updated_at":"2016-11-14T09:54:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2012349f11cae1817b3da8f09946477783a2d1c4","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ar4ben/flashcards/pulls/8/commits","review_comments_url":"https://api.github.com/repos/ar4ben/flashcards/pulls/8/comments","review_comment_url":"https://api.github.com/repos/ar4ben/flashcards/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ar4ben/flashcards/issues/8/comments","statuses_url":"https://api.github.com/repos/ar4ben/flashcards/statuses/456eebcdcbc94ee5d933537a9403e8845da11987","head":{"label":"ar4ben:ninth-task","ref":"ninth-task","sha":"456eebcdcbc94ee5d933537a9403e8845da11987","user":{"login":"ar4ben","id":14436084,"avatar_url":"https://avatars.githubusercontent.com/u/14436084?v=3","gravatar_id":"","url":"https://api.github.com/users/ar4ben","html_url":"https://github.com/ar4ben","followers_url":"https://api.github.com/users/ar4ben/followers","following_url":"https://api.github.com/users/ar4ben/following{/other_user}","gists_url":"https://api.github.com/users/ar4ben/gists{/gist_id}","starred_url":"https://api.github.com/users/ar4ben/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ar4ben/subscriptions","organizations_url":"https://api.github.com/users/ar4ben/orgs","repos_url":"https://api.github.com/users/ar4ben/repos","events_url":"https://api.github.com/users/ar4ben/events{/privacy}","received_events_url":"https://api.github.com/users/ar4ben/received_events","type":"User","site_admin":false},"repo":{"id":66774918,"name":"flashcards","full_name":"ar4ben/flashcards","owner":{"login":"ar4ben","id":14436084,"avatar_url":"https://avatars.githubusercontent.com/u/14436084?v=3","gravatar_id":"","url":"https://api.github.com/users/ar4ben","html_url":"https://github.com/ar4ben","followers_url":"https://api.github.com/users/ar4ben/followers","following_url":"https://api.github.com/users/ar4ben/following{/other_user}","gists_url":"https://api.github.com/users/ar4ben/gists{/gist_id}","starred_url":"https://api.github.com/users/ar4ben/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ar4ben/subscriptions","organizations_url":"https://api.github.com/users/ar4ben/orgs","repos_url":"https://api.github.com/users/ar4ben/repos","events_url":"https://api.github.com/users/ar4ben/events{/privacy}","received_events_url":"https://api.github.com/users/ar4ben/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ar4ben/flashcards","description":null,"fork":false,"url":"https://api.github.com/repos/ar4ben/flashcards","forks_url":"https://api.github.com/repos/ar4ben/flashcards/forks","keys_url":"https://api.github.com/repos/ar4ben/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ar4ben/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ar4ben/flashcards/teams","hooks_url":"https://api.github.com/repos/ar4ben/flashcards/hooks","issue_events_url":"https://api.github.com/repos/ar4ben/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/ar4ben/flashcards/events","assignees_url":"https://api.github.com/repos/ar4ben/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/ar4ben/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/ar4ben/flashcards/tags","blobs_url":"https://api.github.com/repos/ar4ben/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ar4ben/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ar4ben/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/ar4ben/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ar4ben/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/ar4ben/flashcards/languages","stargazers_url":"https://api.github.com/repos/ar4ben/flashcards/stargazers","contributors_url":"https://api.github.com/repos/ar4ben/flashcards/contributors","subscribers_url":"https://api.github.com/repos/ar4ben/flashcards/subscribers","subscription_url":"https://api.github.com/repos/ar4ben/flashcards/subscription","commits_url":"https://api.github.com/repos/ar4ben/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/ar4ben/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/ar4ben/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/ar4ben/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/ar4ben/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/ar4ben/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ar4ben/flashcards/merges","archive_url":"https://api.github.com/repos/ar4ben/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ar4ben/flashcards/downloads","issues_url":"https://api.github.com/repos/ar4ben/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/ar4ben/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/ar4ben/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/ar4ben/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ar4ben/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/ar4ben/flashcards/releases{/id}","deployments_url":"https://api.github.com/repos/ar4ben/flashcards/deployments","created_at":"2016-08-28T15:12:24Z","updated_at":"2016-09-01T05:33:04Z","pushed_at":"2016-11-14T00:14:47Z","git_url":"git://github.com/ar4ben/flashcards.git","ssh_url":"git@github.com:ar4ben/flashcards.git","clone_url":"https://github.com/ar4ben/flashcards.git","svn_url":"https://github.com/ar4ben/flashcards","homepage":null,"size":105,"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":"ar4ben:master","ref":"master","sha":"b0eba72473a4f4f2c2f9dda4a7034e34de64ae65","user":{"login":"ar4ben","id":14436084,"avatar_url":"https://avatars.githubusercontent.com/u/14436084?v=3","gravatar_id":"","url":"https://api.github.com/users/ar4ben","html_url":"https://github.com/ar4ben","followers_url":"https://api.github.com/users/ar4ben/followers","following_url":"https://api.github.com/users/ar4ben/following{/other_user}","gists_url":"https://api.github.com/users/ar4ben/gists{/gist_id}","starred_url":"https://api.github.com/users/ar4ben/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ar4ben/subscriptions","organizations_url":"https://api.github.com/users/ar4ben/orgs","repos_url":"https://api.github.com/users/ar4ben/repos","events_url":"https://api.github.com/users/ar4ben/events{/privacy}","received_events_url":"https://api.github.com/users/ar4ben/received_events","type":"User","site_admin":false},"repo":{"id":66774918,"name":"flashcards","full_name":"ar4ben/flashcards","owner":{"login":"ar4ben","id":14436084,"avatar_url":"https://avatars.githubusercontent.com/u/14436084?v=3","gravatar_id":"","url":"https://api.github.com/users/ar4ben","html_url":"https://github.com/ar4ben","followers_url":"https://api.github.com/users/ar4ben/followers","following_url":"https://api.github.com/users/ar4ben/following{/other_user}","gists_url":"https://api.github.com/users/ar4ben/gists{/gist_id}","starred_url":"https://api.github.com/users/ar4ben/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ar4ben/subscriptions","organizations_url":"https://api.github.com/users/ar4ben/orgs","repos_url":"https://api.github.com/users/ar4ben/repos","events_url":"https://api.github.com/users/ar4ben/events{/privacy}","received_events_url":"https://api.github.com/users/ar4ben/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ar4ben/flashcards","description":null,"fork":false,"url":"https://api.github.com/repos/ar4ben/flashcards","forks_url":"https://api.github.com/repos/ar4ben/flashcards/forks","keys_url":"https://api.github.com/repos/ar4ben/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ar4ben/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ar4ben/flashcards/teams","hooks_url":"https://api.github.com/repos/ar4ben/flashcards/hooks","issue_events_url":"https://api.github.com/repos/ar4ben/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/ar4ben/flashcards/events","assignees_url":"https://api.github.com/repos/ar4ben/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/ar4ben/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/ar4ben/flashcards/tags","blobs_url":"https://api.github.com/repos/ar4ben/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ar4ben/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ar4ben/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/ar4ben/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ar4ben/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/ar4ben/flashcards/languages","stargazers_url":"https://api.github.com/repos/ar4ben/flashcards/stargazers","contributors_url":"https://api.github.com/repos/ar4ben/flashcards/contributors","subscribers_url":"https://api.github.com/repos/ar4ben/flashcards/subscribers","subscription_url":"https://api.github.com/repos/ar4ben/flashcards/subscription","commits_url":"https://api.github.com/repos/ar4ben/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/ar4ben/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/ar4ben/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/ar4ben/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/ar4ben/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/ar4ben/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ar4ben/flashcards/merges","archive_url":"https://api.github.com/repos/ar4ben/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ar4ben/flashcards/downloads","issues_url":"https://api.github.com/repos/ar4ben/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/ar4ben/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/ar4ben/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/ar4ben/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ar4ben/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/ar4ben/flashcards/releases{/id}","deployments_url":"https://api.github.com/repos/ar4ben/flashcards/deployments","created_at":"2016-08-28T15:12:24Z","updated_at":"2016-09-01T05:33:04Z","pushed_at":"2016-11-14T00:14:47Z","git_url":"git://github.com/ar4ben/flashcards.git","ssh_url":"git@github.com:ar4ben/flashcards.git","clone_url":"https://github.com/ar4ben/flashcards.git","svn_url":"https://github.com/ar4ben/flashcards","homepage":null,"size":105,"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/ar4ben/flashcards/pulls/8"},"html":{"href":"https://github.com/ar4ben/flashcards/pull/8"},"issue":{"href":"https://api.github.com/repos/ar4ben/flashcards/issues/8"},"comments":{"href":"https://api.github.com/repos/ar4ben/flashcards/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/ar4ben/flashcards/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/ar4ben/flashcards/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ar4ben/flashcards/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/ar4ben/flashcards/statuses/456eebcdcbc94ee5d933537a9403e8845da11987"}}}}
{"actor":{"display_login":"IvanShamatov"}}