{"action":"created","comment":{"url":"https://api.github.com/repos/dgrosenblatt/threesacloud/pulls/comments/22537058","id":22537058,"diff_hunk":"@@ -0,0 +1,21 @@\n+module Admin\n+  class UsersController < ApplicationController\n+    before_action :authorize_user\n+\n+    def index\n+      @users = User.all\n+    end\n+\n+    def destroy\n+      @user = User.find(params[:id])\n+      if @user == current_user\n+        flash[:notice] = \"You can't delete yourself.\"\n+      else\n+        flash[:notice] = \"Account for #{@user.email} has been deleted.\"\n+        @user.delete\n+      end\n+      redirect_to admin_users_path\n+    end\n+","path":"app/controllers/admin/users_controller.rb","position":19,"original_position":19,"commit_id":"ebf209edca520066849e4574b3f19b321b41c374","original_commit_id":"ebf209edca520066849e4574b3f19b321b41c374","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":"Extra empty line detected at body end.","created_at":"2015-01-06T17:36:51Z","updated_at":"2015-01-06T17:36:51Z","html_url":"https://github.com/dgrosenblatt/threesacloud/pull/12#discussion_r22537058","pull_request_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/dgrosenblatt/threesacloud/pulls/comments/22537058"},"html":{"href":"https://github.com/dgrosenblatt/threesacloud/pull/12#discussion_r22537058"},"pull_request":{"href":"https://api.github.com/repos/dgrosenblatt/threesacloud/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/dgrosenblatt/threesacloud/pulls/12","id":26904139,"html_url":"https://github.com/dgrosenblatt/threesacloud/pull/12","diff_url":"https://github.com/dgrosenblatt/threesacloud/pull/12.diff","patch_url":"https://github.com/dgrosenblatt/threesacloud/pull/12.patch","issue_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/issues/12","number":12,"state":"open","locked":false,"title":"Admin","user":{"login":"dgrosenblatt","id":2251694,"avatar_url":"https://avatars.githubusercontent.com/u/2251694?v=3","gravatar_id":"","url":"https://api.github.com/users/dgrosenblatt","html_url":"https://github.com/dgrosenblatt","followers_url":"https://api.github.com/users/dgrosenblatt/followers","following_url":"https://api.github.com/users/dgrosenblatt/following{/other_user}","gists_url":"https://api.github.com/users/dgrosenblatt/gists{/gist_id}","starred_url":"https://api.github.com/users/dgrosenblatt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgrosenblatt/subscriptions","organizations_url":"https://api.github.com/users/dgrosenblatt/orgs","repos_url":"https://api.github.com/users/dgrosenblatt/repos","events_url":"https://api.github.com/users/dgrosenblatt/events{/privacy}","received_events_url":"https://api.github.com/users/dgrosenblatt/received_events","type":"User","site_admin":false},"body":"As as admin\r\nI want to view a list of users\r\nSo I can see who is using the website\r\n\r\nAn admin \r\nI want to delete users, items, and reviews at my own discretion\r\nSo I can maintain some sort of control and decorum on the website","created_at":"2015-01-06T17:36:41Z","updated_at":"2015-01-06T17:36:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/pulls/12/commits","review_comments_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/pulls/12/comments","review_comment_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/pulls/comments/{number}","comments_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/issues/12/comments","statuses_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/statuses/ebf209edca520066849e4574b3f19b321b41c374","head":{"label":"dgrosenblatt:admin","ref":"admin","sha":"ebf209edca520066849e4574b3f19b321b41c374","user":{"login":"dgrosenblatt","id":2251694,"avatar_url":"https://avatars.githubusercontent.com/u/2251694?v=3","gravatar_id":"","url":"https://api.github.com/users/dgrosenblatt","html_url":"https://github.com/dgrosenblatt","followers_url":"https://api.github.com/users/dgrosenblatt/followers","following_url":"https://api.github.com/users/dgrosenblatt/following{/other_user}","gists_url":"https://api.github.com/users/dgrosenblatt/gists{/gist_id}","starred_url":"https://api.github.com/users/dgrosenblatt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgrosenblatt/subscriptions","organizations_url":"https://api.github.com/users/dgrosenblatt/orgs","repos_url":"https://api.github.com/users/dgrosenblatt/repos","events_url":"https://api.github.com/users/dgrosenblatt/events{/privacy}","received_events_url":"https://api.github.com/users/dgrosenblatt/received_events","type":"User","site_admin":false},"repo":{"id":28601358,"name":"threesacloud","full_name":"dgrosenblatt/threesacloud","owner":{"login":"dgrosenblatt","id":2251694,"avatar_url":"https://avatars.githubusercontent.com/u/2251694?v=3","gravatar_id":"","url":"https://api.github.com/users/dgrosenblatt","html_url":"https://github.com/dgrosenblatt","followers_url":"https://api.github.com/users/dgrosenblatt/followers","following_url":"https://api.github.com/users/dgrosenblatt/following{/other_user}","gists_url":"https://api.github.com/users/dgrosenblatt/gists{/gist_id}","starred_url":"https://api.github.com/users/dgrosenblatt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgrosenblatt/subscriptions","organizations_url":"https://api.github.com/users/dgrosenblatt/orgs","repos_url":"https://api.github.com/users/dgrosenblatt/repos","events_url":"https://api.github.com/users/dgrosenblatt/events{/privacy}","received_events_url":"https://api.github.com/users/dgrosenblatt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dgrosenblatt/threesacloud","description":"","fork":false,"url":"https://api.github.com/repos/dgrosenblatt/threesacloud","forks_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/forks","keys_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/teams","hooks_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/hooks","issue_events_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/issues/events{/number}","events_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/events","assignees_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/assignees{/user}","branches_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/branches{/branch}","tags_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/tags","blobs_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/git/refs{/sha}","trees_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/statuses/{sha}","languages_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/languages","stargazers_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/stargazers","contributors_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/contributors","subscribers_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/subscribers","subscription_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/subscription","commits_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/commits{/sha}","git_commits_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/git/commits{/sha}","comments_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/comments{/number}","issue_comment_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/issues/comments/{number}","contents_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/contents/{+path}","compare_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/merges","archive_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/downloads","issues_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/issues{/number}","pulls_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/pulls{/number}","milestones_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/milestones{/number}","notifications_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/labels{/name}","releases_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/releases{/id}","created_at":"2014-12-29T18:14:42Z","updated_at":"2015-01-05T21:48:24Z","pushed_at":"2015-01-06T17:28:33Z","git_url":"git://github.com/dgrosenblatt/threesacloud.git","ssh_url":"git@github.com:dgrosenblatt/threesacloud.git","clone_url":"https://github.com/dgrosenblatt/threesacloud.git","svn_url":"https://github.com/dgrosenblatt/threesacloud","homepage":null,"size":704,"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":"dgrosenblatt:master","ref":"master","sha":"c81f4c1f194295357a67c6b9da3893351c5d679e","user":{"login":"dgrosenblatt","id":2251694,"avatar_url":"https://avatars.githubusercontent.com/u/2251694?v=3","gravatar_id":"","url":"https://api.github.com/users/dgrosenblatt","html_url":"https://github.com/dgrosenblatt","followers_url":"https://api.github.com/users/dgrosenblatt/followers","following_url":"https://api.github.com/users/dgrosenblatt/following{/other_user}","gists_url":"https://api.github.com/users/dgrosenblatt/gists{/gist_id}","starred_url":"https://api.github.com/users/dgrosenblatt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgrosenblatt/subscriptions","organizations_url":"https://api.github.com/users/dgrosenblatt/orgs","repos_url":"https://api.github.com/users/dgrosenblatt/repos","events_url":"https://api.github.com/users/dgrosenblatt/events{/privacy}","received_events_url":"https://api.github.com/users/dgrosenblatt/received_events","type":"User","site_admin":false},"repo":{"id":28601358,"name":"threesacloud","full_name":"dgrosenblatt/threesacloud","owner":{"login":"dgrosenblatt","id":2251694,"avatar_url":"https://avatars.githubusercontent.com/u/2251694?v=3","gravatar_id":"","url":"https://api.github.com/users/dgrosenblatt","html_url":"https://github.com/dgrosenblatt","followers_url":"https://api.github.com/users/dgrosenblatt/followers","following_url":"https://api.github.com/users/dgrosenblatt/following{/other_user}","gists_url":"https://api.github.com/users/dgrosenblatt/gists{/gist_id}","starred_url":"https://api.github.com/users/dgrosenblatt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dgrosenblatt/subscriptions","organizations_url":"https://api.github.com/users/dgrosenblatt/orgs","repos_url":"https://api.github.com/users/dgrosenblatt/repos","events_url":"https://api.github.com/users/dgrosenblatt/events{/privacy}","received_events_url":"https://api.github.com/users/dgrosenblatt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dgrosenblatt/threesacloud","description":"","fork":false,"url":"https://api.github.com/repos/dgrosenblatt/threesacloud","forks_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/forks","keys_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/teams","hooks_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/hooks","issue_events_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/issues/events{/number}","events_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/events","assignees_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/assignees{/user}","branches_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/branches{/branch}","tags_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/tags","blobs_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/git/refs{/sha}","trees_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/statuses/{sha}","languages_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/languages","stargazers_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/stargazers","contributors_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/contributors","subscribers_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/subscribers","subscription_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/subscription","commits_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/commits{/sha}","git_commits_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/git/commits{/sha}","comments_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/comments{/number}","issue_comment_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/issues/comments/{number}","contents_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/contents/{+path}","compare_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/merges","archive_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/downloads","issues_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/issues{/number}","pulls_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/pulls{/number}","milestones_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/milestones{/number}","notifications_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/labels{/name}","releases_url":"https://api.github.com/repos/dgrosenblatt/threesacloud/releases{/id}","created_at":"2014-12-29T18:14:42Z","updated_at":"2015-01-05T21:48:24Z","pushed_at":"2015-01-06T17:28:33Z","git_url":"git://github.com/dgrosenblatt/threesacloud.git","ssh_url":"git@github.com:dgrosenblatt/threesacloud.git","clone_url":"https://github.com/dgrosenblatt/threesacloud.git","svn_url":"https://github.com/dgrosenblatt/threesacloud","homepage":null,"size":704,"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/dgrosenblatt/threesacloud/pulls/12"},"html":{"href":"https://github.com/dgrosenblatt/threesacloud/pull/12"},"issue":{"href":"https://api.github.com/repos/dgrosenblatt/threesacloud/issues/12"},"comments":{"href":"https://api.github.com/repos/dgrosenblatt/threesacloud/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/dgrosenblatt/threesacloud/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/dgrosenblatt/threesacloud/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/dgrosenblatt/threesacloud/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/dgrosenblatt/threesacloud/statuses/ebf209edca520066849e4574b3f19b321b41c374"}}}}