{"action":"created","comment":{"url":"https://api.github.com/repos/Kriegzilla/smashladder/pulls/comments/41649600","id":41649600,"diff_hunk":"@@ -57,6 +57,21 @@ def approve\n     redirect_to users_path\n   end\n \n+  def destroy\n+    @game = Game.find(params[:id])\n+    if signed_in? && (current_user == @game.player_2 || current_user == @game.player_1 )","path":"app/controllers/games_controller.rb","position":6,"original_position":6,"commit_id":"59f2bcb6680293c400829bd4d36a6e6d1a7a7064","original_commit_id":"59f2bcb6680293c400829bd4d36a6e6d1a7a7064","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":"Line is too long. [88/80]<br>Space inside parentheses detected.","created_at":"2015-10-09T16:27:43Z","updated_at":"2015-10-09T16:27:43Z","html_url":"https://github.com/Kriegzilla/smashladder/pull/19#discussion_r41649600","pull_request_url":"https://api.github.com/repos/Kriegzilla/smashladder/pulls/19","_links":{"self":{"href":"https://api.github.com/repos/Kriegzilla/smashladder/pulls/comments/41649600"},"html":{"href":"https://github.com/Kriegzilla/smashladder/pull/19#discussion_r41649600"},"pull_request":{"href":"https://api.github.com/repos/Kriegzilla/smashladder/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/Kriegzilla/smashladder/pulls/19","id":47292266,"html_url":"https://github.com/Kriegzilla/smashladder/pull/19","diff_url":"https://github.com/Kriegzilla/smashladder/pull/19.diff","patch_url":"https://github.com/Kriegzilla/smashladder/pull/19.patch","issue_url":"https://api.github.com/repos/Kriegzilla/smashladder/issues/19","number":19,"state":"open","locked":false,"title":"users can now delete pending games","user":{"login":"Kriegzilla","id":13110703,"avatar_url":"https://avatars.githubusercontent.com/u/13110703?v=3","gravatar_id":"","url":"https://api.github.com/users/Kriegzilla","html_url":"https://github.com/Kriegzilla","followers_url":"https://api.github.com/users/Kriegzilla/followers","following_url":"https://api.github.com/users/Kriegzilla/following{/other_user}","gists_url":"https://api.github.com/users/Kriegzilla/gists{/gist_id}","starred_url":"https://api.github.com/users/Kriegzilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kriegzilla/subscriptions","organizations_url":"https://api.github.com/users/Kriegzilla/orgs","repos_url":"https://api.github.com/users/Kriegzilla/repos","events_url":"https://api.github.com/users/Kriegzilla/events{/privacy}","received_events_url":"https://api.github.com/users/Kriegzilla/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-09T16:27:38Z","updated_at":"2015-10-09T16:27:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"aabc01af8a92a77a70424e742da3cf35f37698ac","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Kriegzilla/smashladder/pulls/19/commits","review_comments_url":"https://api.github.com/repos/Kriegzilla/smashladder/pulls/19/comments","review_comment_url":"https://api.github.com/repos/Kriegzilla/smashladder/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Kriegzilla/smashladder/issues/19/comments","statuses_url":"https://api.github.com/repos/Kriegzilla/smashladder/statuses/59f2bcb6680293c400829bd4d36a6e6d1a7a7064","head":{"label":"Kriegzilla:add-delete-to-games","ref":"add-delete-to-games","sha":"59f2bcb6680293c400829bd4d36a6e6d1a7a7064","user":{"login":"Kriegzilla","id":13110703,"avatar_url":"https://avatars.githubusercontent.com/u/13110703?v=3","gravatar_id":"","url":"https://api.github.com/users/Kriegzilla","html_url":"https://github.com/Kriegzilla","followers_url":"https://api.github.com/users/Kriegzilla/followers","following_url":"https://api.github.com/users/Kriegzilla/following{/other_user}","gists_url":"https://api.github.com/users/Kriegzilla/gists{/gist_id}","starred_url":"https://api.github.com/users/Kriegzilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kriegzilla/subscriptions","organizations_url":"https://api.github.com/users/Kriegzilla/orgs","repos_url":"https://api.github.com/users/Kriegzilla/repos","events_url":"https://api.github.com/users/Kriegzilla/events{/privacy}","received_events_url":"https://api.github.com/users/Kriegzilla/received_events","type":"User","site_admin":false},"repo":{"id":43706007,"name":"smashladder","full_name":"Kriegzilla/smashladder","owner":{"login":"Kriegzilla","id":13110703,"avatar_url":"https://avatars.githubusercontent.com/u/13110703?v=3","gravatar_id":"","url":"https://api.github.com/users/Kriegzilla","html_url":"https://github.com/Kriegzilla","followers_url":"https://api.github.com/users/Kriegzilla/followers","following_url":"https://api.github.com/users/Kriegzilla/following{/other_user}","gists_url":"https://api.github.com/users/Kriegzilla/gists{/gist_id}","starred_url":"https://api.github.com/users/Kriegzilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kriegzilla/subscriptions","organizations_url":"https://api.github.com/users/Kriegzilla/orgs","repos_url":"https://api.github.com/users/Kriegzilla/repos","events_url":"https://api.github.com/users/Kriegzilla/events{/privacy}","received_events_url":"https://api.github.com/users/Kriegzilla/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Kriegzilla/smashladder","description":"A dynamic Super Smash Bros Melee leaderboard","fork":false,"url":"https://api.github.com/repos/Kriegzilla/smashladder","forks_url":"https://api.github.com/repos/Kriegzilla/smashladder/forks","keys_url":"https://api.github.com/repos/Kriegzilla/smashladder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Kriegzilla/smashladder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Kriegzilla/smashladder/teams","hooks_url":"https://api.github.com/repos/Kriegzilla/smashladder/hooks","issue_events_url":"https://api.github.com/repos/Kriegzilla/smashladder/issues/events{/number}","events_url":"https://api.github.com/repos/Kriegzilla/smashladder/events","assignees_url":"https://api.github.com/repos/Kriegzilla/smashladder/assignees{/user}","branches_url":"https://api.github.com/repos/Kriegzilla/smashladder/branches{/branch}","tags_url":"https://api.github.com/repos/Kriegzilla/smashladder/tags","blobs_url":"https://api.github.com/repos/Kriegzilla/smashladder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Kriegzilla/smashladder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Kriegzilla/smashladder/git/refs{/sha}","trees_url":"https://api.github.com/repos/Kriegzilla/smashladder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Kriegzilla/smashladder/statuses/{sha}","languages_url":"https://api.github.com/repos/Kriegzilla/smashladder/languages","stargazers_url":"https://api.github.com/repos/Kriegzilla/smashladder/stargazers","contributors_url":"https://api.github.com/repos/Kriegzilla/smashladder/contributors","subscribers_url":"https://api.github.com/repos/Kriegzilla/smashladder/subscribers","subscription_url":"https://api.github.com/repos/Kriegzilla/smashladder/subscription","commits_url":"https://api.github.com/repos/Kriegzilla/smashladder/commits{/sha}","git_commits_url":"https://api.github.com/repos/Kriegzilla/smashladder/git/commits{/sha}","comments_url":"https://api.github.com/repos/Kriegzilla/smashladder/comments{/number}","issue_comment_url":"https://api.github.com/repos/Kriegzilla/smashladder/issues/comments{/number}","contents_url":"https://api.github.com/repos/Kriegzilla/smashladder/contents/{+path}","compare_url":"https://api.github.com/repos/Kriegzilla/smashladder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Kriegzilla/smashladder/merges","archive_url":"https://api.github.com/repos/Kriegzilla/smashladder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Kriegzilla/smashladder/downloads","issues_url":"https://api.github.com/repos/Kriegzilla/smashladder/issues{/number}","pulls_url":"https://api.github.com/repos/Kriegzilla/smashladder/pulls{/number}","milestones_url":"https://api.github.com/repos/Kriegzilla/smashladder/milestones{/number}","notifications_url":"https://api.github.com/repos/Kriegzilla/smashladder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Kriegzilla/smashladder/labels{/name}","releases_url":"https://api.github.com/repos/Kriegzilla/smashladder/releases{/id}","created_at":"2015-10-05T18:45:42Z","updated_at":"2015-10-05T18:46:47Z","pushed_at":"2015-10-09T16:27:38Z","git_url":"git://github.com/Kriegzilla/smashladder.git","ssh_url":"git@github.com:Kriegzilla/smashladder.git","clone_url":"https://github.com/Kriegzilla/smashladder.git","svn_url":"https://github.com/Kriegzilla/smashladder","homepage":null,"size":996,"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":"Kriegzilla:master","ref":"master","sha":"119b63998280168b15dc1d99720b496002c5504c","user":{"login":"Kriegzilla","id":13110703,"avatar_url":"https://avatars.githubusercontent.com/u/13110703?v=3","gravatar_id":"","url":"https://api.github.com/users/Kriegzilla","html_url":"https://github.com/Kriegzilla","followers_url":"https://api.github.com/users/Kriegzilla/followers","following_url":"https://api.github.com/users/Kriegzilla/following{/other_user}","gists_url":"https://api.github.com/users/Kriegzilla/gists{/gist_id}","starred_url":"https://api.github.com/users/Kriegzilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kriegzilla/subscriptions","organizations_url":"https://api.github.com/users/Kriegzilla/orgs","repos_url":"https://api.github.com/users/Kriegzilla/repos","events_url":"https://api.github.com/users/Kriegzilla/events{/privacy}","received_events_url":"https://api.github.com/users/Kriegzilla/received_events","type":"User","site_admin":false},"repo":{"id":43706007,"name":"smashladder","full_name":"Kriegzilla/smashladder","owner":{"login":"Kriegzilla","id":13110703,"avatar_url":"https://avatars.githubusercontent.com/u/13110703?v=3","gravatar_id":"","url":"https://api.github.com/users/Kriegzilla","html_url":"https://github.com/Kriegzilla","followers_url":"https://api.github.com/users/Kriegzilla/followers","following_url":"https://api.github.com/users/Kriegzilla/following{/other_user}","gists_url":"https://api.github.com/users/Kriegzilla/gists{/gist_id}","starred_url":"https://api.github.com/users/Kriegzilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kriegzilla/subscriptions","organizations_url":"https://api.github.com/users/Kriegzilla/orgs","repos_url":"https://api.github.com/users/Kriegzilla/repos","events_url":"https://api.github.com/users/Kriegzilla/events{/privacy}","received_events_url":"https://api.github.com/users/Kriegzilla/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Kriegzilla/smashladder","description":"A dynamic Super Smash Bros Melee leaderboard","fork":false,"url":"https://api.github.com/repos/Kriegzilla/smashladder","forks_url":"https://api.github.com/repos/Kriegzilla/smashladder/forks","keys_url":"https://api.github.com/repos/Kriegzilla/smashladder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Kriegzilla/smashladder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Kriegzilla/smashladder/teams","hooks_url":"https://api.github.com/repos/Kriegzilla/smashladder/hooks","issue_events_url":"https://api.github.com/repos/Kriegzilla/smashladder/issues/events{/number}","events_url":"https://api.github.com/repos/Kriegzilla/smashladder/events","assignees_url":"https://api.github.com/repos/Kriegzilla/smashladder/assignees{/user}","branches_url":"https://api.github.com/repos/Kriegzilla/smashladder/branches{/branch}","tags_url":"https://api.github.com/repos/Kriegzilla/smashladder/tags","blobs_url":"https://api.github.com/repos/Kriegzilla/smashladder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Kriegzilla/smashladder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Kriegzilla/smashladder/git/refs{/sha}","trees_url":"https://api.github.com/repos/Kriegzilla/smashladder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Kriegzilla/smashladder/statuses/{sha}","languages_url":"https://api.github.com/repos/Kriegzilla/smashladder/languages","stargazers_url":"https://api.github.com/repos/Kriegzilla/smashladder/stargazers","contributors_url":"https://api.github.com/repos/Kriegzilla/smashladder/contributors","subscribers_url":"https://api.github.com/repos/Kriegzilla/smashladder/subscribers","subscription_url":"https://api.github.com/repos/Kriegzilla/smashladder/subscription","commits_url":"https://api.github.com/repos/Kriegzilla/smashladder/commits{/sha}","git_commits_url":"https://api.github.com/repos/Kriegzilla/smashladder/git/commits{/sha}","comments_url":"https://api.github.com/repos/Kriegzilla/smashladder/comments{/number}","issue_comment_url":"https://api.github.com/repos/Kriegzilla/smashladder/issues/comments{/number}","contents_url":"https://api.github.com/repos/Kriegzilla/smashladder/contents/{+path}","compare_url":"https://api.github.com/repos/Kriegzilla/smashladder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Kriegzilla/smashladder/merges","archive_url":"https://api.github.com/repos/Kriegzilla/smashladder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Kriegzilla/smashladder/downloads","issues_url":"https://api.github.com/repos/Kriegzilla/smashladder/issues{/number}","pulls_url":"https://api.github.com/repos/Kriegzilla/smashladder/pulls{/number}","milestones_url":"https://api.github.com/repos/Kriegzilla/smashladder/milestones{/number}","notifications_url":"https://api.github.com/repos/Kriegzilla/smashladder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Kriegzilla/smashladder/labels{/name}","releases_url":"https://api.github.com/repos/Kriegzilla/smashladder/releases{/id}","created_at":"2015-10-05T18:45:42Z","updated_at":"2015-10-05T18:46:47Z","pushed_at":"2015-10-09T16:27:38Z","git_url":"git://github.com/Kriegzilla/smashladder.git","ssh_url":"git@github.com:Kriegzilla/smashladder.git","clone_url":"https://github.com/Kriegzilla/smashladder.git","svn_url":"https://github.com/Kriegzilla/smashladder","homepage":null,"size":996,"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/Kriegzilla/smashladder/pulls/19"},"html":{"href":"https://github.com/Kriegzilla/smashladder/pull/19"},"issue":{"href":"https://api.github.com/repos/Kriegzilla/smashladder/issues/19"},"comments":{"href":"https://api.github.com/repos/Kriegzilla/smashladder/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/Kriegzilla/smashladder/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/Kriegzilla/smashladder/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Kriegzilla/smashladder/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/Kriegzilla/smashladder/statuses/59f2bcb6680293c400829bd4d36a6e6d1a7a7064"}}}}