{"action":"created","comment":{"url":"https://api.github.com/repos/psgoodman/Project-Remus/pulls/comments/29101942","id":29101942,"diff_hunk":"@@ -12,6 +12,13 @@ def edit\n   def update\n     @system = System.find(params[:id])\n     if @system.update(system_params)\n+      @system.units.each do |unit|\n+        unless current_user == @system.gm ||\n+          current_user == unit.faction.user &&","path":"app/controllers/systems_controller.rb","position":6,"original_position":6,"commit_id":"e4c3f2fc82e104068a2d4933435ed59f67db70b0","original_commit_id":"e4c3f2fc82e104068a2d4933435ed59f67db70b0","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":"Use 4 (not 2) spaces for indenting a condition in an `unless` statement spanning multiple lines.","created_at":"2015-04-25T16:45:54Z","updated_at":"2015-04-25T16:45:54Z","html_url":"https://github.com/psgoodman/Project-Remus/pull/17#discussion_r29101942","pull_request_url":"https://api.github.com/repos/psgoodman/Project-Remus/pulls/17","_links":{"self":{"href":"https://api.github.com/repos/psgoodman/Project-Remus/pulls/comments/29101942"},"html":{"href":"https://github.com/psgoodman/Project-Remus/pull/17#discussion_r29101942"},"pull_request":{"href":"https://api.github.com/repos/psgoodman/Project-Remus/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/psgoodman/Project-Remus/pulls/17","id":34109050,"html_url":"https://github.com/psgoodman/Project-Remus/pull/17","diff_url":"https://github.com/psgoodman/Project-Remus/pull/17.diff","patch_url":"https://github.com/psgoodman/Project-Remus/pull/17.patch","issue_url":"https://api.github.com/repos/psgoodman/Project-Remus/issues/17","number":17,"state":"open","locked":false,"title":"More Andybugs","user":{"login":"psgoodman","id":10119286,"avatar_url":"https://avatars.githubusercontent.com/u/10119286?v=3","gravatar_id":"","url":"https://api.github.com/users/psgoodman","html_url":"https://github.com/psgoodman","followers_url":"https://api.github.com/users/psgoodman/followers","following_url":"https://api.github.com/users/psgoodman/following{/other_user}","gists_url":"https://api.github.com/users/psgoodman/gists{/gist_id}","starred_url":"https://api.github.com/users/psgoodman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psgoodman/subscriptions","organizations_url":"https://api.github.com/users/psgoodman/orgs","repos_url":"https://api.github.com/users/psgoodman/repos","events_url":"https://api.github.com/users/psgoodman/events{/privacy}","received_events_url":"https://api.github.com/users/psgoodman/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-25T16:44:40Z","updated_at":"2015-04-25T16:45:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b0771bbdb3a9e71603d14d91ec456fca2c81bd4a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/psgoodman/Project-Remus/pulls/17/commits","review_comments_url":"https://api.github.com/repos/psgoodman/Project-Remus/pulls/17/comments","review_comment_url":"https://api.github.com/repos/psgoodman/Project-Remus/pulls/comments{/number}","comments_url":"https://api.github.com/repos/psgoodman/Project-Remus/issues/17/comments","statuses_url":"https://api.github.com/repos/psgoodman/Project-Remus/statuses/e4c3f2fc82e104068a2d4933435ed59f67db70b0","head":{"label":"psgoodman:Bugfixing","ref":"Bugfixing","sha":"e4c3f2fc82e104068a2d4933435ed59f67db70b0","user":{"login":"psgoodman","id":10119286,"avatar_url":"https://avatars.githubusercontent.com/u/10119286?v=3","gravatar_id":"","url":"https://api.github.com/users/psgoodman","html_url":"https://github.com/psgoodman","followers_url":"https://api.github.com/users/psgoodman/followers","following_url":"https://api.github.com/users/psgoodman/following{/other_user}","gists_url":"https://api.github.com/users/psgoodman/gists{/gist_id}","starred_url":"https://api.github.com/users/psgoodman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psgoodman/subscriptions","organizations_url":"https://api.github.com/users/psgoodman/orgs","repos_url":"https://api.github.com/users/psgoodman/repos","events_url":"https://api.github.com/users/psgoodman/events{/privacy}","received_events_url":"https://api.github.com/users/psgoodman/received_events","type":"User","site_admin":false},"repo":{"id":33006564,"name":"Project-Remus","full_name":"psgoodman/Project-Remus","owner":{"login":"psgoodman","id":10119286,"avatar_url":"https://avatars.githubusercontent.com/u/10119286?v=3","gravatar_id":"","url":"https://api.github.com/users/psgoodman","html_url":"https://github.com/psgoodman","followers_url":"https://api.github.com/users/psgoodman/followers","following_url":"https://api.github.com/users/psgoodman/following{/other_user}","gists_url":"https://api.github.com/users/psgoodman/gists{/gist_id}","starred_url":"https://api.github.com/users/psgoodman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psgoodman/subscriptions","organizations_url":"https://api.github.com/users/psgoodman/orgs","repos_url":"https://api.github.com/users/psgoodman/repos","events_url":"https://api.github.com/users/psgoodman/events{/privacy}","received_events_url":"https://api.github.com/users/psgoodman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/psgoodman/Project-Remus","description":"","fork":false,"url":"https://api.github.com/repos/psgoodman/Project-Remus","forks_url":"https://api.github.com/repos/psgoodman/Project-Remus/forks","keys_url":"https://api.github.com/repos/psgoodman/Project-Remus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/psgoodman/Project-Remus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/psgoodman/Project-Remus/teams","hooks_url":"https://api.github.com/repos/psgoodman/Project-Remus/hooks","issue_events_url":"https://api.github.com/repos/psgoodman/Project-Remus/issues/events{/number}","events_url":"https://api.github.com/repos/psgoodman/Project-Remus/events","assignees_url":"https://api.github.com/repos/psgoodman/Project-Remus/assignees{/user}","branches_url":"https://api.github.com/repos/psgoodman/Project-Remus/branches{/branch}","tags_url":"https://api.github.com/repos/psgoodman/Project-Remus/tags","blobs_url":"https://api.github.com/repos/psgoodman/Project-Remus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/psgoodman/Project-Remus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/psgoodman/Project-Remus/git/refs{/sha}","trees_url":"https://api.github.com/repos/psgoodman/Project-Remus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/psgoodman/Project-Remus/statuses/{sha}","languages_url":"https://api.github.com/repos/psgoodman/Project-Remus/languages","stargazers_url":"https://api.github.com/repos/psgoodman/Project-Remus/stargazers","contributors_url":"https://api.github.com/repos/psgoodman/Project-Remus/contributors","subscribers_url":"https://api.github.com/repos/psgoodman/Project-Remus/subscribers","subscription_url":"https://api.github.com/repos/psgoodman/Project-Remus/subscription","commits_url":"https://api.github.com/repos/psgoodman/Project-Remus/commits{/sha}","git_commits_url":"https://api.github.com/repos/psgoodman/Project-Remus/git/commits{/sha}","comments_url":"https://api.github.com/repos/psgoodman/Project-Remus/comments{/number}","issue_comment_url":"https://api.github.com/repos/psgoodman/Project-Remus/issues/comments{/number}","contents_url":"https://api.github.com/repos/psgoodman/Project-Remus/contents/{+path}","compare_url":"https://api.github.com/repos/psgoodman/Project-Remus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/psgoodman/Project-Remus/merges","archive_url":"https://api.github.com/repos/psgoodman/Project-Remus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/psgoodman/Project-Remus/downloads","issues_url":"https://api.github.com/repos/psgoodman/Project-Remus/issues{/number}","pulls_url":"https://api.github.com/repos/psgoodman/Project-Remus/pulls{/number}","milestones_url":"https://api.github.com/repos/psgoodman/Project-Remus/milestones{/number}","notifications_url":"https://api.github.com/repos/psgoodman/Project-Remus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/psgoodman/Project-Remus/labels{/name}","releases_url":"https://api.github.com/repos/psgoodman/Project-Remus/releases{/id}","created_at":"2015-03-27T19:59:54Z","updated_at":"2015-04-24T21:01:58Z","pushed_at":"2015-04-25T16:45:50Z","git_url":"git://github.com/psgoodman/Project-Remus.git","ssh_url":"git@github.com:psgoodman/Project-Remus.git","clone_url":"https://github.com/psgoodman/Project-Remus.git","svn_url":"https://github.com/psgoodman/Project-Remus","homepage":null,"size":348,"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":"psgoodman:master","ref":"master","sha":"d7c455714a2bed8af1e1d1ce64ad5c4d65d1a960","user":{"login":"psgoodman","id":10119286,"avatar_url":"https://avatars.githubusercontent.com/u/10119286?v=3","gravatar_id":"","url":"https://api.github.com/users/psgoodman","html_url":"https://github.com/psgoodman","followers_url":"https://api.github.com/users/psgoodman/followers","following_url":"https://api.github.com/users/psgoodman/following{/other_user}","gists_url":"https://api.github.com/users/psgoodman/gists{/gist_id}","starred_url":"https://api.github.com/users/psgoodman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psgoodman/subscriptions","organizations_url":"https://api.github.com/users/psgoodman/orgs","repos_url":"https://api.github.com/users/psgoodman/repos","events_url":"https://api.github.com/users/psgoodman/events{/privacy}","received_events_url":"https://api.github.com/users/psgoodman/received_events","type":"User","site_admin":false},"repo":{"id":33006564,"name":"Project-Remus","full_name":"psgoodman/Project-Remus","owner":{"login":"psgoodman","id":10119286,"avatar_url":"https://avatars.githubusercontent.com/u/10119286?v=3","gravatar_id":"","url":"https://api.github.com/users/psgoodman","html_url":"https://github.com/psgoodman","followers_url":"https://api.github.com/users/psgoodman/followers","following_url":"https://api.github.com/users/psgoodman/following{/other_user}","gists_url":"https://api.github.com/users/psgoodman/gists{/gist_id}","starred_url":"https://api.github.com/users/psgoodman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psgoodman/subscriptions","organizations_url":"https://api.github.com/users/psgoodman/orgs","repos_url":"https://api.github.com/users/psgoodman/repos","events_url":"https://api.github.com/users/psgoodman/events{/privacy}","received_events_url":"https://api.github.com/users/psgoodman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/psgoodman/Project-Remus","description":"","fork":false,"url":"https://api.github.com/repos/psgoodman/Project-Remus","forks_url":"https://api.github.com/repos/psgoodman/Project-Remus/forks","keys_url":"https://api.github.com/repos/psgoodman/Project-Remus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/psgoodman/Project-Remus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/psgoodman/Project-Remus/teams","hooks_url":"https://api.github.com/repos/psgoodman/Project-Remus/hooks","issue_events_url":"https://api.github.com/repos/psgoodman/Project-Remus/issues/events{/number}","events_url":"https://api.github.com/repos/psgoodman/Project-Remus/events","assignees_url":"https://api.github.com/repos/psgoodman/Project-Remus/assignees{/user}","branches_url":"https://api.github.com/repos/psgoodman/Project-Remus/branches{/branch}","tags_url":"https://api.github.com/repos/psgoodman/Project-Remus/tags","blobs_url":"https://api.github.com/repos/psgoodman/Project-Remus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/psgoodman/Project-Remus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/psgoodman/Project-Remus/git/refs{/sha}","trees_url":"https://api.github.com/repos/psgoodman/Project-Remus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/psgoodman/Project-Remus/statuses/{sha}","languages_url":"https://api.github.com/repos/psgoodman/Project-Remus/languages","stargazers_url":"https://api.github.com/repos/psgoodman/Project-Remus/stargazers","contributors_url":"https://api.github.com/repos/psgoodman/Project-Remus/contributors","subscribers_url":"https://api.github.com/repos/psgoodman/Project-Remus/subscribers","subscription_url":"https://api.github.com/repos/psgoodman/Project-Remus/subscription","commits_url":"https://api.github.com/repos/psgoodman/Project-Remus/commits{/sha}","git_commits_url":"https://api.github.com/repos/psgoodman/Project-Remus/git/commits{/sha}","comments_url":"https://api.github.com/repos/psgoodman/Project-Remus/comments{/number}","issue_comment_url":"https://api.github.com/repos/psgoodman/Project-Remus/issues/comments{/number}","contents_url":"https://api.github.com/repos/psgoodman/Project-Remus/contents/{+path}","compare_url":"https://api.github.com/repos/psgoodman/Project-Remus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/psgoodman/Project-Remus/merges","archive_url":"https://api.github.com/repos/psgoodman/Project-Remus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/psgoodman/Project-Remus/downloads","issues_url":"https://api.github.com/repos/psgoodman/Project-Remus/issues{/number}","pulls_url":"https://api.github.com/repos/psgoodman/Project-Remus/pulls{/number}","milestones_url":"https://api.github.com/repos/psgoodman/Project-Remus/milestones{/number}","notifications_url":"https://api.github.com/repos/psgoodman/Project-Remus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/psgoodman/Project-Remus/labels{/name}","releases_url":"https://api.github.com/repos/psgoodman/Project-Remus/releases{/id}","created_at":"2015-03-27T19:59:54Z","updated_at":"2015-04-24T21:01:58Z","pushed_at":"2015-04-25T16:45:50Z","git_url":"git://github.com/psgoodman/Project-Remus.git","ssh_url":"git@github.com:psgoodman/Project-Remus.git","clone_url":"https://github.com/psgoodman/Project-Remus.git","svn_url":"https://github.com/psgoodman/Project-Remus","homepage":null,"size":348,"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/psgoodman/Project-Remus/pulls/17"},"html":{"href":"https://github.com/psgoodman/Project-Remus/pull/17"},"issue":{"href":"https://api.github.com/repos/psgoodman/Project-Remus/issues/17"},"comments":{"href":"https://api.github.com/repos/psgoodman/Project-Remus/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/psgoodman/Project-Remus/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/psgoodman/Project-Remus/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/psgoodman/Project-Remus/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/psgoodman/Project-Remus/statuses/e4c3f2fc82e104068a2d4933435ed59f67db70b0"}}}}