{"action":"created","comment":{"url":"https://api.github.com/repos/norahito/dive23/pulls/comments/78516246","id":78516246,"diff_hunk":"@@ -9,4 +9,16 @@\n \n .contribution_up {\n   margin-top: -10px;\n+}\n+\n+.vote_before {","path":"app/assets/stylesheets/common.scss","position":6,"original_position":6,"commit_id":"a32507a991e5b4daad6dfbc492560a6e37459c14","original_commit_id":"a32507a991e5b4daad6dfbc492560a6e37459c14","user":{"login":"norahito","id":20297591,"avatar_url":"https://avatars.githubusercontent.com/u/20297591?v=3","gravatar_id":"","url":"https://api.github.com/users/norahito","html_url":"https://github.com/norahito","followers_url":"https://api.github.com/users/norahito/followers","following_url":"https://api.github.com/users/norahito/following{/other_user}","gists_url":"https://api.github.com/users/norahito/gists{/gist_id}","starred_url":"https://api.github.com/users/norahito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/norahito/subscriptions","organizations_url":"https://api.github.com/users/norahito/orgs","repos_url":"https://api.github.com/users/norahito/repos","events_url":"https://api.github.com/users/norahito/events{/privacy}","received_events_url":"https://api.github.com/users/norahito/received_events","type":"User","site_admin":false},"body":"文字色をgreyにするためだけのクラスであればbootstrapの基本クラスのmutedを使えば良いのではないでしょうか？http://webnetamemo.com/coding/bootstrap/20150627154","created_at":"2016-09-13T08:25:43Z","updated_at":"2016-09-13T08:25:43Z","html_url":"https://github.com/norahito/dive23/pull/126#discussion_r78516246","pull_request_url":"https://api.github.com/repos/norahito/dive23/pulls/126","_links":{"self":{"href":"https://api.github.com/repos/norahito/dive23/pulls/comments/78516246"},"html":{"href":"https://github.com/norahito/dive23/pull/126#discussion_r78516246"},"pull_request":{"href":"https://api.github.com/repos/norahito/dive23/pulls/126"}}},"pull_request":{"url":"https://api.github.com/repos/norahito/dive23/pulls/126","id":84976274,"html_url":"https://github.com/norahito/dive23/pull/126","diff_url":"https://github.com/norahito/dive23/pull/126.diff","patch_url":"https://github.com/norahito/dive23/pull/126.patch","issue_url":"https://api.github.com/repos/norahito/dive23/issues/126","number":126,"state":"open","locked":false,"title":"[Fixed]投票機能、viewの設定","user":{"login":"choochoopiston","id":19501004,"avatar_url":"https://avatars.githubusercontent.com/u/19501004?v=3","gravatar_id":"","url":"https://api.github.com/users/choochoopiston","html_url":"https://github.com/choochoopiston","followers_url":"https://api.github.com/users/choochoopiston/followers","following_url":"https://api.github.com/users/choochoopiston/following{/other_user}","gists_url":"https://api.github.com/users/choochoopiston/gists{/gist_id}","starred_url":"https://api.github.com/users/choochoopiston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/choochoopiston/subscriptions","organizations_url":"https://api.github.com/users/choochoopiston/orgs","repos_url":"https://api.github.com/users/choochoopiston/repos","events_url":"https://api.github.com/users/choochoopiston/events{/privacy}","received_events_url":"https://api.github.com/users/choochoopiston/received_events","type":"User","site_admin":false},"body":"#117 \r\n\r\n動作確認はしまして、問題ないかと思いますが、複数テーブルに同時保存でトランザクションを使用しています。\r\n(特に何もしなくても、@voteをsaveすれば、アソシエーションされているか、@questionや@answerも保存されるというのは、完全に私の勘違いでした。すいません）。\r\nしかし、トランザクションを使い方がこれでいいのかちょっと心配です。\r\n\r\nまた、投票機能として、プラス投票をした後、もう一回プラス投票のボタンをクリックすると、プラス投票が取り消されます。プラス投票をした状態で、マイナス投票をクリックすると、プラス投票は特に変わらず、マイナス投票が生成されるという認識でしましたが、途中で気づいて、これをプラス投票をした状態で、マイナス投票をクリックすると、プラス投票がなくなって、マイナス投票に変わるという仕様（逆もしかり）に変更したした、修正過程がちょっとわかりずらいかもしれませんので、その点ご容赦いただければと幸いです。質問と回答をわけれて作業すればよかったです。その点も反省です。","created_at":"2016-09-13T02:31:14Z","updated_at":"2016-09-13T08:25:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d7015020750c8e390a2105064d84f034ba6fe1bc","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/norahito/dive23/pulls/126/commits","review_comments_url":"https://api.github.com/repos/norahito/dive23/pulls/126/comments","review_comment_url":"https://api.github.com/repos/norahito/dive23/pulls/comments{/number}","comments_url":"https://api.github.com/repos/norahito/dive23/issues/126/comments","statuses_url":"https://api.github.com/repos/norahito/dive23/statuses/a32507a991e5b4daad6dfbc492560a6e37459c14","head":{"label":"norahito:issues#117","ref":"issues#117","sha":"a32507a991e5b4daad6dfbc492560a6e37459c14","user":{"login":"norahito","id":20297591,"avatar_url":"https://avatars.githubusercontent.com/u/20297591?v=3","gravatar_id":"","url":"https://api.github.com/users/norahito","html_url":"https://github.com/norahito","followers_url":"https://api.github.com/users/norahito/followers","following_url":"https://api.github.com/users/norahito/following{/other_user}","gists_url":"https://api.github.com/users/norahito/gists{/gist_id}","starred_url":"https://api.github.com/users/norahito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/norahito/subscriptions","organizations_url":"https://api.github.com/users/norahito/orgs","repos_url":"https://api.github.com/users/norahito/repos","events_url":"https://api.github.com/users/norahito/events{/privacy}","received_events_url":"https://api.github.com/users/norahito/received_events","type":"User","site_admin":false},"repo":{"id":65704670,"name":"dive23","full_name":"norahito/dive23","owner":{"login":"norahito","id":20297591,"avatar_url":"https://avatars.githubusercontent.com/u/20297591?v=3","gravatar_id":"","url":"https://api.github.com/users/norahito","html_url":"https://github.com/norahito","followers_url":"https://api.github.com/users/norahito/followers","following_url":"https://api.github.com/users/norahito/following{/other_user}","gists_url":"https://api.github.com/users/norahito/gists{/gist_id}","starred_url":"https://api.github.com/users/norahito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/norahito/subscriptions","organizations_url":"https://api.github.com/users/norahito/orgs","repos_url":"https://api.github.com/users/norahito/repos","events_url":"https://api.github.com/users/norahito/events{/privacy}","received_events_url":"https://api.github.com/users/norahito/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/norahito/dive23","description":"repository for dive23","fork":false,"url":"https://api.github.com/repos/norahito/dive23","forks_url":"https://api.github.com/repos/norahito/dive23/forks","keys_url":"https://api.github.com/repos/norahito/dive23/keys{/key_id}","collaborators_url":"https://api.github.com/repos/norahito/dive23/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/norahito/dive23/teams","hooks_url":"https://api.github.com/repos/norahito/dive23/hooks","issue_events_url":"https://api.github.com/repos/norahito/dive23/issues/events{/number}","events_url":"https://api.github.com/repos/norahito/dive23/events","assignees_url":"https://api.github.com/repos/norahito/dive23/assignees{/user}","branches_url":"https://api.github.com/repos/norahito/dive23/branches{/branch}","tags_url":"https://api.github.com/repos/norahito/dive23/tags","blobs_url":"https://api.github.com/repos/norahito/dive23/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/norahito/dive23/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/norahito/dive23/git/refs{/sha}","trees_url":"https://api.github.com/repos/norahito/dive23/git/trees{/sha}","statuses_url":"https://api.github.com/repos/norahito/dive23/statuses/{sha}","languages_url":"https://api.github.com/repos/norahito/dive23/languages","stargazers_url":"https://api.github.com/repos/norahito/dive23/stargazers","contributors_url":"https://api.github.com/repos/norahito/dive23/contributors","subscribers_url":"https://api.github.com/repos/norahito/dive23/subscribers","subscription_url":"https://api.github.com/repos/norahito/dive23/subscription","commits_url":"https://api.github.com/repos/norahito/dive23/commits{/sha}","git_commits_url":"https://api.github.com/repos/norahito/dive23/git/commits{/sha}","comments_url":"https://api.github.com/repos/norahito/dive23/comments{/number}","issue_comment_url":"https://api.github.com/repos/norahito/dive23/issues/comments{/number}","contents_url":"https://api.github.com/repos/norahito/dive23/contents/{+path}","compare_url":"https://api.github.com/repos/norahito/dive23/compare/{base}...{head}","merges_url":"https://api.github.com/repos/norahito/dive23/merges","archive_url":"https://api.github.com/repos/norahito/dive23/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/norahito/dive23/downloads","issues_url":"https://api.github.com/repos/norahito/dive23/issues{/number}","pulls_url":"https://api.github.com/repos/norahito/dive23/pulls{/number}","milestones_url":"https://api.github.com/repos/norahito/dive23/milestones{/number}","notifications_url":"https://api.github.com/repos/norahito/dive23/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/norahito/dive23/labels{/name}","releases_url":"https://api.github.com/repos/norahito/dive23/releases{/id}","deployments_url":"https://api.github.com/repos/norahito/dive23/deployments","created_at":"2016-08-15T04:32:55Z","updated_at":"2016-08-15T12:15:08Z","pushed_at":"2016-09-13T02:31:14Z","git_url":"git://github.com/norahito/dive23.git","ssh_url":"git@github.com:norahito/dive23.git","clone_url":"https://github.com/norahito/dive23.git","svn_url":"https://github.com/norahito/dive23","homepage":null,"size":172,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":9,"forks":0,"open_issues":9,"watchers":1,"default_branch":"master"}},"base":{"label":"norahito:master","ref":"master","sha":"50ce385c3824df56dd7d5ce81da357d4900c84b9","user":{"login":"norahito","id":20297591,"avatar_url":"https://avatars.githubusercontent.com/u/20297591?v=3","gravatar_id":"","url":"https://api.github.com/users/norahito","html_url":"https://github.com/norahito","followers_url":"https://api.github.com/users/norahito/followers","following_url":"https://api.github.com/users/norahito/following{/other_user}","gists_url":"https://api.github.com/users/norahito/gists{/gist_id}","starred_url":"https://api.github.com/users/norahito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/norahito/subscriptions","organizations_url":"https://api.github.com/users/norahito/orgs","repos_url":"https://api.github.com/users/norahito/repos","events_url":"https://api.github.com/users/norahito/events{/privacy}","received_events_url":"https://api.github.com/users/norahito/received_events","type":"User","site_admin":false},"repo":{"id":65704670,"name":"dive23","full_name":"norahito/dive23","owner":{"login":"norahito","id":20297591,"avatar_url":"https://avatars.githubusercontent.com/u/20297591?v=3","gravatar_id":"","url":"https://api.github.com/users/norahito","html_url":"https://github.com/norahito","followers_url":"https://api.github.com/users/norahito/followers","following_url":"https://api.github.com/users/norahito/following{/other_user}","gists_url":"https://api.github.com/users/norahito/gists{/gist_id}","starred_url":"https://api.github.com/users/norahito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/norahito/subscriptions","organizations_url":"https://api.github.com/users/norahito/orgs","repos_url":"https://api.github.com/users/norahito/repos","events_url":"https://api.github.com/users/norahito/events{/privacy}","received_events_url":"https://api.github.com/users/norahito/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/norahito/dive23","description":"repository for dive23","fork":false,"url":"https://api.github.com/repos/norahito/dive23","forks_url":"https://api.github.com/repos/norahito/dive23/forks","keys_url":"https://api.github.com/repos/norahito/dive23/keys{/key_id}","collaborators_url":"https://api.github.com/repos/norahito/dive23/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/norahito/dive23/teams","hooks_url":"https://api.github.com/repos/norahito/dive23/hooks","issue_events_url":"https://api.github.com/repos/norahito/dive23/issues/events{/number}","events_url":"https://api.github.com/repos/norahito/dive23/events","assignees_url":"https://api.github.com/repos/norahito/dive23/assignees{/user}","branches_url":"https://api.github.com/repos/norahito/dive23/branches{/branch}","tags_url":"https://api.github.com/repos/norahito/dive23/tags","blobs_url":"https://api.github.com/repos/norahito/dive23/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/norahito/dive23/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/norahito/dive23/git/refs{/sha}","trees_url":"https://api.github.com/repos/norahito/dive23/git/trees{/sha}","statuses_url":"https://api.github.com/repos/norahito/dive23/statuses/{sha}","languages_url":"https://api.github.com/repos/norahito/dive23/languages","stargazers_url":"https://api.github.com/repos/norahito/dive23/stargazers","contributors_url":"https://api.github.com/repos/norahito/dive23/contributors","subscribers_url":"https://api.github.com/repos/norahito/dive23/subscribers","subscription_url":"https://api.github.com/repos/norahito/dive23/subscription","commits_url":"https://api.github.com/repos/norahito/dive23/commits{/sha}","git_commits_url":"https://api.github.com/repos/norahito/dive23/git/commits{/sha}","comments_url":"https://api.github.com/repos/norahito/dive23/comments{/number}","issue_comment_url":"https://api.github.com/repos/norahito/dive23/issues/comments{/number}","contents_url":"https://api.github.com/repos/norahito/dive23/contents/{+path}","compare_url":"https://api.github.com/repos/norahito/dive23/compare/{base}...{head}","merges_url":"https://api.github.com/repos/norahito/dive23/merges","archive_url":"https://api.github.com/repos/norahito/dive23/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/norahito/dive23/downloads","issues_url":"https://api.github.com/repos/norahito/dive23/issues{/number}","pulls_url":"https://api.github.com/repos/norahito/dive23/pulls{/number}","milestones_url":"https://api.github.com/repos/norahito/dive23/milestones{/number}","notifications_url":"https://api.github.com/repos/norahito/dive23/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/norahito/dive23/labels{/name}","releases_url":"https://api.github.com/repos/norahito/dive23/releases{/id}","deployments_url":"https://api.github.com/repos/norahito/dive23/deployments","created_at":"2016-08-15T04:32:55Z","updated_at":"2016-08-15T12:15:08Z","pushed_at":"2016-09-13T02:31:14Z","git_url":"git://github.com/norahito/dive23.git","ssh_url":"git@github.com:norahito/dive23.git","clone_url":"https://github.com/norahito/dive23.git","svn_url":"https://github.com/norahito/dive23","homepage":null,"size":172,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":9,"forks":0,"open_issues":9,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/norahito/dive23/pulls/126"},"html":{"href":"https://github.com/norahito/dive23/pull/126"},"issue":{"href":"https://api.github.com/repos/norahito/dive23/issues/126"},"comments":{"href":"https://api.github.com/repos/norahito/dive23/issues/126/comments"},"review_comments":{"href":"https://api.github.com/repos/norahito/dive23/pulls/126/comments"},"review_comment":{"href":"https://api.github.com/repos/norahito/dive23/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/norahito/dive23/pulls/126/commits"},"statuses":{"href":"https://api.github.com/repos/norahito/dive23/statuses/a32507a991e5b4daad6dfbc492560a6e37459c14"}}}}
{"actor":{"display_login":"norahito"}}