{"action":"created","comment":{"url":"https://api.github.com/repos/Yinaura/jagi/pulls/comments/38166144","id":38166144,"diff_hunk":"@@ -42,6 +42,13 @@ def review_mode_user_profile_ids\n     distincted_answers.map(&:to_user_profile_id)\n   end\n \n+  def correct?(answer)\n+    result = false\n+    result = true if answer == self.name\n+    result = true if self.answer_name.present? && answer == self.answer_name\n+    result\n+  end","path":"app/models/user_profile.rb","position":9,"original_position":9,"commit_id":"9d1d77ee72766c1841c657b86882a3761f0b87d8","original_commit_id":"9d1d77ee72766c1841c657b86882a3761f0b87d8","user":{"login":"ckazu","id":401343,"avatar_url":"https://avatars.githubusercontent.com/u/401343?v=3","gravatar_id":"","url":"https://api.github.com/users/ckazu","html_url":"https://github.com/ckazu","followers_url":"https://api.github.com/users/ckazu/followers","following_url":"https://api.github.com/users/ckazu/following{/other_user}","gists_url":"https://api.github.com/users/ckazu/gists{/gist_id}","starred_url":"https://api.github.com/users/ckazu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ckazu/subscriptions","organizations_url":"https://api.github.com/users/ckazu/orgs","repos_url":"https://api.github.com/users/ckazu/repos","events_url":"https://api.github.com/users/ckazu/events{/privacy}","received_events_url":"https://api.github.com/users/ckazu/received_events","type":"User","site_admin":false},"body":"UserProfile モデルに correct? を定義するのは適切でしょうか？","created_at":"2015-08-28T02:07:12Z","updated_at":"2015-08-28T02:07:12Z","html_url":"https://github.com/Yinaura/jagi/pull/24#discussion_r38166144","pull_request_url":"https://api.github.com/repos/Yinaura/jagi/pulls/24","_links":{"self":{"href":"https://api.github.com/repos/Yinaura/jagi/pulls/comments/38166144"},"html":{"href":"https://github.com/Yinaura/jagi/pull/24#discussion_r38166144"},"pull_request":{"href":"https://api.github.com/repos/Yinaura/jagi/pulls/24"}}},"pull_request":{"url":"https://api.github.com/repos/Yinaura/jagi/pulls/24","id":43364985,"html_url":"https://github.com/Yinaura/jagi/pull/24","diff_url":"https://github.com/Yinaura/jagi/pull/24.diff","patch_url":"https://github.com/Yinaura/jagi/pull/24.patch","issue_url":"https://api.github.com/repos/Yinaura/jagi/issues/24","number":24,"state":"open","locked":false,"title":"回答後にユーザーのプロフィールが表示されるようにする","user":{"login":"Yinaura","id":13635059,"avatar_url":"https://avatars.githubusercontent.com/u/13635059?v=3","gravatar_id":"","url":"https://api.github.com/users/Yinaura","html_url":"https://github.com/Yinaura","followers_url":"https://api.github.com/users/Yinaura/followers","following_url":"https://api.github.com/users/Yinaura/following{/other_user}","gists_url":"https://api.github.com/users/Yinaura/gists{/gist_id}","starred_url":"https://api.github.com/users/Yinaura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yinaura/subscriptions","organizations_url":"https://api.github.com/users/Yinaura/orgs","repos_url":"https://api.github.com/users/Yinaura/repos","events_url":"https://api.github.com/users/Yinaura/events{/privacy}","received_events_url":"https://api.github.com/users/Yinaura/received_events","type":"User","site_admin":false},"body":"## 懸念点\r\n\r\n- FLASHメッセージはこういう使い方でも良いんだろうか。(回答後に、1セッション分だけ「ユーザーのプロフィール」を表示したい)\r\n","created_at":"2015-08-26T05:18:20Z","updated_at":"2015-08-28T02:07:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"db1e581a1299b3c5c2c229ca258f8e7d20ce1e68","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Yinaura/jagi/pulls/24/commits","review_comments_url":"https://api.github.com/repos/Yinaura/jagi/pulls/24/comments","review_comment_url":"https://api.github.com/repos/Yinaura/jagi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Yinaura/jagi/issues/24/comments","statuses_url":"https://api.github.com/repos/Yinaura/jagi/statuses/9d1d77ee72766c1841c657b86882a3761f0b87d8","head":{"label":"Yinaura:answer","ref":"answer","sha":"9d1d77ee72766c1841c657b86882a3761f0b87d8","user":{"login":"Yinaura","id":13635059,"avatar_url":"https://avatars.githubusercontent.com/u/13635059?v=3","gravatar_id":"","url":"https://api.github.com/users/Yinaura","html_url":"https://github.com/Yinaura","followers_url":"https://api.github.com/users/Yinaura/followers","following_url":"https://api.github.com/users/Yinaura/following{/other_user}","gists_url":"https://api.github.com/users/Yinaura/gists{/gist_id}","starred_url":"https://api.github.com/users/Yinaura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yinaura/subscriptions","organizations_url":"https://api.github.com/users/Yinaura/orgs","repos_url":"https://api.github.com/users/Yinaura/repos","events_url":"https://api.github.com/users/Yinaura/events{/privacy}","received_events_url":"https://api.github.com/users/Yinaura/received_events","type":"User","site_admin":false},"repo":{"id":40160096,"name":"jagi","full_name":"Yinaura/jagi","owner":{"login":"Yinaura","id":13635059,"avatar_url":"https://avatars.githubusercontent.com/u/13635059?v=3","gravatar_id":"","url":"https://api.github.com/users/Yinaura","html_url":"https://github.com/Yinaura","followers_url":"https://api.github.com/users/Yinaura/followers","following_url":"https://api.github.com/users/Yinaura/following{/other_user}","gists_url":"https://api.github.com/users/Yinaura/gists{/gist_id}","starred_url":"https://api.github.com/users/Yinaura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yinaura/subscriptions","organizations_url":"https://api.github.com/users/Yinaura/orgs","repos_url":"https://api.github.com/users/Yinaura/repos","events_url":"https://api.github.com/users/Yinaura/events{/privacy}","received_events_url":"https://api.github.com/users/Yinaura/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Yinaura/jagi","description":"","fork":false,"url":"https://api.github.com/repos/Yinaura/jagi","forks_url":"https://api.github.com/repos/Yinaura/jagi/forks","keys_url":"https://api.github.com/repos/Yinaura/jagi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Yinaura/jagi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Yinaura/jagi/teams","hooks_url":"https://api.github.com/repos/Yinaura/jagi/hooks","issue_events_url":"https://api.github.com/repos/Yinaura/jagi/issues/events{/number}","events_url":"https://api.github.com/repos/Yinaura/jagi/events","assignees_url":"https://api.github.com/repos/Yinaura/jagi/assignees{/user}","branches_url":"https://api.github.com/repos/Yinaura/jagi/branches{/branch}","tags_url":"https://api.github.com/repos/Yinaura/jagi/tags","blobs_url":"https://api.github.com/repos/Yinaura/jagi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Yinaura/jagi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Yinaura/jagi/git/refs{/sha}","trees_url":"https://api.github.com/repos/Yinaura/jagi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Yinaura/jagi/statuses/{sha}","languages_url":"https://api.github.com/repos/Yinaura/jagi/languages","stargazers_url":"https://api.github.com/repos/Yinaura/jagi/stargazers","contributors_url":"https://api.github.com/repos/Yinaura/jagi/contributors","subscribers_url":"https://api.github.com/repos/Yinaura/jagi/subscribers","subscription_url":"https://api.github.com/repos/Yinaura/jagi/subscription","commits_url":"https://api.github.com/repos/Yinaura/jagi/commits{/sha}","git_commits_url":"https://api.github.com/repos/Yinaura/jagi/git/commits{/sha}","comments_url":"https://api.github.com/repos/Yinaura/jagi/comments{/number}","issue_comment_url":"https://api.github.com/repos/Yinaura/jagi/issues/comments{/number}","contents_url":"https://api.github.com/repos/Yinaura/jagi/contents/{+path}","compare_url":"https://api.github.com/repos/Yinaura/jagi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Yinaura/jagi/merges","archive_url":"https://api.github.com/repos/Yinaura/jagi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Yinaura/jagi/downloads","issues_url":"https://api.github.com/repos/Yinaura/jagi/issues{/number}","pulls_url":"https://api.github.com/repos/Yinaura/jagi/pulls{/number}","milestones_url":"https://api.github.com/repos/Yinaura/jagi/milestones{/number}","notifications_url":"https://api.github.com/repos/Yinaura/jagi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Yinaura/jagi/labels{/name}","releases_url":"https://api.github.com/repos/Yinaura/jagi/releases{/id}","created_at":"2015-08-04T02:57:51Z","updated_at":"2015-08-04T03:10:49Z","pushed_at":"2015-08-28T02:01:27Z","git_url":"git://github.com/Yinaura/jagi.git","ssh_url":"git@github.com:Yinaura/jagi.git","clone_url":"https://github.com/Yinaura/jagi.git","svn_url":"https://github.com/Yinaura/jagi","homepage":null,"size":1673,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":8,"forks":1,"open_issues":8,"watchers":0,"default_branch":"master"}},"base":{"label":"Yinaura:master","ref":"master","sha":"38ac046c8c771e1dfa767df7f0960ec96a76c468","user":{"login":"Yinaura","id":13635059,"avatar_url":"https://avatars.githubusercontent.com/u/13635059?v=3","gravatar_id":"","url":"https://api.github.com/users/Yinaura","html_url":"https://github.com/Yinaura","followers_url":"https://api.github.com/users/Yinaura/followers","following_url":"https://api.github.com/users/Yinaura/following{/other_user}","gists_url":"https://api.github.com/users/Yinaura/gists{/gist_id}","starred_url":"https://api.github.com/users/Yinaura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yinaura/subscriptions","organizations_url":"https://api.github.com/users/Yinaura/orgs","repos_url":"https://api.github.com/users/Yinaura/repos","events_url":"https://api.github.com/users/Yinaura/events{/privacy}","received_events_url":"https://api.github.com/users/Yinaura/received_events","type":"User","site_admin":false},"repo":{"id":40160096,"name":"jagi","full_name":"Yinaura/jagi","owner":{"login":"Yinaura","id":13635059,"avatar_url":"https://avatars.githubusercontent.com/u/13635059?v=3","gravatar_id":"","url":"https://api.github.com/users/Yinaura","html_url":"https://github.com/Yinaura","followers_url":"https://api.github.com/users/Yinaura/followers","following_url":"https://api.github.com/users/Yinaura/following{/other_user}","gists_url":"https://api.github.com/users/Yinaura/gists{/gist_id}","starred_url":"https://api.github.com/users/Yinaura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yinaura/subscriptions","organizations_url":"https://api.github.com/users/Yinaura/orgs","repos_url":"https://api.github.com/users/Yinaura/repos","events_url":"https://api.github.com/users/Yinaura/events{/privacy}","received_events_url":"https://api.github.com/users/Yinaura/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Yinaura/jagi","description":"","fork":false,"url":"https://api.github.com/repos/Yinaura/jagi","forks_url":"https://api.github.com/repos/Yinaura/jagi/forks","keys_url":"https://api.github.com/repos/Yinaura/jagi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Yinaura/jagi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Yinaura/jagi/teams","hooks_url":"https://api.github.com/repos/Yinaura/jagi/hooks","issue_events_url":"https://api.github.com/repos/Yinaura/jagi/issues/events{/number}","events_url":"https://api.github.com/repos/Yinaura/jagi/events","assignees_url":"https://api.github.com/repos/Yinaura/jagi/assignees{/user}","branches_url":"https://api.github.com/repos/Yinaura/jagi/branches{/branch}","tags_url":"https://api.github.com/repos/Yinaura/jagi/tags","blobs_url":"https://api.github.com/repos/Yinaura/jagi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Yinaura/jagi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Yinaura/jagi/git/refs{/sha}","trees_url":"https://api.github.com/repos/Yinaura/jagi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Yinaura/jagi/statuses/{sha}","languages_url":"https://api.github.com/repos/Yinaura/jagi/languages","stargazers_url":"https://api.github.com/repos/Yinaura/jagi/stargazers","contributors_url":"https://api.github.com/repos/Yinaura/jagi/contributors","subscribers_url":"https://api.github.com/repos/Yinaura/jagi/subscribers","subscription_url":"https://api.github.com/repos/Yinaura/jagi/subscription","commits_url":"https://api.github.com/repos/Yinaura/jagi/commits{/sha}","git_commits_url":"https://api.github.com/repos/Yinaura/jagi/git/commits{/sha}","comments_url":"https://api.github.com/repos/Yinaura/jagi/comments{/number}","issue_comment_url":"https://api.github.com/repos/Yinaura/jagi/issues/comments{/number}","contents_url":"https://api.github.com/repos/Yinaura/jagi/contents/{+path}","compare_url":"https://api.github.com/repos/Yinaura/jagi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Yinaura/jagi/merges","archive_url":"https://api.github.com/repos/Yinaura/jagi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Yinaura/jagi/downloads","issues_url":"https://api.github.com/repos/Yinaura/jagi/issues{/number}","pulls_url":"https://api.github.com/repos/Yinaura/jagi/pulls{/number}","milestones_url":"https://api.github.com/repos/Yinaura/jagi/milestones{/number}","notifications_url":"https://api.github.com/repos/Yinaura/jagi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Yinaura/jagi/labels{/name}","releases_url":"https://api.github.com/repos/Yinaura/jagi/releases{/id}","created_at":"2015-08-04T02:57:51Z","updated_at":"2015-08-04T03:10:49Z","pushed_at":"2015-08-28T02:01:27Z","git_url":"git://github.com/Yinaura/jagi.git","ssh_url":"git@github.com:Yinaura/jagi.git","clone_url":"https://github.com/Yinaura/jagi.git","svn_url":"https://github.com/Yinaura/jagi","homepage":null,"size":1673,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":8,"forks":1,"open_issues":8,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Yinaura/jagi/pulls/24"},"html":{"href":"https://github.com/Yinaura/jagi/pull/24"},"issue":{"href":"https://api.github.com/repos/Yinaura/jagi/issues/24"},"comments":{"href":"https://api.github.com/repos/Yinaura/jagi/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/Yinaura/jagi/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/Yinaura/jagi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Yinaura/jagi/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/Yinaura/jagi/statuses/9d1d77ee72766c1841c657b86882a3761f0b87d8"}}}}