{"action":"created","comment":{"url":"https://api.github.com/repos/redbooth/nps_surveys/pulls/comments/71710548","id":71710548,"diff_hunk":"@@ -5,14 +5,19 @@ class ResponsesController < NpsSurveys.controller_parent_class\n       def create\n         response = create_survey_response\n \n-        return render json: ResponsePresenter.new(response).to_json if response.valid?\n+        return render json: ResponseSerializer.new(response).to_json if response.valid?\n \n-        raise AppException::UnprocessableEntity, response\n+        render json: JSON.generate(","path":"app/controllers/nps_surveys/api_internal/responses_controller.rb","position":8,"original_position":8,"commit_id":"447826eb31e5aecaba26971a841568fcdfdb5654","original_commit_id":"a7dd2f8f0a8cca24c1eb6b6e8f09f9c3192453db","user":{"login":"enricostano","id":748971,"avatar_url":"https://avatars.githubusercontent.com/u/748971?v=3","gravatar_id":"","url":"https://api.github.com/users/enricostano","html_url":"https://github.com/enricostano","followers_url":"https://api.github.com/users/enricostano/followers","following_url":"https://api.github.com/users/enricostano/following{/other_user}","gists_url":"https://api.github.com/users/enricostano/gists{/gist_id}","starred_url":"https://api.github.com/users/enricostano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enricostano/subscriptions","organizations_url":"https://api.github.com/users/enricostano/orgs","repos_url":"https://api.github.com/users/enricostano/repos","events_url":"https://api.github.com/users/enricostano/events{/privacy}","received_events_url":"https://api.github.com/users/enricostano/received_events","type":"User","site_admin":false},"body":"again... do we need `JSON.generate()` here?","created_at":"2016-07-21T14:02:55Z","updated_at":"2016-07-21T14:02:55Z","html_url":"https://github.com/redbooth/nps_surveys/pull/1#discussion_r71710548","pull_request_url":"https://api.github.com/repos/redbooth/nps_surveys/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/redbooth/nps_surveys/pulls/comments/71710548"},"html":{"href":"https://github.com/redbooth/nps_surveys/pull/1#discussion_r71710548"},"pull_request":{"href":"https://api.github.com/repos/redbooth/nps_surveys/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/redbooth/nps_surveys/pulls/1","id":78316377,"html_url":"https://github.com/redbooth/nps_surveys/pull/1","diff_url":"https://github.com/redbooth/nps_surveys/pull/1.diff","patch_url":"https://github.com/redbooth/nps_surveys/pull/1.patch","issue_url":"https://api.github.com/repos/redbooth/nps_surveys/issues/1","number":1,"state":"open","locked":false,"title":"Feature/tests","user":{"login":"magec","id":83188,"avatar_url":"https://avatars.githubusercontent.com/u/83188?v=3","gravatar_id":"","url":"https://api.github.com/users/magec","html_url":"https://github.com/magec","followers_url":"https://api.github.com/users/magec/followers","following_url":"https://api.github.com/users/magec/following{/other_user}","gists_url":"https://api.github.com/users/magec/gists{/gist_id}","starred_url":"https://api.github.com/users/magec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magec/subscriptions","organizations_url":"https://api.github.com/users/magec/orgs","repos_url":"https://api.github.com/users/magec/repos","events_url":"https://api.github.com/users/magec/events{/privacy}","received_events_url":"https://api.github.com/users/magec/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-21T13:33:27Z","updated_at":"2016-07-21T14:02:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a1da9c052f69593e268babbfcf7cb814cd41fb2f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/redbooth/nps_surveys/pulls/1/commits","review_comments_url":"https://api.github.com/repos/redbooth/nps_surveys/pulls/1/comments","review_comment_url":"https://api.github.com/repos/redbooth/nps_surveys/pulls/comments{/number}","comments_url":"https://api.github.com/repos/redbooth/nps_surveys/issues/1/comments","statuses_url":"https://api.github.com/repos/redbooth/nps_surveys/statuses/447826eb31e5aecaba26971a841568fcdfdb5654","head":{"label":"redbooth:feature/tests","ref":"feature/tests","sha":"447826eb31e5aecaba26971a841568fcdfdb5654","user":{"login":"redbooth","id":7304334,"avatar_url":"https://avatars.githubusercontent.com/u/7304334?v=3","gravatar_id":"","url":"https://api.github.com/users/redbooth","html_url":"https://github.com/redbooth","followers_url":"https://api.github.com/users/redbooth/followers","following_url":"https://api.github.com/users/redbooth/following{/other_user}","gists_url":"https://api.github.com/users/redbooth/gists{/gist_id}","starred_url":"https://api.github.com/users/redbooth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redbooth/subscriptions","organizations_url":"https://api.github.com/users/redbooth/orgs","repos_url":"https://api.github.com/users/redbooth/repos","events_url":"https://api.github.com/users/redbooth/events{/privacy}","received_events_url":"https://api.github.com/users/redbooth/received_events","type":"Organization","site_admin":false},"repo":{"id":63850634,"name":"nps_surveys","full_name":"redbooth/nps_surveys","owner":{"login":"redbooth","id":7304334,"avatar_url":"https://avatars.githubusercontent.com/u/7304334?v=3","gravatar_id":"","url":"https://api.github.com/users/redbooth","html_url":"https://github.com/redbooth","followers_url":"https://api.github.com/users/redbooth/followers","following_url":"https://api.github.com/users/redbooth/following{/other_user}","gists_url":"https://api.github.com/users/redbooth/gists{/gist_id}","starred_url":"https://api.github.com/users/redbooth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redbooth/subscriptions","organizations_url":"https://api.github.com/users/redbooth/orgs","repos_url":"https://api.github.com/users/redbooth/repos","events_url":"https://api.github.com/users/redbooth/events{/privacy}","received_events_url":"https://api.github.com/users/redbooth/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/redbooth/nps_surveys","description":"Rails engine to add NPS surveys to your application","fork":false,"url":"https://api.github.com/repos/redbooth/nps_surveys","forks_url":"https://api.github.com/repos/redbooth/nps_surveys/forks","keys_url":"https://api.github.com/repos/redbooth/nps_surveys/keys{/key_id}","collaborators_url":"https://api.github.com/repos/redbooth/nps_surveys/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/redbooth/nps_surveys/teams","hooks_url":"https://api.github.com/repos/redbooth/nps_surveys/hooks","issue_events_url":"https://api.github.com/repos/redbooth/nps_surveys/issues/events{/number}","events_url":"https://api.github.com/repos/redbooth/nps_surveys/events","assignees_url":"https://api.github.com/repos/redbooth/nps_surveys/assignees{/user}","branches_url":"https://api.github.com/repos/redbooth/nps_surveys/branches{/branch}","tags_url":"https://api.github.com/repos/redbooth/nps_surveys/tags","blobs_url":"https://api.github.com/repos/redbooth/nps_surveys/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/redbooth/nps_surveys/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/redbooth/nps_surveys/git/refs{/sha}","trees_url":"https://api.github.com/repos/redbooth/nps_surveys/git/trees{/sha}","statuses_url":"https://api.github.com/repos/redbooth/nps_surveys/statuses/{sha}","languages_url":"https://api.github.com/repos/redbooth/nps_surveys/languages","stargazers_url":"https://api.github.com/repos/redbooth/nps_surveys/stargazers","contributors_url":"https://api.github.com/repos/redbooth/nps_surveys/contributors","subscribers_url":"https://api.github.com/repos/redbooth/nps_surveys/subscribers","subscription_url":"https://api.github.com/repos/redbooth/nps_surveys/subscription","commits_url":"https://api.github.com/repos/redbooth/nps_surveys/commits{/sha}","git_commits_url":"https://api.github.com/repos/redbooth/nps_surveys/git/commits{/sha}","comments_url":"https://api.github.com/repos/redbooth/nps_surveys/comments{/number}","issue_comment_url":"https://api.github.com/repos/redbooth/nps_surveys/issues/comments{/number}","contents_url":"https://api.github.com/repos/redbooth/nps_surveys/contents/{+path}","compare_url":"https://api.github.com/repos/redbooth/nps_surveys/compare/{base}...{head}","merges_url":"https://api.github.com/repos/redbooth/nps_surveys/merges","archive_url":"https://api.github.com/repos/redbooth/nps_surveys/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/redbooth/nps_surveys/downloads","issues_url":"https://api.github.com/repos/redbooth/nps_surveys/issues{/number}","pulls_url":"https://api.github.com/repos/redbooth/nps_surveys/pulls{/number}","milestones_url":"https://api.github.com/repos/redbooth/nps_surveys/milestones{/number}","notifications_url":"https://api.github.com/repos/redbooth/nps_surveys/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/redbooth/nps_surveys/labels{/name}","releases_url":"https://api.github.com/repos/redbooth/nps_surveys/releases{/id}","deployments_url":"https://api.github.com/repos/redbooth/nps_surveys/deployments","created_at":"2016-07-21T08:18:43Z","updated_at":"2016-07-21T09:07:17Z","pushed_at":"2016-07-21T14:02:19Z","git_url":"git://github.com/redbooth/nps_surveys.git","ssh_url":"git@github.com:redbooth/nps_surveys.git","clone_url":"https://github.com/redbooth/nps_surveys.git","svn_url":"https://github.com/redbooth/nps_surveys","homepage":null,"size":20,"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":"redbooth:master","ref":"master","sha":"676aebbdcaece4d80a736bb3dd47530caf4cd3b9","user":{"login":"redbooth","id":7304334,"avatar_url":"https://avatars.githubusercontent.com/u/7304334?v=3","gravatar_id":"","url":"https://api.github.com/users/redbooth","html_url":"https://github.com/redbooth","followers_url":"https://api.github.com/users/redbooth/followers","following_url":"https://api.github.com/users/redbooth/following{/other_user}","gists_url":"https://api.github.com/users/redbooth/gists{/gist_id}","starred_url":"https://api.github.com/users/redbooth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redbooth/subscriptions","organizations_url":"https://api.github.com/users/redbooth/orgs","repos_url":"https://api.github.com/users/redbooth/repos","events_url":"https://api.github.com/users/redbooth/events{/privacy}","received_events_url":"https://api.github.com/users/redbooth/received_events","type":"Organization","site_admin":false},"repo":{"id":63850634,"name":"nps_surveys","full_name":"redbooth/nps_surveys","owner":{"login":"redbooth","id":7304334,"avatar_url":"https://avatars.githubusercontent.com/u/7304334?v=3","gravatar_id":"","url":"https://api.github.com/users/redbooth","html_url":"https://github.com/redbooth","followers_url":"https://api.github.com/users/redbooth/followers","following_url":"https://api.github.com/users/redbooth/following{/other_user}","gists_url":"https://api.github.com/users/redbooth/gists{/gist_id}","starred_url":"https://api.github.com/users/redbooth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redbooth/subscriptions","organizations_url":"https://api.github.com/users/redbooth/orgs","repos_url":"https://api.github.com/users/redbooth/repos","events_url":"https://api.github.com/users/redbooth/events{/privacy}","received_events_url":"https://api.github.com/users/redbooth/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/redbooth/nps_surveys","description":"Rails engine to add NPS surveys to your application","fork":false,"url":"https://api.github.com/repos/redbooth/nps_surveys","forks_url":"https://api.github.com/repos/redbooth/nps_surveys/forks","keys_url":"https://api.github.com/repos/redbooth/nps_surveys/keys{/key_id}","collaborators_url":"https://api.github.com/repos/redbooth/nps_surveys/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/redbooth/nps_surveys/teams","hooks_url":"https://api.github.com/repos/redbooth/nps_surveys/hooks","issue_events_url":"https://api.github.com/repos/redbooth/nps_surveys/issues/events{/number}","events_url":"https://api.github.com/repos/redbooth/nps_surveys/events","assignees_url":"https://api.github.com/repos/redbooth/nps_surveys/assignees{/user}","branches_url":"https://api.github.com/repos/redbooth/nps_surveys/branches{/branch}","tags_url":"https://api.github.com/repos/redbooth/nps_surveys/tags","blobs_url":"https://api.github.com/repos/redbooth/nps_surveys/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/redbooth/nps_surveys/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/redbooth/nps_surveys/git/refs{/sha}","trees_url":"https://api.github.com/repos/redbooth/nps_surveys/git/trees{/sha}","statuses_url":"https://api.github.com/repos/redbooth/nps_surveys/statuses/{sha}","languages_url":"https://api.github.com/repos/redbooth/nps_surveys/languages","stargazers_url":"https://api.github.com/repos/redbooth/nps_surveys/stargazers","contributors_url":"https://api.github.com/repos/redbooth/nps_surveys/contributors","subscribers_url":"https://api.github.com/repos/redbooth/nps_surveys/subscribers","subscription_url":"https://api.github.com/repos/redbooth/nps_surveys/subscription","commits_url":"https://api.github.com/repos/redbooth/nps_surveys/commits{/sha}","git_commits_url":"https://api.github.com/repos/redbooth/nps_surveys/git/commits{/sha}","comments_url":"https://api.github.com/repos/redbooth/nps_surveys/comments{/number}","issue_comment_url":"https://api.github.com/repos/redbooth/nps_surveys/issues/comments{/number}","contents_url":"https://api.github.com/repos/redbooth/nps_surveys/contents/{+path}","compare_url":"https://api.github.com/repos/redbooth/nps_surveys/compare/{base}...{head}","merges_url":"https://api.github.com/repos/redbooth/nps_surveys/merges","archive_url":"https://api.github.com/repos/redbooth/nps_surveys/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/redbooth/nps_surveys/downloads","issues_url":"https://api.github.com/repos/redbooth/nps_surveys/issues{/number}","pulls_url":"https://api.github.com/repos/redbooth/nps_surveys/pulls{/number}","milestones_url":"https://api.github.com/repos/redbooth/nps_surveys/milestones{/number}","notifications_url":"https://api.github.com/repos/redbooth/nps_surveys/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/redbooth/nps_surveys/labels{/name}","releases_url":"https://api.github.com/repos/redbooth/nps_surveys/releases{/id}","deployments_url":"https://api.github.com/repos/redbooth/nps_surveys/deployments","created_at":"2016-07-21T08:18:43Z","updated_at":"2016-07-21T09:07:17Z","pushed_at":"2016-07-21T14:02:19Z","git_url":"git://github.com/redbooth/nps_surveys.git","ssh_url":"git@github.com:redbooth/nps_surveys.git","clone_url":"https://github.com/redbooth/nps_surveys.git","svn_url":"https://github.com/redbooth/nps_surveys","homepage":null,"size":20,"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/redbooth/nps_surveys/pulls/1"},"html":{"href":"https://github.com/redbooth/nps_surveys/pull/1"},"issue":{"href":"https://api.github.com/repos/redbooth/nps_surveys/issues/1"},"comments":{"href":"https://api.github.com/repos/redbooth/nps_surveys/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/redbooth/nps_surveys/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/redbooth/nps_surveys/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/redbooth/nps_surveys/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/redbooth/nps_surveys/statuses/447826eb31e5aecaba26971a841568fcdfdb5654"}}}}
{"actor":{"display_login":"enricostano"}}