{"action":"created","comment":{"url":"https://api.github.com/repos/carystokes/cookie_monstah/pulls/comments/82198730","pull_request_review_id":3122128,"id":82198730,"diff_hunk":"@@ -19,6 +19,32 @@ def create\n     end\n   end\n \n+\n+  def edit\n+    @review = Review.find(params[:id])\n+  end\n+\n+  def update\n+    @review = Review.find(params[:id])\n+\n+    if @review.update_attributes(review_params)\n+      flash[:notice] = \"Review successfully edited\"\n+      redirect_to @review.recipe\n+    else\n+      flash[:notice] = @review.errors.full_messages.join(', ')\n+      render 'edit'\n+    end\n+  end\n+\n+  def destroy\n+    review = Review.find(params[:id])\n+    recipe = review.recipe\n+    review.destroy\n+    flash[:success] = \"Review successfully deleted\"\n+    redirect_to recipe\n+  end\n+\n+","path":"app/controllers/reviews_controller.rb","position":29,"original_position":29,"commit_id":"6833adc03ff5253b2deff15000298eb6fbfc6602","original_commit_id":"6833adc03ff5253b2deff15000298eb6fbfc6602","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Extra blank line detected.","created_at":"2016-10-06T14:17:51Z","updated_at":"2016-10-06T14:17:52Z","html_url":"https://github.com/carystokes/cookie_monstah/pull/11#discussion_r82198730","pull_request_url":"https://api.github.com/repos/carystokes/cookie_monstah/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/carystokes/cookie_monstah/pulls/comments/82198730"},"html":{"href":"https://github.com/carystokes/cookie_monstah/pull/11#discussion_r82198730"},"pull_request":{"href":"https://api.github.com/repos/carystokes/cookie_monstah/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/carystokes/cookie_monstah/pulls/11","id":88268859,"html_url":"https://github.com/carystokes/cookie_monstah/pull/11","diff_url":"https://github.com/carystokes/cookie_monstah/pull/11.diff","patch_url":"https://github.com/carystokes/cookie_monstah/pull/11.patch","issue_url":"https://api.github.com/repos/carystokes/cookie_monstah/issues/11","number":11,"state":"open","locked":false,"title":"Admin features","user":{"login":"shanajeanh","id":14175164,"avatar_url":"https://avatars.githubusercontent.com/u/14175164?v=3","gravatar_id":"","url":"https://api.github.com/users/shanajeanh","html_url":"https://github.com/shanajeanh","followers_url":"https://api.github.com/users/shanajeanh/followers","following_url":"https://api.github.com/users/shanajeanh/following{/other_user}","gists_url":"https://api.github.com/users/shanajeanh/gists{/gist_id}","starred_url":"https://api.github.com/users/shanajeanh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shanajeanh/subscriptions","organizations_url":"https://api.github.com/users/shanajeanh/orgs","repos_url":"https://api.github.com/users/shanajeanh/repos","events_url":"https://api.github.com/users/shanajeanh/events{/privacy}","received_events_url":"https://api.github.com/users/shanajeanh/received_events","type":"User","site_admin":false},"body":"There are no admin features in this branch it's actually editing and deleting reviews mostly","created_at":"2016-10-06T14:07:25Z","updated_at":"2016-10-06T14:17:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1bb168227b8d5c107932ddbd7db0bd6697c97499","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/carystokes/cookie_monstah/pulls/11/commits","review_comments_url":"https://api.github.com/repos/carystokes/cookie_monstah/pulls/11/comments","review_comment_url":"https://api.github.com/repos/carystokes/cookie_monstah/pulls/comments{/number}","comments_url":"https://api.github.com/repos/carystokes/cookie_monstah/issues/11/comments","statuses_url":"https://api.github.com/repos/carystokes/cookie_monstah/statuses/6833adc03ff5253b2deff15000298eb6fbfc6602","head":{"label":"carystokes:admin-features","ref":"admin-features","sha":"6833adc03ff5253b2deff15000298eb6fbfc6602","user":{"login":"carystokes","id":18637300,"avatar_url":"https://avatars.githubusercontent.com/u/18637300?v=3","gravatar_id":"","url":"https://api.github.com/users/carystokes","html_url":"https://github.com/carystokes","followers_url":"https://api.github.com/users/carystokes/followers","following_url":"https://api.github.com/users/carystokes/following{/other_user}","gists_url":"https://api.github.com/users/carystokes/gists{/gist_id}","starred_url":"https://api.github.com/users/carystokes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carystokes/subscriptions","organizations_url":"https://api.github.com/users/carystokes/orgs","repos_url":"https://api.github.com/users/carystokes/repos","events_url":"https://api.github.com/users/carystokes/events{/privacy}","received_events_url":"https://api.github.com/users/carystokes/received_events","type":"User","site_admin":false},"repo":{"id":69880278,"name":"cookie_monstah","full_name":"carystokes/cookie_monstah","owner":{"login":"carystokes","id":18637300,"avatar_url":"https://avatars.githubusercontent.com/u/18637300?v=3","gravatar_id":"","url":"https://api.github.com/users/carystokes","html_url":"https://github.com/carystokes","followers_url":"https://api.github.com/users/carystokes/followers","following_url":"https://api.github.com/users/carystokes/following{/other_user}","gists_url":"https://api.github.com/users/carystokes/gists{/gist_id}","starred_url":"https://api.github.com/users/carystokes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carystokes/subscriptions","organizations_url":"https://api.github.com/users/carystokes/orgs","repos_url":"https://api.github.com/users/carystokes/repos","events_url":"https://api.github.com/users/carystokes/events{/privacy}","received_events_url":"https://api.github.com/users/carystokes/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/carystokes/cookie_monstah","description":null,"fork":false,"url":"https://api.github.com/repos/carystokes/cookie_monstah","forks_url":"https://api.github.com/repos/carystokes/cookie_monstah/forks","keys_url":"https://api.github.com/repos/carystokes/cookie_monstah/keys{/key_id}","collaborators_url":"https://api.github.com/repos/carystokes/cookie_monstah/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/carystokes/cookie_monstah/teams","hooks_url":"https://api.github.com/repos/carystokes/cookie_monstah/hooks","issue_events_url":"https://api.github.com/repos/carystokes/cookie_monstah/issues/events{/number}","events_url":"https://api.github.com/repos/carystokes/cookie_monstah/events","assignees_url":"https://api.github.com/repos/carystokes/cookie_monstah/assignees{/user}","branches_url":"https://api.github.com/repos/carystokes/cookie_monstah/branches{/branch}","tags_url":"https://api.github.com/repos/carystokes/cookie_monstah/tags","blobs_url":"https://api.github.com/repos/carystokes/cookie_monstah/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/carystokes/cookie_monstah/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/carystokes/cookie_monstah/git/refs{/sha}","trees_url":"https://api.github.com/repos/carystokes/cookie_monstah/git/trees{/sha}","statuses_url":"https://api.github.com/repos/carystokes/cookie_monstah/statuses/{sha}","languages_url":"https://api.github.com/repos/carystokes/cookie_monstah/languages","stargazers_url":"https://api.github.com/repos/carystokes/cookie_monstah/stargazers","contributors_url":"https://api.github.com/repos/carystokes/cookie_monstah/contributors","subscribers_url":"https://api.github.com/repos/carystokes/cookie_monstah/subscribers","subscription_url":"https://api.github.com/repos/carystokes/cookie_monstah/subscription","commits_url":"https://api.github.com/repos/carystokes/cookie_monstah/commits{/sha}","git_commits_url":"https://api.github.com/repos/carystokes/cookie_monstah/git/commits{/sha}","comments_url":"https://api.github.com/repos/carystokes/cookie_monstah/comments{/number}","issue_comment_url":"https://api.github.com/repos/carystokes/cookie_monstah/issues/comments{/number}","contents_url":"https://api.github.com/repos/carystokes/cookie_monstah/contents/{+path}","compare_url":"https://api.github.com/repos/carystokes/cookie_monstah/compare/{base}...{head}","merges_url":"https://api.github.com/repos/carystokes/cookie_monstah/merges","archive_url":"https://api.github.com/repos/carystokes/cookie_monstah/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/carystokes/cookie_monstah/downloads","issues_url":"https://api.github.com/repos/carystokes/cookie_monstah/issues{/number}","pulls_url":"https://api.github.com/repos/carystokes/cookie_monstah/pulls{/number}","milestones_url":"https://api.github.com/repos/carystokes/cookie_monstah/milestones{/number}","notifications_url":"https://api.github.com/repos/carystokes/cookie_monstah/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/carystokes/cookie_monstah/labels{/name}","releases_url":"https://api.github.com/repos/carystokes/cookie_monstah/releases{/id}","deployments_url":"https://api.github.com/repos/carystokes/cookie_monstah/deployments","created_at":"2016-10-03T14:45:21Z","updated_at":"2016-10-03T15:08:55Z","pushed_at":"2016-10-06T14:17:43Z","git_url":"git://github.com/carystokes/cookie_monstah.git","ssh_url":"git@github.com:carystokes/cookie_monstah.git","clone_url":"https://github.com/carystokes/cookie_monstah.git","svn_url":"https://github.com/carystokes/cookie_monstah","homepage":null,"size":128,"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":"carystokes:master","ref":"master","sha":"d45a18ce547fb12f4fb3455c484acaee1f78a5fa","user":{"login":"carystokes","id":18637300,"avatar_url":"https://avatars.githubusercontent.com/u/18637300?v=3","gravatar_id":"","url":"https://api.github.com/users/carystokes","html_url":"https://github.com/carystokes","followers_url":"https://api.github.com/users/carystokes/followers","following_url":"https://api.github.com/users/carystokes/following{/other_user}","gists_url":"https://api.github.com/users/carystokes/gists{/gist_id}","starred_url":"https://api.github.com/users/carystokes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carystokes/subscriptions","organizations_url":"https://api.github.com/users/carystokes/orgs","repos_url":"https://api.github.com/users/carystokes/repos","events_url":"https://api.github.com/users/carystokes/events{/privacy}","received_events_url":"https://api.github.com/users/carystokes/received_events","type":"User","site_admin":false},"repo":{"id":69880278,"name":"cookie_monstah","full_name":"carystokes/cookie_monstah","owner":{"login":"carystokes","id":18637300,"avatar_url":"https://avatars.githubusercontent.com/u/18637300?v=3","gravatar_id":"","url":"https://api.github.com/users/carystokes","html_url":"https://github.com/carystokes","followers_url":"https://api.github.com/users/carystokes/followers","following_url":"https://api.github.com/users/carystokes/following{/other_user}","gists_url":"https://api.github.com/users/carystokes/gists{/gist_id}","starred_url":"https://api.github.com/users/carystokes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carystokes/subscriptions","organizations_url":"https://api.github.com/users/carystokes/orgs","repos_url":"https://api.github.com/users/carystokes/repos","events_url":"https://api.github.com/users/carystokes/events{/privacy}","received_events_url":"https://api.github.com/users/carystokes/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/carystokes/cookie_monstah","description":null,"fork":false,"url":"https://api.github.com/repos/carystokes/cookie_monstah","forks_url":"https://api.github.com/repos/carystokes/cookie_monstah/forks","keys_url":"https://api.github.com/repos/carystokes/cookie_monstah/keys{/key_id}","collaborators_url":"https://api.github.com/repos/carystokes/cookie_monstah/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/carystokes/cookie_monstah/teams","hooks_url":"https://api.github.com/repos/carystokes/cookie_monstah/hooks","issue_events_url":"https://api.github.com/repos/carystokes/cookie_monstah/issues/events{/number}","events_url":"https://api.github.com/repos/carystokes/cookie_monstah/events","assignees_url":"https://api.github.com/repos/carystokes/cookie_monstah/assignees{/user}","branches_url":"https://api.github.com/repos/carystokes/cookie_monstah/branches{/branch}","tags_url":"https://api.github.com/repos/carystokes/cookie_monstah/tags","blobs_url":"https://api.github.com/repos/carystokes/cookie_monstah/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/carystokes/cookie_monstah/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/carystokes/cookie_monstah/git/refs{/sha}","trees_url":"https://api.github.com/repos/carystokes/cookie_monstah/git/trees{/sha}","statuses_url":"https://api.github.com/repos/carystokes/cookie_monstah/statuses/{sha}","languages_url":"https://api.github.com/repos/carystokes/cookie_monstah/languages","stargazers_url":"https://api.github.com/repos/carystokes/cookie_monstah/stargazers","contributors_url":"https://api.github.com/repos/carystokes/cookie_monstah/contributors","subscribers_url":"https://api.github.com/repos/carystokes/cookie_monstah/subscribers","subscription_url":"https://api.github.com/repos/carystokes/cookie_monstah/subscription","commits_url":"https://api.github.com/repos/carystokes/cookie_monstah/commits{/sha}","git_commits_url":"https://api.github.com/repos/carystokes/cookie_monstah/git/commits{/sha}","comments_url":"https://api.github.com/repos/carystokes/cookie_monstah/comments{/number}","issue_comment_url":"https://api.github.com/repos/carystokes/cookie_monstah/issues/comments{/number}","contents_url":"https://api.github.com/repos/carystokes/cookie_monstah/contents/{+path}","compare_url":"https://api.github.com/repos/carystokes/cookie_monstah/compare/{base}...{head}","merges_url":"https://api.github.com/repos/carystokes/cookie_monstah/merges","archive_url":"https://api.github.com/repos/carystokes/cookie_monstah/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/carystokes/cookie_monstah/downloads","issues_url":"https://api.github.com/repos/carystokes/cookie_monstah/issues{/number}","pulls_url":"https://api.github.com/repos/carystokes/cookie_monstah/pulls{/number}","milestones_url":"https://api.github.com/repos/carystokes/cookie_monstah/milestones{/number}","notifications_url":"https://api.github.com/repos/carystokes/cookie_monstah/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/carystokes/cookie_monstah/labels{/name}","releases_url":"https://api.github.com/repos/carystokes/cookie_monstah/releases{/id}","deployments_url":"https://api.github.com/repos/carystokes/cookie_monstah/deployments","created_at":"2016-10-03T14:45:21Z","updated_at":"2016-10-03T15:08:55Z","pushed_at":"2016-10-06T14:17:43Z","git_url":"git://github.com/carystokes/cookie_monstah.git","ssh_url":"git@github.com:carystokes/cookie_monstah.git","clone_url":"https://github.com/carystokes/cookie_monstah.git","svn_url":"https://github.com/carystokes/cookie_monstah","homepage":null,"size":128,"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/carystokes/cookie_monstah/pulls/11"},"html":{"href":"https://github.com/carystokes/cookie_monstah/pull/11"},"issue":{"href":"https://api.github.com/repos/carystokes/cookie_monstah/issues/11"},"comments":{"href":"https://api.github.com/repos/carystokes/cookie_monstah/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/carystokes/cookie_monstah/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/carystokes/cookie_monstah/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/carystokes/cookie_monstah/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/carystokes/cookie_monstah/statuses/6833adc03ff5253b2deff15000298eb6fbfc6602"}}}}
{"actor":{"display_login":"houndci-bot"}}