{"action":"created","comment":{"url":"https://api.github.com/repos/eewilcox/somerville/pulls/comments/98731839","pull_request_review_id":19382497,"id":98731839,"diff_hunk":"@@ -6,9 +6,15 @@ def index\n   end\n \n   def show\n-    @zone = Zone.find(params[:zone][:id])\n-    array = Activity.where('zone_id=?', @zone.id)\n-    @activity = array.sample\n+    if params[:zone] == nil\n+      @zone = Zone.find(params[:id])\n+    else\n+      @zone = Zone.find(params[:zone][:name])\n+    end\n+\n+    @activities = @zone.activities\n+\n+    ","path":"app/controllers/zones_controller.rb","position":15,"original_position":15,"commit_id":"c9fbe6b84af0f63ab29ca80974ec079eb1c6518e","original_commit_id":"c9fbe6b84af0f63ab29ca80974ec079eb1c6518e","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":"Trailing whitespace detected.","created_at":"2017-01-31T18:06:29Z","updated_at":"2017-01-31T18:06:29Z","html_url":"https://github.com/eewilcox/somerville/pull/3#discussion_r98731839","pull_request_url":"https://api.github.com/repos/eewilcox/somerville/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/eewilcox/somerville/pulls/comments/98731839"},"html":{"href":"https://github.com/eewilcox/somerville/pull/3#discussion_r98731839"},"pull_request":{"href":"https://api.github.com/repos/eewilcox/somerville/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/eewilcox/somerville/pulls/3","id":103990839,"html_url":"https://github.com/eewilcox/somerville/pull/3","diff_url":"https://github.com/eewilcox/somerville/pull/3.diff","patch_url":"https://github.com/eewilcox/somerville/pull/3.patch","issue_url":"https://api.github.com/repos/eewilcox/somerville/issues/3","number":3,"state":"open","locked":false,"title":"rails","user":{"login":"eewilcox","id":21115278,"avatar_url":"https://avatars.githubusercontent.com/u/21115278?v=3","gravatar_id":"","url":"https://api.github.com/users/eewilcox","html_url":"https://github.com/eewilcox","followers_url":"https://api.github.com/users/eewilcox/followers","following_url":"https://api.github.com/users/eewilcox/following{/other_user}","gists_url":"https://api.github.com/users/eewilcox/gists{/gist_id}","starred_url":"https://api.github.com/users/eewilcox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eewilcox/subscriptions","organizations_url":"https://api.github.com/users/eewilcox/orgs","repos_url":"https://api.github.com/users/eewilcox/repos","events_url":"https://api.github.com/users/eewilcox/events{/privacy}","received_events_url":"https://api.github.com/users/eewilcox/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-01-31T18:06:15Z","updated_at":"2017-01-31T18:06:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"49bd872974b8184bd35d8cd0d75461f553e4d11a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/eewilcox/somerville/pulls/3/commits","review_comments_url":"https://api.github.com/repos/eewilcox/somerville/pulls/3/comments","review_comment_url":"https://api.github.com/repos/eewilcox/somerville/pulls/comments{/number}","comments_url":"https://api.github.com/repos/eewilcox/somerville/issues/3/comments","statuses_url":"https://api.github.com/repos/eewilcox/somerville/statuses/c9fbe6b84af0f63ab29ca80974ec079eb1c6518e","head":{"label":"eewilcox:react","ref":"react","sha":"c9fbe6b84af0f63ab29ca80974ec079eb1c6518e","user":{"login":"eewilcox","id":21115278,"avatar_url":"https://avatars.githubusercontent.com/u/21115278?v=3","gravatar_id":"","url":"https://api.github.com/users/eewilcox","html_url":"https://github.com/eewilcox","followers_url":"https://api.github.com/users/eewilcox/followers","following_url":"https://api.github.com/users/eewilcox/following{/other_user}","gists_url":"https://api.github.com/users/eewilcox/gists{/gist_id}","starred_url":"https://api.github.com/users/eewilcox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eewilcox/subscriptions","organizations_url":"https://api.github.com/users/eewilcox/orgs","repos_url":"https://api.github.com/users/eewilcox/repos","events_url":"https://api.github.com/users/eewilcox/events{/privacy}","received_events_url":"https://api.github.com/users/eewilcox/received_events","type":"User","site_admin":false},"repo":{"id":80370229,"name":"somerville","full_name":"eewilcox/somerville","owner":{"login":"eewilcox","id":21115278,"avatar_url":"https://avatars.githubusercontent.com/u/21115278?v=3","gravatar_id":"","url":"https://api.github.com/users/eewilcox","html_url":"https://github.com/eewilcox","followers_url":"https://api.github.com/users/eewilcox/followers","following_url":"https://api.github.com/users/eewilcox/following{/other_user}","gists_url":"https://api.github.com/users/eewilcox/gists{/gist_id}","starred_url":"https://api.github.com/users/eewilcox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eewilcox/subscriptions","organizations_url":"https://api.github.com/users/eewilcox/orgs","repos_url":"https://api.github.com/users/eewilcox/repos","events_url":"https://api.github.com/users/eewilcox/events{/privacy}","received_events_url":"https://api.github.com/users/eewilcox/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/eewilcox/somerville","description":null,"fork":false,"url":"https://api.github.com/repos/eewilcox/somerville","forks_url":"https://api.github.com/repos/eewilcox/somerville/forks","keys_url":"https://api.github.com/repos/eewilcox/somerville/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eewilcox/somerville/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eewilcox/somerville/teams","hooks_url":"https://api.github.com/repos/eewilcox/somerville/hooks","issue_events_url":"https://api.github.com/repos/eewilcox/somerville/issues/events{/number}","events_url":"https://api.github.com/repos/eewilcox/somerville/events","assignees_url":"https://api.github.com/repos/eewilcox/somerville/assignees{/user}","branches_url":"https://api.github.com/repos/eewilcox/somerville/branches{/branch}","tags_url":"https://api.github.com/repos/eewilcox/somerville/tags","blobs_url":"https://api.github.com/repos/eewilcox/somerville/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eewilcox/somerville/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eewilcox/somerville/git/refs{/sha}","trees_url":"https://api.github.com/repos/eewilcox/somerville/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eewilcox/somerville/statuses/{sha}","languages_url":"https://api.github.com/repos/eewilcox/somerville/languages","stargazers_url":"https://api.github.com/repos/eewilcox/somerville/stargazers","contributors_url":"https://api.github.com/repos/eewilcox/somerville/contributors","subscribers_url":"https://api.github.com/repos/eewilcox/somerville/subscribers","subscription_url":"https://api.github.com/repos/eewilcox/somerville/subscription","commits_url":"https://api.github.com/repos/eewilcox/somerville/commits{/sha}","git_commits_url":"https://api.github.com/repos/eewilcox/somerville/git/commits{/sha}","comments_url":"https://api.github.com/repos/eewilcox/somerville/comments{/number}","issue_comment_url":"https://api.github.com/repos/eewilcox/somerville/issues/comments{/number}","contents_url":"https://api.github.com/repos/eewilcox/somerville/contents/{+path}","compare_url":"https://api.github.com/repos/eewilcox/somerville/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eewilcox/somerville/merges","archive_url":"https://api.github.com/repos/eewilcox/somerville/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eewilcox/somerville/downloads","issues_url":"https://api.github.com/repos/eewilcox/somerville/issues{/number}","pulls_url":"https://api.github.com/repos/eewilcox/somerville/pulls{/number}","milestones_url":"https://api.github.com/repos/eewilcox/somerville/milestones{/number}","notifications_url":"https://api.github.com/repos/eewilcox/somerville/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eewilcox/somerville/labels{/name}","releases_url":"https://api.github.com/repos/eewilcox/somerville/releases{/id}","deployments_url":"https://api.github.com/repos/eewilcox/somerville/deployments","created_at":"2017-01-29T20:25:17Z","updated_at":"2017-01-29T20:25:38Z","pushed_at":"2017-01-31T18:06:16Z","git_url":"git://github.com/eewilcox/somerville.git","ssh_url":"git@github.com:eewilcox/somerville.git","clone_url":"https://github.com/eewilcox/somerville.git","svn_url":"https://github.com/eewilcox/somerville","homepage":null,"size":59,"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":"eewilcox:master","ref":"master","sha":"079b5eab28a702cc111856b037dc062ee2566f1d","user":{"login":"eewilcox","id":21115278,"avatar_url":"https://avatars.githubusercontent.com/u/21115278?v=3","gravatar_id":"","url":"https://api.github.com/users/eewilcox","html_url":"https://github.com/eewilcox","followers_url":"https://api.github.com/users/eewilcox/followers","following_url":"https://api.github.com/users/eewilcox/following{/other_user}","gists_url":"https://api.github.com/users/eewilcox/gists{/gist_id}","starred_url":"https://api.github.com/users/eewilcox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eewilcox/subscriptions","organizations_url":"https://api.github.com/users/eewilcox/orgs","repos_url":"https://api.github.com/users/eewilcox/repos","events_url":"https://api.github.com/users/eewilcox/events{/privacy}","received_events_url":"https://api.github.com/users/eewilcox/received_events","type":"User","site_admin":false},"repo":{"id":80370229,"name":"somerville","full_name":"eewilcox/somerville","owner":{"login":"eewilcox","id":21115278,"avatar_url":"https://avatars.githubusercontent.com/u/21115278?v=3","gravatar_id":"","url":"https://api.github.com/users/eewilcox","html_url":"https://github.com/eewilcox","followers_url":"https://api.github.com/users/eewilcox/followers","following_url":"https://api.github.com/users/eewilcox/following{/other_user}","gists_url":"https://api.github.com/users/eewilcox/gists{/gist_id}","starred_url":"https://api.github.com/users/eewilcox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eewilcox/subscriptions","organizations_url":"https://api.github.com/users/eewilcox/orgs","repos_url":"https://api.github.com/users/eewilcox/repos","events_url":"https://api.github.com/users/eewilcox/events{/privacy}","received_events_url":"https://api.github.com/users/eewilcox/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/eewilcox/somerville","description":null,"fork":false,"url":"https://api.github.com/repos/eewilcox/somerville","forks_url":"https://api.github.com/repos/eewilcox/somerville/forks","keys_url":"https://api.github.com/repos/eewilcox/somerville/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eewilcox/somerville/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eewilcox/somerville/teams","hooks_url":"https://api.github.com/repos/eewilcox/somerville/hooks","issue_events_url":"https://api.github.com/repos/eewilcox/somerville/issues/events{/number}","events_url":"https://api.github.com/repos/eewilcox/somerville/events","assignees_url":"https://api.github.com/repos/eewilcox/somerville/assignees{/user}","branches_url":"https://api.github.com/repos/eewilcox/somerville/branches{/branch}","tags_url":"https://api.github.com/repos/eewilcox/somerville/tags","blobs_url":"https://api.github.com/repos/eewilcox/somerville/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eewilcox/somerville/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eewilcox/somerville/git/refs{/sha}","trees_url":"https://api.github.com/repos/eewilcox/somerville/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eewilcox/somerville/statuses/{sha}","languages_url":"https://api.github.com/repos/eewilcox/somerville/languages","stargazers_url":"https://api.github.com/repos/eewilcox/somerville/stargazers","contributors_url":"https://api.github.com/repos/eewilcox/somerville/contributors","subscribers_url":"https://api.github.com/repos/eewilcox/somerville/subscribers","subscription_url":"https://api.github.com/repos/eewilcox/somerville/subscription","commits_url":"https://api.github.com/repos/eewilcox/somerville/commits{/sha}","git_commits_url":"https://api.github.com/repos/eewilcox/somerville/git/commits{/sha}","comments_url":"https://api.github.com/repos/eewilcox/somerville/comments{/number}","issue_comment_url":"https://api.github.com/repos/eewilcox/somerville/issues/comments{/number}","contents_url":"https://api.github.com/repos/eewilcox/somerville/contents/{+path}","compare_url":"https://api.github.com/repos/eewilcox/somerville/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eewilcox/somerville/merges","archive_url":"https://api.github.com/repos/eewilcox/somerville/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eewilcox/somerville/downloads","issues_url":"https://api.github.com/repos/eewilcox/somerville/issues{/number}","pulls_url":"https://api.github.com/repos/eewilcox/somerville/pulls{/number}","milestones_url":"https://api.github.com/repos/eewilcox/somerville/milestones{/number}","notifications_url":"https://api.github.com/repos/eewilcox/somerville/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eewilcox/somerville/labels{/name}","releases_url":"https://api.github.com/repos/eewilcox/somerville/releases{/id}","deployments_url":"https://api.github.com/repos/eewilcox/somerville/deployments","created_at":"2017-01-29T20:25:17Z","updated_at":"2017-01-29T20:25:38Z","pushed_at":"2017-01-31T18:06:16Z","git_url":"git://github.com/eewilcox/somerville.git","ssh_url":"git@github.com:eewilcox/somerville.git","clone_url":"https://github.com/eewilcox/somerville.git","svn_url":"https://github.com/eewilcox/somerville","homepage":null,"size":59,"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/eewilcox/somerville/pulls/3"},"html":{"href":"https://github.com/eewilcox/somerville/pull/3"},"issue":{"href":"https://api.github.com/repos/eewilcox/somerville/issues/3"},"comments":{"href":"https://api.github.com/repos/eewilcox/somerville/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/eewilcox/somerville/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/eewilcox/somerville/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/eewilcox/somerville/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/eewilcox/somerville/statuses/c9fbe6b84af0f63ab29ca80974ec079eb1c6518e"}}}}
{"actor":{"display_login":"houndci-bot"}}