{"action":"created","comment":{"url":"https://api.github.com/repos/helpyio/helpy/pulls/comments/76921542","id":76921542,"diff_hunk":"@@ -46,12 +31,28 @@ def stats\n     @responded_topics = Topic.where(id: responded_topic_ids)\n     @closed_topic_count = @topics.closed.count\n \n-    @posts = Post.where('created_at >= ? AND created_at <= ?', @start_date, @end_date)\n+    @posts = Post.where(created_at: @start_date..@end_date)","path":"app/controllers/admin/dashboard_controller.rb","position":38,"original_position":38,"commit_id":"35c57fbe81d9c8071d4b6b3c2a66c5bc81e1fd24","original_commit_id":"35c57fbe81d9c8071d4b6b3c2a66c5bc81e1fd24","user":{"login":"scott","id":14369,"avatar_url":"https://avatars.githubusercontent.com/u/14369?v=3","gravatar_id":"","url":"https://api.github.com/users/scott","html_url":"https://github.com/scott","followers_url":"https://api.github.com/users/scott/followers","following_url":"https://api.github.com/users/scott/following{/other_user}","gists_url":"https://api.github.com/users/scott/gists{/gist_id}","starred_url":"https://api.github.com/users/scott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scott/subscriptions","organizations_url":"https://api.github.com/users/scott/orgs","repos_url":"https://api.github.com/users/scott/repos","events_url":"https://api.github.com/users/scott/events{/privacy}","received_events_url":"https://api.github.com/users/scott/received_events","type":"User","site_admin":false},"body":"Nice, didn't know you could write it that way","created_at":"2016-08-31T04:07:21Z","updated_at":"2016-08-31T04:07:21Z","html_url":"https://github.com/helpyio/helpy/pull/313#discussion_r76921542","pull_request_url":"https://api.github.com/repos/helpyio/helpy/pulls/313","_links":{"self":{"href":"https://api.github.com/repos/helpyio/helpy/pulls/comments/76921542"},"html":{"href":"https://github.com/helpyio/helpy/pull/313#discussion_r76921542"},"pull_request":{"href":"https://api.github.com/repos/helpyio/helpy/pulls/313"}}},"pull_request":{"url":"https://api.github.com/repos/helpyio/helpy/pulls/313","id":83328389,"html_url":"https://github.com/helpyio/helpy/pull/313","diff_url":"https://github.com/helpyio/helpy/pull/313.diff","patch_url":"https://github.com/helpyio/helpy/pull/313.patch","issue_url":"https://api.github.com/repos/helpyio/helpy/issues/313","number":313,"state":"open","locked":false,"title":"Cleaning up Admin::DashboardController","user":{"login":"CGA1123","id":7707413,"avatar_url":"https://avatars.githubusercontent.com/u/7707413?v=3","gravatar_id":"","url":"https://api.github.com/users/CGA1123","html_url":"https://github.com/CGA1123","followers_url":"https://api.github.com/users/CGA1123/followers","following_url":"https://api.github.com/users/CGA1123/following{/other_user}","gists_url":"https://api.github.com/users/CGA1123/gists{/gist_id}","starred_url":"https://api.github.com/users/CGA1123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CGA1123/subscriptions","organizations_url":"https://api.github.com/users/CGA1123/orgs","repos_url":"https://api.github.com/users/CGA1123/repos","events_url":"https://api.github.com/users/CGA1123/events{/privacy}","received_events_url":"https://api.github.com/users/CGA1123/received_events","type":"User","site_admin":false},"body":"I noticed that some views within the project include code that would ideally be within controllers.\r\n\r\n","created_at":"2016-08-30T19:05:34Z","updated_at":"2016-08-31T04:07:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cd541d6e22df7c4410d6b7ba442e85aff442c2a6","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/helpyio/helpy/pulls/313/commits","review_comments_url":"https://api.github.com/repos/helpyio/helpy/pulls/313/comments","review_comment_url":"https://api.github.com/repos/helpyio/helpy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/helpyio/helpy/issues/313/comments","statuses_url":"https://api.github.com/repos/helpyio/helpy/statuses/35c57fbe81d9c8071d4b6b3c2a66c5bc81e1fd24","head":{"label":"CGA1123:cleaning-up","ref":"cleaning-up","sha":"35c57fbe81d9c8071d4b6b3c2a66c5bc81e1fd24","user":{"login":"CGA1123","id":7707413,"avatar_url":"https://avatars.githubusercontent.com/u/7707413?v=3","gravatar_id":"","url":"https://api.github.com/users/CGA1123","html_url":"https://github.com/CGA1123","followers_url":"https://api.github.com/users/CGA1123/followers","following_url":"https://api.github.com/users/CGA1123/following{/other_user}","gists_url":"https://api.github.com/users/CGA1123/gists{/gist_id}","starred_url":"https://api.github.com/users/CGA1123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CGA1123/subscriptions","organizations_url":"https://api.github.com/users/CGA1123/orgs","repos_url":"https://api.github.com/users/CGA1123/repos","events_url":"https://api.github.com/users/CGA1123/events{/privacy}","received_events_url":"https://api.github.com/users/CGA1123/received_events","type":"User","site_admin":false},"repo":{"id":60791460,"name":"helpy","full_name":"CGA1123/helpy","owner":{"login":"CGA1123","id":7707413,"avatar_url":"https://avatars.githubusercontent.com/u/7707413?v=3","gravatar_id":"","url":"https://api.github.com/users/CGA1123","html_url":"https://github.com/CGA1123","followers_url":"https://api.github.com/users/CGA1123/followers","following_url":"https://api.github.com/users/CGA1123/following{/other_user}","gists_url":"https://api.github.com/users/CGA1123/gists{/gist_id}","starred_url":"https://api.github.com/users/CGA1123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CGA1123/subscriptions","organizations_url":"https://api.github.com/users/CGA1123/orgs","repos_url":"https://api.github.com/users/CGA1123/repos","events_url":"https://api.github.com/users/CGA1123/events{/privacy}","received_events_url":"https://api.github.com/users/CGA1123/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/CGA1123/helpy","description":"Helpy is a modern, \"mobile-first\" helpdesk application built in Ruby. Features include multi-lingual knowledgebase, community discussions and private tickets integrated with email.","fork":true,"url":"https://api.github.com/repos/CGA1123/helpy","forks_url":"https://api.github.com/repos/CGA1123/helpy/forks","keys_url":"https://api.github.com/repos/CGA1123/helpy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CGA1123/helpy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CGA1123/helpy/teams","hooks_url":"https://api.github.com/repos/CGA1123/helpy/hooks","issue_events_url":"https://api.github.com/repos/CGA1123/helpy/issues/events{/number}","events_url":"https://api.github.com/repos/CGA1123/helpy/events","assignees_url":"https://api.github.com/repos/CGA1123/helpy/assignees{/user}","branches_url":"https://api.github.com/repos/CGA1123/helpy/branches{/branch}","tags_url":"https://api.github.com/repos/CGA1123/helpy/tags","blobs_url":"https://api.github.com/repos/CGA1123/helpy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CGA1123/helpy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CGA1123/helpy/git/refs{/sha}","trees_url":"https://api.github.com/repos/CGA1123/helpy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CGA1123/helpy/statuses/{sha}","languages_url":"https://api.github.com/repos/CGA1123/helpy/languages","stargazers_url":"https://api.github.com/repos/CGA1123/helpy/stargazers","contributors_url":"https://api.github.com/repos/CGA1123/helpy/contributors","subscribers_url":"https://api.github.com/repos/CGA1123/helpy/subscribers","subscription_url":"https://api.github.com/repos/CGA1123/helpy/subscription","commits_url":"https://api.github.com/repos/CGA1123/helpy/commits{/sha}","git_commits_url":"https://api.github.com/repos/CGA1123/helpy/git/commits{/sha}","comments_url":"https://api.github.com/repos/CGA1123/helpy/comments{/number}","issue_comment_url":"https://api.github.com/repos/CGA1123/helpy/issues/comments{/number}","contents_url":"https://api.github.com/repos/CGA1123/helpy/contents/{+path}","compare_url":"https://api.github.com/repos/CGA1123/helpy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CGA1123/helpy/merges","archive_url":"https://api.github.com/repos/CGA1123/helpy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CGA1123/helpy/downloads","issues_url":"https://api.github.com/repos/CGA1123/helpy/issues{/number}","pulls_url":"https://api.github.com/repos/CGA1123/helpy/pulls{/number}","milestones_url":"https://api.github.com/repos/CGA1123/helpy/milestones{/number}","notifications_url":"https://api.github.com/repos/CGA1123/helpy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CGA1123/helpy/labels{/name}","releases_url":"https://api.github.com/repos/CGA1123/helpy/releases{/id}","deployments_url":"https://api.github.com/repos/CGA1123/helpy/deployments","created_at":"2016-06-09T16:56:45Z","updated_at":"2016-06-09T16:56:46Z","pushed_at":"2016-08-30T20:34:23Z","git_url":"git://github.com/CGA1123/helpy.git","ssh_url":"git@github.com:CGA1123/helpy.git","clone_url":"https://github.com/CGA1123/helpy.git","svn_url":"https://github.com/CGA1123/helpy","homepage":"http://helpy.io/?source=ghh","size":80422,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"helpyio:master","ref":"master","sha":"cd73f08bdf154864e3874ffca8211ed30ea27b68","user":{"login":"helpyio","id":17730784,"avatar_url":"https://avatars.githubusercontent.com/u/17730784?v=3","gravatar_id":"","url":"https://api.github.com/users/helpyio","html_url":"https://github.com/helpyio","followers_url":"https://api.github.com/users/helpyio/followers","following_url":"https://api.github.com/users/helpyio/following{/other_user}","gists_url":"https://api.github.com/users/helpyio/gists{/gist_id}","starred_url":"https://api.github.com/users/helpyio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/helpyio/subscriptions","organizations_url":"https://api.github.com/users/helpyio/orgs","repos_url":"https://api.github.com/users/helpyio/repos","events_url":"https://api.github.com/users/helpyio/events{/privacy}","received_events_url":"https://api.github.com/users/helpyio/received_events","type":"Organization","site_admin":false},"repo":{"id":33225130,"name":"helpy","full_name":"helpyio/helpy","owner":{"login":"helpyio","id":17730784,"avatar_url":"https://avatars.githubusercontent.com/u/17730784?v=3","gravatar_id":"","url":"https://api.github.com/users/helpyio","html_url":"https://github.com/helpyio","followers_url":"https://api.github.com/users/helpyio/followers","following_url":"https://api.github.com/users/helpyio/following{/other_user}","gists_url":"https://api.github.com/users/helpyio/gists{/gist_id}","starred_url":"https://api.github.com/users/helpyio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/helpyio/subscriptions","organizations_url":"https://api.github.com/users/helpyio/orgs","repos_url":"https://api.github.com/users/helpyio/repos","events_url":"https://api.github.com/users/helpyio/events{/privacy}","received_events_url":"https://api.github.com/users/helpyio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/helpyio/helpy","description":"Helpy is a modern, \"mobile-first\" helpdesk application built in Ruby. Features include multi-lingual knowledgebase, community discussions and private tickets integrated with email.","fork":false,"url":"https://api.github.com/repos/helpyio/helpy","forks_url":"https://api.github.com/repos/helpyio/helpy/forks","keys_url":"https://api.github.com/repos/helpyio/helpy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/helpyio/helpy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/helpyio/helpy/teams","hooks_url":"https://api.github.com/repos/helpyio/helpy/hooks","issue_events_url":"https://api.github.com/repos/helpyio/helpy/issues/events{/number}","events_url":"https://api.github.com/repos/helpyio/helpy/events","assignees_url":"https://api.github.com/repos/helpyio/helpy/assignees{/user}","branches_url":"https://api.github.com/repos/helpyio/helpy/branches{/branch}","tags_url":"https://api.github.com/repos/helpyio/helpy/tags","blobs_url":"https://api.github.com/repos/helpyio/helpy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/helpyio/helpy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/helpyio/helpy/git/refs{/sha}","trees_url":"https://api.github.com/repos/helpyio/helpy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/helpyio/helpy/statuses/{sha}","languages_url":"https://api.github.com/repos/helpyio/helpy/languages","stargazers_url":"https://api.github.com/repos/helpyio/helpy/stargazers","contributors_url":"https://api.github.com/repos/helpyio/helpy/contributors","subscribers_url":"https://api.github.com/repos/helpyio/helpy/subscribers","subscription_url":"https://api.github.com/repos/helpyio/helpy/subscription","commits_url":"https://api.github.com/repos/helpyio/helpy/commits{/sha}","git_commits_url":"https://api.github.com/repos/helpyio/helpy/git/commits{/sha}","comments_url":"https://api.github.com/repos/helpyio/helpy/comments{/number}","issue_comment_url":"https://api.github.com/repos/helpyio/helpy/issues/comments{/number}","contents_url":"https://api.github.com/repos/helpyio/helpy/contents/{+path}","compare_url":"https://api.github.com/repos/helpyio/helpy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/helpyio/helpy/merges","archive_url":"https://api.github.com/repos/helpyio/helpy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/helpyio/helpy/downloads","issues_url":"https://api.github.com/repos/helpyio/helpy/issues{/number}","pulls_url":"https://api.github.com/repos/helpyio/helpy/pulls{/number}","milestones_url":"https://api.github.com/repos/helpyio/helpy/milestones{/number}","notifications_url":"https://api.github.com/repos/helpyio/helpy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/helpyio/helpy/labels{/name}","releases_url":"https://api.github.com/repos/helpyio/helpy/releases{/id}","deployments_url":"https://api.github.com/repos/helpyio/helpy/deployments","created_at":"2015-04-01T03:44:22Z","updated_at":"2016-08-29T13:47:55Z","pushed_at":"2016-08-30T20:34:23Z","git_url":"git://github.com/helpyio/helpy.git","ssh_url":"git@github.com:helpyio/helpy.git","clone_url":"https://github.com/helpyio/helpy.git","svn_url":"https://github.com/helpyio/helpy","homepage":"http://helpy.io/?source=ghh","size":80482,"stargazers_count":730,"watchers_count":730,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":143,"mirror_url":null,"open_issues_count":56,"forks":143,"open_issues":56,"watchers":730,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/helpyio/helpy/pulls/313"},"html":{"href":"https://github.com/helpyio/helpy/pull/313"},"issue":{"href":"https://api.github.com/repos/helpyio/helpy/issues/313"},"comments":{"href":"https://api.github.com/repos/helpyio/helpy/issues/313/comments"},"review_comments":{"href":"https://api.github.com/repos/helpyio/helpy/pulls/313/comments"},"review_comment":{"href":"https://api.github.com/repos/helpyio/helpy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/helpyio/helpy/pulls/313/commits"},"statuses":{"href":"https://api.github.com/repos/helpyio/helpy/statuses/35c57fbe81d9c8071d4b6b3c2a66c5bc81e1fd24"}}}}
{"actor":{"display_login":"scott"}}