{"action":"created","comment":{"url":"https://api.github.com/repos/hyperoslo/tasuku/pulls/comments/41669534","id":41669534,"diff_hunk":"@@ -15,7 +15,13 @@ def question\n         votes.first.option.question if votes.any?\n       end\n \n-      request is: :question\n+      def request\n+        if question.quizzes.present?\n+          question.quizzes.first","path":"app/models/tasuku/taskables/question/answer.rb","position":7,"original_position":7,"commit_id":"47122f257b112a33070ded196625cf013bebc24a","original_commit_id":"47122f257b112a33070ded196625cf013bebc24a","user":{"login":"jgorset","id":195266,"avatar_url":"https://avatars.githubusercontent.com/u/195266?v=3","gravatar_id":"","url":"https://api.github.com/users/jgorset","html_url":"https://github.com/jgorset","followers_url":"https://api.github.com/users/jgorset/followers","following_url":"https://api.github.com/users/jgorset/following{/other_user}","gists_url":"https://api.github.com/users/jgorset/gists{/gist_id}","starred_url":"https://api.github.com/users/jgorset/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgorset/subscriptions","organizations_url":"https://api.github.com/users/jgorset/orgs","repos_url":"https://api.github.com/users/jgorset/repos","events_url":"https://api.github.com/users/jgorset/events{/privacy}","received_events_url":"https://api.github.com/users/jgorset/received_events","type":"User","site_admin":false},"body":"This smells a bit, too.","created_at":"2015-10-09T19:33:48Z","updated_at":"2015-10-09T19:33:48Z","html_url":"https://github.com/hyperoslo/tasuku/pull/74#discussion_r41669534","pull_request_url":"https://api.github.com/repos/hyperoslo/tasuku/pulls/74","_links":{"self":{"href":"https://api.github.com/repos/hyperoslo/tasuku/pulls/comments/41669534"},"html":{"href":"https://github.com/hyperoslo/tasuku/pull/74#discussion_r41669534"},"pull_request":{"href":"https://api.github.com/repos/hyperoslo/tasuku/pulls/74"}}},"pull_request":{"url":"https://api.github.com/repos/hyperoslo/tasuku/pulls/74","id":47286619,"html_url":"https://github.com/hyperoslo/tasuku/pull/74","diff_url":"https://github.com/hyperoslo/tasuku/pull/74.diff","patch_url":"https://github.com/hyperoslo/tasuku/pull/74.patch","issue_url":"https://api.github.com/repos/hyperoslo/tasuku/issues/74","number":74,"state":"open","locked":false,"title":"Fix request method for answer","user":{"login":"toothfairy","id":725806,"avatar_url":"https://avatars.githubusercontent.com/u/725806?v=3","gravatar_id":"","url":"https://api.github.com/users/toothfairy","html_url":"https://github.com/toothfairy","followers_url":"https://api.github.com/users/toothfairy/followers","following_url":"https://api.github.com/users/toothfairy/following{/other_user}","gists_url":"https://api.github.com/users/toothfairy/gists{/gist_id}","starred_url":"https://api.github.com/users/toothfairy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toothfairy/subscriptions","organizations_url":"https://api.github.com/users/toothfairy/orgs","repos_url":"https://api.github.com/users/toothfairy/repos","events_url":"https://api.github.com/users/toothfairy/events{/privacy}","received_events_url":"https://api.github.com/users/toothfairy/received_events","type":"User","site_admin":false},"body":"When answer to quiz questions, request for answer should be quiz","created_at":"2015-10-09T15:37:16Z","updated_at":"2015-10-09T19:33:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"48f23a9cfd8cb7c2104b66c6fb33a8738278f1f6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hyperoslo/tasuku/pulls/74/commits","review_comments_url":"https://api.github.com/repos/hyperoslo/tasuku/pulls/74/comments","review_comment_url":"https://api.github.com/repos/hyperoslo/tasuku/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hyperoslo/tasuku/issues/74/comments","statuses_url":"https://api.github.com/repos/hyperoslo/tasuku/statuses/47122f257b112a33070ded196625cf013bebc24a","head":{"label":"hyperoslo:fix/quiz-request","ref":"fix/quiz-request","sha":"47122f257b112a33070ded196625cf013bebc24a","user":{"login":"hyperoslo","id":1340892,"avatar_url":"https://avatars.githubusercontent.com/u/1340892?v=3","gravatar_id":"","url":"https://api.github.com/users/hyperoslo","html_url":"https://github.com/hyperoslo","followers_url":"https://api.github.com/users/hyperoslo/followers","following_url":"https://api.github.com/users/hyperoslo/following{/other_user}","gists_url":"https://api.github.com/users/hyperoslo/gists{/gist_id}","starred_url":"https://api.github.com/users/hyperoslo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyperoslo/subscriptions","organizations_url":"https://api.github.com/users/hyperoslo/orgs","repos_url":"https://api.github.com/users/hyperoslo/repos","events_url":"https://api.github.com/users/hyperoslo/events{/privacy}","received_events_url":"https://api.github.com/users/hyperoslo/received_events","type":"Organization","site_admin":false},"repo":{"id":17780262,"name":"tasuku","full_name":"hyperoslo/tasuku","owner":{"login":"hyperoslo","id":1340892,"avatar_url":"https://avatars.githubusercontent.com/u/1340892?v=3","gravatar_id":"","url":"https://api.github.com/users/hyperoslo","html_url":"https://github.com/hyperoslo","followers_url":"https://api.github.com/users/hyperoslo/followers","following_url":"https://api.github.com/users/hyperoslo/following{/other_user}","gists_url":"https://api.github.com/users/hyperoslo/gists{/gist_id}","starred_url":"https://api.github.com/users/hyperoslo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyperoslo/subscriptions","organizations_url":"https://api.github.com/users/hyperoslo/orgs","repos_url":"https://api.github.com/users/hyperoslo/repos","events_url":"https://api.github.com/users/hyperoslo/events{/privacy}","received_events_url":"https://api.github.com/users/hyperoslo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hyperoslo/tasuku","description":"Tasks for Ruby on Rails","fork":false,"url":"https://api.github.com/repos/hyperoslo/tasuku","forks_url":"https://api.github.com/repos/hyperoslo/tasuku/forks","keys_url":"https://api.github.com/repos/hyperoslo/tasuku/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hyperoslo/tasuku/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hyperoslo/tasuku/teams","hooks_url":"https://api.github.com/repos/hyperoslo/tasuku/hooks","issue_events_url":"https://api.github.com/repos/hyperoslo/tasuku/issues/events{/number}","events_url":"https://api.github.com/repos/hyperoslo/tasuku/events","assignees_url":"https://api.github.com/repos/hyperoslo/tasuku/assignees{/user}","branches_url":"https://api.github.com/repos/hyperoslo/tasuku/branches{/branch}","tags_url":"https://api.github.com/repos/hyperoslo/tasuku/tags","blobs_url":"https://api.github.com/repos/hyperoslo/tasuku/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hyperoslo/tasuku/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hyperoslo/tasuku/git/refs{/sha}","trees_url":"https://api.github.com/repos/hyperoslo/tasuku/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hyperoslo/tasuku/statuses/{sha}","languages_url":"https://api.github.com/repos/hyperoslo/tasuku/languages","stargazers_url":"https://api.github.com/repos/hyperoslo/tasuku/stargazers","contributors_url":"https://api.github.com/repos/hyperoslo/tasuku/contributors","subscribers_url":"https://api.github.com/repos/hyperoslo/tasuku/subscribers","subscription_url":"https://api.github.com/repos/hyperoslo/tasuku/subscription","commits_url":"https://api.github.com/repos/hyperoslo/tasuku/commits{/sha}","git_commits_url":"https://api.github.com/repos/hyperoslo/tasuku/git/commits{/sha}","comments_url":"https://api.github.com/repos/hyperoslo/tasuku/comments{/number}","issue_comment_url":"https://api.github.com/repos/hyperoslo/tasuku/issues/comments{/number}","contents_url":"https://api.github.com/repos/hyperoslo/tasuku/contents/{+path}","compare_url":"https://api.github.com/repos/hyperoslo/tasuku/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hyperoslo/tasuku/merges","archive_url":"https://api.github.com/repos/hyperoslo/tasuku/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hyperoslo/tasuku/downloads","issues_url":"https://api.github.com/repos/hyperoslo/tasuku/issues{/number}","pulls_url":"https://api.github.com/repos/hyperoslo/tasuku/pulls{/number}","milestones_url":"https://api.github.com/repos/hyperoslo/tasuku/milestones{/number}","notifications_url":"https://api.github.com/repos/hyperoslo/tasuku/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hyperoslo/tasuku/labels{/name}","releases_url":"https://api.github.com/repos/hyperoslo/tasuku/releases{/id}","created_at":"2014-03-15T16:51:12Z","updated_at":"2015-05-19T12:15:34Z","pushed_at":"2015-10-09T15:37:17Z","git_url":"git://github.com/hyperoslo/tasuku.git","ssh_url":"git@github.com:hyperoslo/tasuku.git","clone_url":"https://github.com/hyperoslo/tasuku.git","svn_url":"https://github.com/hyperoslo/tasuku","homepage":"http://opensource.hyper.no/tasuku/","size":6910,"stargazers_count":6,"watchers_count":6,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"open_issues_count":6,"forks":2,"open_issues":6,"watchers":6,"default_branch":"master"}},"base":{"label":"hyperoslo:master","ref":"master","sha":"1358f879fe7e46281e63eaf017a8ef0ca1023695","user":{"login":"hyperoslo","id":1340892,"avatar_url":"https://avatars.githubusercontent.com/u/1340892?v=3","gravatar_id":"","url":"https://api.github.com/users/hyperoslo","html_url":"https://github.com/hyperoslo","followers_url":"https://api.github.com/users/hyperoslo/followers","following_url":"https://api.github.com/users/hyperoslo/following{/other_user}","gists_url":"https://api.github.com/users/hyperoslo/gists{/gist_id}","starred_url":"https://api.github.com/users/hyperoslo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyperoslo/subscriptions","organizations_url":"https://api.github.com/users/hyperoslo/orgs","repos_url":"https://api.github.com/users/hyperoslo/repos","events_url":"https://api.github.com/users/hyperoslo/events{/privacy}","received_events_url":"https://api.github.com/users/hyperoslo/received_events","type":"Organization","site_admin":false},"repo":{"id":17780262,"name":"tasuku","full_name":"hyperoslo/tasuku","owner":{"login":"hyperoslo","id":1340892,"avatar_url":"https://avatars.githubusercontent.com/u/1340892?v=3","gravatar_id":"","url":"https://api.github.com/users/hyperoslo","html_url":"https://github.com/hyperoslo","followers_url":"https://api.github.com/users/hyperoslo/followers","following_url":"https://api.github.com/users/hyperoslo/following{/other_user}","gists_url":"https://api.github.com/users/hyperoslo/gists{/gist_id}","starred_url":"https://api.github.com/users/hyperoslo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyperoslo/subscriptions","organizations_url":"https://api.github.com/users/hyperoslo/orgs","repos_url":"https://api.github.com/users/hyperoslo/repos","events_url":"https://api.github.com/users/hyperoslo/events{/privacy}","received_events_url":"https://api.github.com/users/hyperoslo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hyperoslo/tasuku","description":"Tasks for Ruby on Rails","fork":false,"url":"https://api.github.com/repos/hyperoslo/tasuku","forks_url":"https://api.github.com/repos/hyperoslo/tasuku/forks","keys_url":"https://api.github.com/repos/hyperoslo/tasuku/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hyperoslo/tasuku/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hyperoslo/tasuku/teams","hooks_url":"https://api.github.com/repos/hyperoslo/tasuku/hooks","issue_events_url":"https://api.github.com/repos/hyperoslo/tasuku/issues/events{/number}","events_url":"https://api.github.com/repos/hyperoslo/tasuku/events","assignees_url":"https://api.github.com/repos/hyperoslo/tasuku/assignees{/user}","branches_url":"https://api.github.com/repos/hyperoslo/tasuku/branches{/branch}","tags_url":"https://api.github.com/repos/hyperoslo/tasuku/tags","blobs_url":"https://api.github.com/repos/hyperoslo/tasuku/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hyperoslo/tasuku/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hyperoslo/tasuku/git/refs{/sha}","trees_url":"https://api.github.com/repos/hyperoslo/tasuku/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hyperoslo/tasuku/statuses/{sha}","languages_url":"https://api.github.com/repos/hyperoslo/tasuku/languages","stargazers_url":"https://api.github.com/repos/hyperoslo/tasuku/stargazers","contributors_url":"https://api.github.com/repos/hyperoslo/tasuku/contributors","subscribers_url":"https://api.github.com/repos/hyperoslo/tasuku/subscribers","subscription_url":"https://api.github.com/repos/hyperoslo/tasuku/subscription","commits_url":"https://api.github.com/repos/hyperoslo/tasuku/commits{/sha}","git_commits_url":"https://api.github.com/repos/hyperoslo/tasuku/git/commits{/sha}","comments_url":"https://api.github.com/repos/hyperoslo/tasuku/comments{/number}","issue_comment_url":"https://api.github.com/repos/hyperoslo/tasuku/issues/comments{/number}","contents_url":"https://api.github.com/repos/hyperoslo/tasuku/contents/{+path}","compare_url":"https://api.github.com/repos/hyperoslo/tasuku/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hyperoslo/tasuku/merges","archive_url":"https://api.github.com/repos/hyperoslo/tasuku/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hyperoslo/tasuku/downloads","issues_url":"https://api.github.com/repos/hyperoslo/tasuku/issues{/number}","pulls_url":"https://api.github.com/repos/hyperoslo/tasuku/pulls{/number}","milestones_url":"https://api.github.com/repos/hyperoslo/tasuku/milestones{/number}","notifications_url":"https://api.github.com/repos/hyperoslo/tasuku/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hyperoslo/tasuku/labels{/name}","releases_url":"https://api.github.com/repos/hyperoslo/tasuku/releases{/id}","created_at":"2014-03-15T16:51:12Z","updated_at":"2015-05-19T12:15:34Z","pushed_at":"2015-10-09T15:37:17Z","git_url":"git://github.com/hyperoslo/tasuku.git","ssh_url":"git@github.com:hyperoslo/tasuku.git","clone_url":"https://github.com/hyperoslo/tasuku.git","svn_url":"https://github.com/hyperoslo/tasuku","homepage":"http://opensource.hyper.no/tasuku/","size":6910,"stargazers_count":6,"watchers_count":6,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"open_issues_count":6,"forks":2,"open_issues":6,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hyperoslo/tasuku/pulls/74"},"html":{"href":"https://github.com/hyperoslo/tasuku/pull/74"},"issue":{"href":"https://api.github.com/repos/hyperoslo/tasuku/issues/74"},"comments":{"href":"https://api.github.com/repos/hyperoslo/tasuku/issues/74/comments"},"review_comments":{"href":"https://api.github.com/repos/hyperoslo/tasuku/pulls/74/comments"},"review_comment":{"href":"https://api.github.com/repos/hyperoslo/tasuku/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hyperoslo/tasuku/pulls/74/commits"},"statuses":{"href":"https://api.github.com/repos/hyperoslo/tasuku/statuses/47122f257b112a33070ded196625cf013bebc24a"}}}}