{"action":"created","comment":{"url":"https://api.github.com/repos/maripiyoko/micro-sof/pulls/comments/34564483","id":34564483,"diff_hunk":"@@ -2,6 +2,7 @@ class CommentsController < ApplicationController\n   before_action :authenticate_user!\n   before_action :set_parent\n   before_action :set_comment, only: [ :edit, :show, :update, :destroy ]\n+  before_action :set_comments, only: [ :create, :update, :destroy ]","path":"app/controllers/comments_controller.rb","position":4,"original_position":4,"commit_id":"9de023131d8b3638f445a45e550d20e82f400e7a","original_commit_id":"9de023131d8b3638f445a45e550d20e82f400e7a","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Space inside square brackets detected.","created_at":"2015-07-14T12:56:39Z","updated_at":"2015-07-14T12:56:39Z","html_url":"https://github.com/maripiyoko/micro-sof/pull/18#discussion_r34564483","pull_request_url":"https://api.github.com/repos/maripiyoko/micro-sof/pulls/18","_links":{"self":{"href":"https://api.github.com/repos/maripiyoko/micro-sof/pulls/comments/34564483"},"html":{"href":"https://github.com/maripiyoko/micro-sof/pull/18#discussion_r34564483"},"pull_request":{"href":"https://api.github.com/repos/maripiyoko/micro-sof/pulls/18"}}},"pull_request":{"url":"https://api.github.com/repos/maripiyoko/micro-sof/pulls/18","id":39912430,"html_url":"https://github.com/maripiyoko/micro-sof/pull/18","diff_url":"https://github.com/maripiyoko/micro-sof/pull/18.diff","patch_url":"https://github.com/maripiyoko/micro-sof/pull/18.patch","issue_url":"https://api.github.com/repos/maripiyoko/micro-sof/issues/18","number":18,"state":"open","locked":false,"title":"Answer comment","user":{"login":"maripiyoko","id":1080848,"avatar_url":"https://avatars.githubusercontent.com/u/1080848?v=3","gravatar_id":"","url":"https://api.github.com/users/maripiyoko","html_url":"https://github.com/maripiyoko","followers_url":"https://api.github.com/users/maripiyoko/followers","following_url":"https://api.github.com/users/maripiyoko/following{/other_user}","gists_url":"https://api.github.com/users/maripiyoko/gists{/gist_id}","starred_url":"https://api.github.com/users/maripiyoko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maripiyoko/subscriptions","organizations_url":"https://api.github.com/users/maripiyoko/orgs","repos_url":"https://api.github.com/users/maripiyoko/repos","events_url":"https://api.github.com/users/maripiyoko/events{/privacy}","received_events_url":"https://api.github.com/users/maripiyoko/received_events","type":"User","site_admin":false},"body":"#15 \r\n\r\n- questions, answersのcommentsルートをpolymorphicできるように同じ形にした\r\n- answersにもcommentできるようになった\r\n- commentsの各アクションはajaxで","created_at":"2015-07-14T12:56:34Z","updated_at":"2015-07-14T12:56:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"633694c9859a8ef50ff25f248e29a36146244723","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/maripiyoko/micro-sof/pulls/18/commits","review_comments_url":"https://api.github.com/repos/maripiyoko/micro-sof/pulls/18/comments","review_comment_url":"https://api.github.com/repos/maripiyoko/micro-sof/pulls/comments{/number}","comments_url":"https://api.github.com/repos/maripiyoko/micro-sof/issues/18/comments","statuses_url":"https://api.github.com/repos/maripiyoko/micro-sof/statuses/9de023131d8b3638f445a45e550d20e82f400e7a","head":{"label":"maripiyoko:answer-comment","ref":"answer-comment","sha":"9de023131d8b3638f445a45e550d20e82f400e7a","user":{"login":"maripiyoko","id":1080848,"avatar_url":"https://avatars.githubusercontent.com/u/1080848?v=3","gravatar_id":"","url":"https://api.github.com/users/maripiyoko","html_url":"https://github.com/maripiyoko","followers_url":"https://api.github.com/users/maripiyoko/followers","following_url":"https://api.github.com/users/maripiyoko/following{/other_user}","gists_url":"https://api.github.com/users/maripiyoko/gists{/gist_id}","starred_url":"https://api.github.com/users/maripiyoko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maripiyoko/subscriptions","organizations_url":"https://api.github.com/users/maripiyoko/orgs","repos_url":"https://api.github.com/users/maripiyoko/repos","events_url":"https://api.github.com/users/maripiyoko/events{/privacy}","received_events_url":"https://api.github.com/users/maripiyoko/received_events","type":"User","site_admin":false},"repo":{"id":38473297,"name":"micro-sof","full_name":"maripiyoko/micro-sof","owner":{"login":"maripiyoko","id":1080848,"avatar_url":"https://avatars.githubusercontent.com/u/1080848?v=3","gravatar_id":"","url":"https://api.github.com/users/maripiyoko","html_url":"https://github.com/maripiyoko","followers_url":"https://api.github.com/users/maripiyoko/followers","following_url":"https://api.github.com/users/maripiyoko/following{/other_user}","gists_url":"https://api.github.com/users/maripiyoko/gists{/gist_id}","starred_url":"https://api.github.com/users/maripiyoko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maripiyoko/subscriptions","organizations_url":"https://api.github.com/users/maripiyoko/orgs","repos_url":"https://api.github.com/users/maripiyoko/repos","events_url":"https://api.github.com/users/maripiyoko/events{/privacy}","received_events_url":"https://api.github.com/users/maripiyoko/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/maripiyoko/micro-sof","description":"Rails practice app.","fork":false,"url":"https://api.github.com/repos/maripiyoko/micro-sof","forks_url":"https://api.github.com/repos/maripiyoko/micro-sof/forks","keys_url":"https://api.github.com/repos/maripiyoko/micro-sof/keys{/key_id}","collaborators_url":"https://api.github.com/repos/maripiyoko/micro-sof/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/maripiyoko/micro-sof/teams","hooks_url":"https://api.github.com/repos/maripiyoko/micro-sof/hooks","issue_events_url":"https://api.github.com/repos/maripiyoko/micro-sof/issues/events{/number}","events_url":"https://api.github.com/repos/maripiyoko/micro-sof/events","assignees_url":"https://api.github.com/repos/maripiyoko/micro-sof/assignees{/user}","branches_url":"https://api.github.com/repos/maripiyoko/micro-sof/branches{/branch}","tags_url":"https://api.github.com/repos/maripiyoko/micro-sof/tags","blobs_url":"https://api.github.com/repos/maripiyoko/micro-sof/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/maripiyoko/micro-sof/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/maripiyoko/micro-sof/git/refs{/sha}","trees_url":"https://api.github.com/repos/maripiyoko/micro-sof/git/trees{/sha}","statuses_url":"https://api.github.com/repos/maripiyoko/micro-sof/statuses/{sha}","languages_url":"https://api.github.com/repos/maripiyoko/micro-sof/languages","stargazers_url":"https://api.github.com/repos/maripiyoko/micro-sof/stargazers","contributors_url":"https://api.github.com/repos/maripiyoko/micro-sof/contributors","subscribers_url":"https://api.github.com/repos/maripiyoko/micro-sof/subscribers","subscription_url":"https://api.github.com/repos/maripiyoko/micro-sof/subscription","commits_url":"https://api.github.com/repos/maripiyoko/micro-sof/commits{/sha}","git_commits_url":"https://api.github.com/repos/maripiyoko/micro-sof/git/commits{/sha}","comments_url":"https://api.github.com/repos/maripiyoko/micro-sof/comments{/number}","issue_comment_url":"https://api.github.com/repos/maripiyoko/micro-sof/issues/comments{/number}","contents_url":"https://api.github.com/repos/maripiyoko/micro-sof/contents/{+path}","compare_url":"https://api.github.com/repos/maripiyoko/micro-sof/compare/{base}...{head}","merges_url":"https://api.github.com/repos/maripiyoko/micro-sof/merges","archive_url":"https://api.github.com/repos/maripiyoko/micro-sof/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/maripiyoko/micro-sof/downloads","issues_url":"https://api.github.com/repos/maripiyoko/micro-sof/issues{/number}","pulls_url":"https://api.github.com/repos/maripiyoko/micro-sof/pulls{/number}","milestones_url":"https://api.github.com/repos/maripiyoko/micro-sof/milestones{/number}","notifications_url":"https://api.github.com/repos/maripiyoko/micro-sof/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/maripiyoko/micro-sof/labels{/name}","releases_url":"https://api.github.com/repos/maripiyoko/micro-sof/releases{/id}","created_at":"2015-07-03T05:14:42Z","updated_at":"2015-07-03T08:04:25Z","pushed_at":"2015-07-14T12:56:35Z","git_url":"git://github.com/maripiyoko/micro-sof.git","ssh_url":"git@github.com:maripiyoko/micro-sof.git","clone_url":"https://github.com/maripiyoko/micro-sof.git","svn_url":"https://github.com/maripiyoko/micro-sof","homepage":null,"size":324,"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":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"maripiyoko:master","ref":"master","sha":"af8ff50be946eb9475045a074f2f430778049057","user":{"login":"maripiyoko","id":1080848,"avatar_url":"https://avatars.githubusercontent.com/u/1080848?v=3","gravatar_id":"","url":"https://api.github.com/users/maripiyoko","html_url":"https://github.com/maripiyoko","followers_url":"https://api.github.com/users/maripiyoko/followers","following_url":"https://api.github.com/users/maripiyoko/following{/other_user}","gists_url":"https://api.github.com/users/maripiyoko/gists{/gist_id}","starred_url":"https://api.github.com/users/maripiyoko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maripiyoko/subscriptions","organizations_url":"https://api.github.com/users/maripiyoko/orgs","repos_url":"https://api.github.com/users/maripiyoko/repos","events_url":"https://api.github.com/users/maripiyoko/events{/privacy}","received_events_url":"https://api.github.com/users/maripiyoko/received_events","type":"User","site_admin":false},"repo":{"id":38473297,"name":"micro-sof","full_name":"maripiyoko/micro-sof","owner":{"login":"maripiyoko","id":1080848,"avatar_url":"https://avatars.githubusercontent.com/u/1080848?v=3","gravatar_id":"","url":"https://api.github.com/users/maripiyoko","html_url":"https://github.com/maripiyoko","followers_url":"https://api.github.com/users/maripiyoko/followers","following_url":"https://api.github.com/users/maripiyoko/following{/other_user}","gists_url":"https://api.github.com/users/maripiyoko/gists{/gist_id}","starred_url":"https://api.github.com/users/maripiyoko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maripiyoko/subscriptions","organizations_url":"https://api.github.com/users/maripiyoko/orgs","repos_url":"https://api.github.com/users/maripiyoko/repos","events_url":"https://api.github.com/users/maripiyoko/events{/privacy}","received_events_url":"https://api.github.com/users/maripiyoko/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/maripiyoko/micro-sof","description":"Rails practice app.","fork":false,"url":"https://api.github.com/repos/maripiyoko/micro-sof","forks_url":"https://api.github.com/repos/maripiyoko/micro-sof/forks","keys_url":"https://api.github.com/repos/maripiyoko/micro-sof/keys{/key_id}","collaborators_url":"https://api.github.com/repos/maripiyoko/micro-sof/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/maripiyoko/micro-sof/teams","hooks_url":"https://api.github.com/repos/maripiyoko/micro-sof/hooks","issue_events_url":"https://api.github.com/repos/maripiyoko/micro-sof/issues/events{/number}","events_url":"https://api.github.com/repos/maripiyoko/micro-sof/events","assignees_url":"https://api.github.com/repos/maripiyoko/micro-sof/assignees{/user}","branches_url":"https://api.github.com/repos/maripiyoko/micro-sof/branches{/branch}","tags_url":"https://api.github.com/repos/maripiyoko/micro-sof/tags","blobs_url":"https://api.github.com/repos/maripiyoko/micro-sof/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/maripiyoko/micro-sof/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/maripiyoko/micro-sof/git/refs{/sha}","trees_url":"https://api.github.com/repos/maripiyoko/micro-sof/git/trees{/sha}","statuses_url":"https://api.github.com/repos/maripiyoko/micro-sof/statuses/{sha}","languages_url":"https://api.github.com/repos/maripiyoko/micro-sof/languages","stargazers_url":"https://api.github.com/repos/maripiyoko/micro-sof/stargazers","contributors_url":"https://api.github.com/repos/maripiyoko/micro-sof/contributors","subscribers_url":"https://api.github.com/repos/maripiyoko/micro-sof/subscribers","subscription_url":"https://api.github.com/repos/maripiyoko/micro-sof/subscription","commits_url":"https://api.github.com/repos/maripiyoko/micro-sof/commits{/sha}","git_commits_url":"https://api.github.com/repos/maripiyoko/micro-sof/git/commits{/sha}","comments_url":"https://api.github.com/repos/maripiyoko/micro-sof/comments{/number}","issue_comment_url":"https://api.github.com/repos/maripiyoko/micro-sof/issues/comments{/number}","contents_url":"https://api.github.com/repos/maripiyoko/micro-sof/contents/{+path}","compare_url":"https://api.github.com/repos/maripiyoko/micro-sof/compare/{base}...{head}","merges_url":"https://api.github.com/repos/maripiyoko/micro-sof/merges","archive_url":"https://api.github.com/repos/maripiyoko/micro-sof/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/maripiyoko/micro-sof/downloads","issues_url":"https://api.github.com/repos/maripiyoko/micro-sof/issues{/number}","pulls_url":"https://api.github.com/repos/maripiyoko/micro-sof/pulls{/number}","milestones_url":"https://api.github.com/repos/maripiyoko/micro-sof/milestones{/number}","notifications_url":"https://api.github.com/repos/maripiyoko/micro-sof/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/maripiyoko/micro-sof/labels{/name}","releases_url":"https://api.github.com/repos/maripiyoko/micro-sof/releases{/id}","created_at":"2015-07-03T05:14:42Z","updated_at":"2015-07-03T08:04:25Z","pushed_at":"2015-07-14T12:56:35Z","git_url":"git://github.com/maripiyoko/micro-sof.git","ssh_url":"git@github.com:maripiyoko/micro-sof.git","clone_url":"https://github.com/maripiyoko/micro-sof.git","svn_url":"https://github.com/maripiyoko/micro-sof","homepage":null,"size":324,"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":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/maripiyoko/micro-sof/pulls/18"},"html":{"href":"https://github.com/maripiyoko/micro-sof/pull/18"},"issue":{"href":"https://api.github.com/repos/maripiyoko/micro-sof/issues/18"},"comments":{"href":"https://api.github.com/repos/maripiyoko/micro-sof/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/maripiyoko/micro-sof/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/maripiyoko/micro-sof/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/maripiyoko/micro-sof/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/maripiyoko/micro-sof/statuses/9de023131d8b3638f445a45e550d20e82f400e7a"}}}}