{"action":"created","comment":{"url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/pulls/comments/86388338","pull_request_review_id":7050239,"id":86388338,"diff_hunk":"@@ -271,19 +271,23 @@ def update\n   # can be given a single id or a list of ids\n   def take\n     unless params[:ids].present?","path":"app/controllers/logs_controller.rb","position":3,"original_position":3,"commit_id":"025dd9d986c0ece24f1f542b107742b21784a737","original_commit_id":"025dd9d986c0ece24f1f542b107742b21784a737","user":{"login":"cllns","id":632942,"avatar_url":"https://avatars.githubusercontent.com/u/632942?v=3","gravatar_id":"","url":"https://api.github.com/users/cllns","html_url":"https://github.com/cllns","followers_url":"https://api.github.com/users/cllns/followers","following_url":"https://api.github.com/users/cllns/following{/other_user}","gists_url":"https://api.github.com/users/cllns/gists{/gist_id}","starred_url":"https://api.github.com/users/cllns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cllns/subscriptions","organizations_url":"https://api.github.com/users/cllns/orgs","repos_url":"https://api.github.com/users/cllns/repos","events_url":"https://api.github.com/users/cllns/events{/privacy}","received_events_url":"https://api.github.com/users/cllns/received_events","type":"User","site_admin":false},"body":"I'm too late as this PR is meged, but `unless x.present?` / `else` can be inverted to `if x.blank?` / `else`. Easier to follow in my mind :)","created_at":"2016-11-03T16:41:56Z","updated_at":"2016-11-03T16:41:56Z","html_url":"https://github.com/boulder-food-rescue/food-rescue-robot/pull/24#discussion_r86388338","pull_request_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/pulls/24","_links":{"self":{"href":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/pulls/comments/86388338"},"html":{"href":"https://github.com/boulder-food-rescue/food-rescue-robot/pull/24#discussion_r86388338"},"pull_request":{"href":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/pulls/24"}}},"pull_request":{"url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/pulls/24","id":92088672,"html_url":"https://github.com/boulder-food-rescue/food-rescue-robot/pull/24","diff_url":"https://github.com/boulder-food-rescue/food-rescue-robot/pull/24.diff","patch_url":"https://github.com/boulder-food-rescue/food-rescue-robot/pull/24.patch","issue_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/issues/24","number":24,"state":"closed","locked":false,"title":"Logs Controller / Views cleanup.","user":{"login":"rylanb","id":435953,"avatar_url":"https://avatars.githubusercontent.com/u/435953?v=3","gravatar_id":"","url":"https://api.github.com/users/rylanb","html_url":"https://github.com/rylanb","followers_url":"https://api.github.com/users/rylanb/followers","following_url":"https://api.github.com/users/rylanb/following{/other_user}","gists_url":"https://api.github.com/users/rylanb/gists{/gist_id}","starred_url":"https://api.github.com/users/rylanb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rylanb/subscriptions","organizations_url":"https://api.github.com/users/rylanb/orgs","repos_url":"https://api.github.com/users/rylanb/repos","events_url":"https://api.github.com/users/rylanb/events{/privacy}","received_events_url":"https://api.github.com/users/rylanb/received_events","type":"User","site_admin":false},"body":"## Overview\r\n<!-- Required. Why is this important/necessary? -->\r\nLogs controller and the views had unnecessarily complex code. Painful\r\n\r\n## Details\r\n<!-- Optional. List the key features/highlights as bullet points. -->\r\nCleaned up to use rails helpers for link_to / removed inline JavaScript. \r\n\r\nCleaned up def take method in logs controller.\r\n\r\n","created_at":"2016-11-03T02:28:22Z","updated_at":"2016-11-03T16:41:56Z","closed_at":"2016-11-03T13:46:21Z","merged_at":"2016-11-03T13:46:21Z","merge_commit_sha":"53faad962adf4fdd42967bd0933f0914d10aa75a","assignee":{"login":"bkuhlmann","id":50245,"avatar_url":"https://avatars.githubusercontent.com/u/50245?v=3","gravatar_id":"","url":"https://api.github.com/users/bkuhlmann","html_url":"https://github.com/bkuhlmann","followers_url":"https://api.github.com/users/bkuhlmann/followers","following_url":"https://api.github.com/users/bkuhlmann/following{/other_user}","gists_url":"https://api.github.com/users/bkuhlmann/gists{/gist_id}","starred_url":"https://api.github.com/users/bkuhlmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bkuhlmann/subscriptions","organizations_url":"https://api.github.com/users/bkuhlmann/orgs","repos_url":"https://api.github.com/users/bkuhlmann/repos","events_url":"https://api.github.com/users/bkuhlmann/events{/privacy}","received_events_url":"https://api.github.com/users/bkuhlmann/received_events","type":"User","site_admin":false},"assignees":[{"login":"bkuhlmann","id":50245,"avatar_url":"https://avatars.githubusercontent.com/u/50245?v=3","gravatar_id":"","url":"https://api.github.com/users/bkuhlmann","html_url":"https://github.com/bkuhlmann","followers_url":"https://api.github.com/users/bkuhlmann/followers","following_url":"https://api.github.com/users/bkuhlmann/following{/other_user}","gists_url":"https://api.github.com/users/bkuhlmann/gists{/gist_id}","starred_url":"https://api.github.com/users/bkuhlmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bkuhlmann/subscriptions","organizations_url":"https://api.github.com/users/bkuhlmann/orgs","repos_url":"https://api.github.com/users/bkuhlmann/repos","events_url":"https://api.github.com/users/bkuhlmann/events{/privacy}","received_events_url":"https://api.github.com/users/bkuhlmann/received_events","type":"User","site_admin":false},{"login":"rylanb","id":435953,"avatar_url":"https://avatars.githubusercontent.com/u/435953?v=3","gravatar_id":"","url":"https://api.github.com/users/rylanb","html_url":"https://github.com/rylanb","followers_url":"https://api.github.com/users/rylanb/followers","following_url":"https://api.github.com/users/rylanb/following{/other_user}","gists_url":"https://api.github.com/users/rylanb/gists{/gist_id}","starred_url":"https://api.github.com/users/rylanb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rylanb/subscriptions","organizations_url":"https://api.github.com/users/rylanb/orgs","repos_url":"https://api.github.com/users/rylanb/repos","events_url":"https://api.github.com/users/rylanb/events{/privacy}","received_events_url":"https://api.github.com/users/rylanb/received_events","type":"User","site_admin":false},{"login":"TimothyClayton","id":1821123,"avatar_url":"https://avatars.githubusercontent.com/u/1821123?v=3","gravatar_id":"","url":"https://api.github.com/users/TimothyClayton","html_url":"https://github.com/TimothyClayton","followers_url":"https://api.github.com/users/TimothyClayton/followers","following_url":"https://api.github.com/users/TimothyClayton/following{/other_user}","gists_url":"https://api.github.com/users/TimothyClayton/gists{/gist_id}","starred_url":"https://api.github.com/users/TimothyClayton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TimothyClayton/subscriptions","organizations_url":"https://api.github.com/users/TimothyClayton/orgs","repos_url":"https://api.github.com/users/TimothyClayton/repos","events_url":"https://api.github.com/users/TimothyClayton/events{/privacy}","received_events_url":"https://api.github.com/users/TimothyClayton/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/pulls/24/commits","review_comments_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/pulls/24/comments","review_comment_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/issues/24/comments","statuses_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/statuses/025dd9d986c0ece24f1f542b107742b21784a737","head":{"label":"boulder-food-rescue:logs-controller-schedule-issues","ref":"logs-controller-schedule-issues","sha":"025dd9d986c0ece24f1f542b107742b21784a737","user":{"login":"boulder-food-rescue","id":18725077,"avatar_url":"https://avatars.githubusercontent.com/u/18725077?v=3","gravatar_id":"","url":"https://api.github.com/users/boulder-food-rescue","html_url":"https://github.com/boulder-food-rescue","followers_url":"https://api.github.com/users/boulder-food-rescue/followers","following_url":"https://api.github.com/users/boulder-food-rescue/following{/other_user}","gists_url":"https://api.github.com/users/boulder-food-rescue/gists{/gist_id}","starred_url":"https://api.github.com/users/boulder-food-rescue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boulder-food-rescue/subscriptions","organizations_url":"https://api.github.com/users/boulder-food-rescue/orgs","repos_url":"https://api.github.com/users/boulder-food-rescue/repos","events_url":"https://api.github.com/users/boulder-food-rescue/events{/privacy}","received_events_url":"https://api.github.com/users/boulder-food-rescue/received_events","type":"Organization","site_admin":false},"repo":{"id":9252256,"name":"food-rescue-robot","full_name":"boulder-food-rescue/food-rescue-robot","owner":{"login":"boulder-food-rescue","id":18725077,"avatar_url":"https://avatars.githubusercontent.com/u/18725077?v=3","gravatar_id":"","url":"https://api.github.com/users/boulder-food-rescue","html_url":"https://github.com/boulder-food-rescue","followers_url":"https://api.github.com/users/boulder-food-rescue/followers","following_url":"https://api.github.com/users/boulder-food-rescue/following{/other_user}","gists_url":"https://api.github.com/users/boulder-food-rescue/gists{/gist_id}","starred_url":"https://api.github.com/users/boulder-food-rescue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boulder-food-rescue/subscriptions","organizations_url":"https://api.github.com/users/boulder-food-rescue/orgs","repos_url":"https://api.github.com/users/boulder-food-rescue/repos","events_url":"https://api.github.com/users/boulder-food-rescue/events{/privacy}","received_events_url":"https://api.github.com/users/boulder-food-rescue/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/boulder-food-rescue/food-rescue-robot","description":"A Rails App for Managing \"Just in Time\" Food Rescue, Developed by/for Boulder Food Rescue in Boulder, CO, USA","fork":false,"url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot","forks_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/forks","keys_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/teams","hooks_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/hooks","issue_events_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/issues/events{/number}","events_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/events","assignees_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/assignees{/user}","branches_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/branches{/branch}","tags_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/tags","blobs_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/git/refs{/sha}","trees_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/statuses/{sha}","languages_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/languages","stargazers_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/stargazers","contributors_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/contributors","subscribers_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/subscribers","subscription_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/subscription","commits_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/commits{/sha}","git_commits_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/git/commits{/sha}","comments_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/comments{/number}","issue_comment_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/issues/comments{/number}","contents_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/contents/{+path}","compare_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/merges","archive_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/downloads","issues_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/issues{/number}","pulls_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/pulls{/number}","milestones_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/milestones{/number}","notifications_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/labels{/name}","releases_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/releases{/id}","deployments_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/deployments","created_at":"2013-04-05T22:52:49Z","updated_at":"2016-11-02T14:20:05Z","pushed_at":"2016-11-03T13:46:21Z","git_url":"git://github.com/boulder-food-rescue/food-rescue-robot.git","ssh_url":"git@github.com:boulder-food-rescue/food-rescue-robot.git","clone_url":"https://github.com/boulder-food-rescue/food-rescue-robot.git","svn_url":"https://github.com/boulder-food-rescue/food-rescue-robot","homepage":"","size":4767,"stargazers_count":13,"watchers_count":13,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":24,"mirror_url":null,"open_issues_count":5,"forks":24,"open_issues":5,"watchers":13,"default_branch":"master"}},"base":{"label":"boulder-food-rescue:master","ref":"master","sha":"e607dad8664026ee41c58254fffd9f056e88fd7a","user":{"login":"boulder-food-rescue","id":18725077,"avatar_url":"https://avatars.githubusercontent.com/u/18725077?v=3","gravatar_id":"","url":"https://api.github.com/users/boulder-food-rescue","html_url":"https://github.com/boulder-food-rescue","followers_url":"https://api.github.com/users/boulder-food-rescue/followers","following_url":"https://api.github.com/users/boulder-food-rescue/following{/other_user}","gists_url":"https://api.github.com/users/boulder-food-rescue/gists{/gist_id}","starred_url":"https://api.github.com/users/boulder-food-rescue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boulder-food-rescue/subscriptions","organizations_url":"https://api.github.com/users/boulder-food-rescue/orgs","repos_url":"https://api.github.com/users/boulder-food-rescue/repos","events_url":"https://api.github.com/users/boulder-food-rescue/events{/privacy}","received_events_url":"https://api.github.com/users/boulder-food-rescue/received_events","type":"Organization","site_admin":false},"repo":{"id":9252256,"name":"food-rescue-robot","full_name":"boulder-food-rescue/food-rescue-robot","owner":{"login":"boulder-food-rescue","id":18725077,"avatar_url":"https://avatars.githubusercontent.com/u/18725077?v=3","gravatar_id":"","url":"https://api.github.com/users/boulder-food-rescue","html_url":"https://github.com/boulder-food-rescue","followers_url":"https://api.github.com/users/boulder-food-rescue/followers","following_url":"https://api.github.com/users/boulder-food-rescue/following{/other_user}","gists_url":"https://api.github.com/users/boulder-food-rescue/gists{/gist_id}","starred_url":"https://api.github.com/users/boulder-food-rescue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boulder-food-rescue/subscriptions","organizations_url":"https://api.github.com/users/boulder-food-rescue/orgs","repos_url":"https://api.github.com/users/boulder-food-rescue/repos","events_url":"https://api.github.com/users/boulder-food-rescue/events{/privacy}","received_events_url":"https://api.github.com/users/boulder-food-rescue/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/boulder-food-rescue/food-rescue-robot","description":"A Rails App for Managing \"Just in Time\" Food Rescue, Developed by/for Boulder Food Rescue in Boulder, CO, USA","fork":false,"url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot","forks_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/forks","keys_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/teams","hooks_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/hooks","issue_events_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/issues/events{/number}","events_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/events","assignees_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/assignees{/user}","branches_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/branches{/branch}","tags_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/tags","blobs_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/git/refs{/sha}","trees_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/statuses/{sha}","languages_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/languages","stargazers_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/stargazers","contributors_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/contributors","subscribers_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/subscribers","subscription_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/subscription","commits_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/commits{/sha}","git_commits_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/git/commits{/sha}","comments_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/comments{/number}","issue_comment_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/issues/comments{/number}","contents_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/contents/{+path}","compare_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/merges","archive_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/downloads","issues_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/issues{/number}","pulls_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/pulls{/number}","milestones_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/milestones{/number}","notifications_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/labels{/name}","releases_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/releases{/id}","deployments_url":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/deployments","created_at":"2013-04-05T22:52:49Z","updated_at":"2016-11-02T14:20:05Z","pushed_at":"2016-11-03T13:46:21Z","git_url":"git://github.com/boulder-food-rescue/food-rescue-robot.git","ssh_url":"git@github.com:boulder-food-rescue/food-rescue-robot.git","clone_url":"https://github.com/boulder-food-rescue/food-rescue-robot.git","svn_url":"https://github.com/boulder-food-rescue/food-rescue-robot","homepage":"","size":4767,"stargazers_count":13,"watchers_count":13,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":24,"mirror_url":null,"open_issues_count":5,"forks":24,"open_issues":5,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/pulls/24"},"html":{"href":"https://github.com/boulder-food-rescue/food-rescue-robot/pull/24"},"issue":{"href":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/issues/24"},"comments":{"href":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/boulder-food-rescue/food-rescue-robot/statuses/025dd9d986c0ece24f1f542b107742b21784a737"}}}}
{"actor":{"display_login":"cllns"}}