{"action":"created","comment":{"url":"https://api.github.com/repos/ken1flan/everyones_notice/pulls/comments/25487589","id":25487589,"diff_hunk":"@@ -1,17 +1,33 @@\n class ActivitiesController < ApplicationController\n   PAR_PAGE = 10\n \n+  before_action :set_target_date\n+\n   def index\n-    @activities = Activity.related_user(current_user).\n+    @activities = Activity.\n+      related_user(current_user).\n+      between_beginning_and_end_of_day(@target_date).\n       default_order.\n-      page(params[:page]).per(PAR_PAGE)\n+      page(params[:page]).\n+      per(PAR_PAGE)\n   end\n \n   def all\n-    @activities = Activity.joins(:notice, :user).\n+    @activities = Activity.\n+      joins(:notice, :user).\n+      between_beginning_and_end_of_day(@target_date).\n       default_order.\n-      page(params[:page]).per(PAR_PAGE)\n-\n+      page(params[:page]).\n+      per(PAR_PAGE)\n     render \"index\"\n   end\n+\n+  private\n+    def set_target_date","path":"app/controllers/activities_controller.rb","position":31,"original_position":31,"commit_id":"937cabbeeb95247a7ecca24c2d2624812607cc8d","original_commit_id":"937cabbeeb95247a7ecca24c2d2624812607cc8d","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":"Assignment Branch Condition size for set_target_date is too high. [16.31/15]<br>Inconsistent indentation detected.","created_at":"2015-02-27T04:38:19Z","updated_at":"2015-02-27T04:38:19Z","html_url":"https://github.com/ken1flan/everyones_notice/pull/159#discussion_r25487589","pull_request_url":"https://api.github.com/repos/ken1flan/everyones_notice/pulls/159","_links":{"self":{"href":"https://api.github.com/repos/ken1flan/everyones_notice/pulls/comments/25487589"},"html":{"href":"https://github.com/ken1flan/everyones_notice/pull/159#discussion_r25487589"},"pull_request":{"href":"https://api.github.com/repos/ken1flan/everyones_notice/pulls/159"}}},"pull_request":{"url":"https://api.github.com/repos/ken1flan/everyones_notice/pulls/159","id":30141346,"html_url":"https://github.com/ken1flan/everyones_notice/pull/159","diff_url":"https://github.com/ken1flan/everyones_notice/pull/159.diff","patch_url":"https://github.com/ken1flan/everyones_notice/pull/159.patch","issue_url":"https://api.github.com/repos/ken1flan/everyones_notice/issues/159","number":159,"state":"open","locked":false,"title":"refs #158 カレンダーをぽちっとしたらその日のアクティビティが表示","user":{"login":"ken1flan","id":2942348,"avatar_url":"https://avatars.githubusercontent.com/u/2942348?v=3","gravatar_id":"","url":"https://api.github.com/users/ken1flan","html_url":"https://github.com/ken1flan","followers_url":"https://api.github.com/users/ken1flan/followers","following_url":"https://api.github.com/users/ken1flan/following{/other_user}","gists_url":"https://api.github.com/users/ken1flan/gists{/gist_id}","starred_url":"https://api.github.com/users/ken1flan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ken1flan/subscriptions","organizations_url":"https://api.github.com/users/ken1flan/orgs","repos_url":"https://api.github.com/users/ken1flan/repos","events_url":"https://api.github.com/users/ken1flan/events{/privacy}","received_events_url":"https://api.github.com/users/ken1flan/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-02-27T04:38:11Z","updated_at":"2015-02-27T04:38:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"198702f19ba60fffe9a949346da234ed6ad6e8bc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ken1flan/everyones_notice/pulls/159/commits","review_comments_url":"https://api.github.com/repos/ken1flan/everyones_notice/pulls/159/comments","review_comment_url":"https://api.github.com/repos/ken1flan/everyones_notice/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ken1flan/everyones_notice/issues/159/comments","statuses_url":"https://api.github.com/repos/ken1flan/everyones_notice/statuses/937cabbeeb95247a7ecca24c2d2624812607cc8d","head":{"label":"ken1flan:158_activity_page_of_the_day","ref":"158_activity_page_of_the_day","sha":"937cabbeeb95247a7ecca24c2d2624812607cc8d","user":{"login":"ken1flan","id":2942348,"avatar_url":"https://avatars.githubusercontent.com/u/2942348?v=3","gravatar_id":"","url":"https://api.github.com/users/ken1flan","html_url":"https://github.com/ken1flan","followers_url":"https://api.github.com/users/ken1flan/followers","following_url":"https://api.github.com/users/ken1flan/following{/other_user}","gists_url":"https://api.github.com/users/ken1flan/gists{/gist_id}","starred_url":"https://api.github.com/users/ken1flan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ken1flan/subscriptions","organizations_url":"https://api.github.com/users/ken1flan/orgs","repos_url":"https://api.github.com/users/ken1flan/repos","events_url":"https://api.github.com/users/ken1flan/events{/privacy}","received_events_url":"https://api.github.com/users/ken1flan/received_events","type":"User","site_admin":false},"repo":{"id":25445366,"name":"everyones_notice","full_name":"ken1flan/everyones_notice","owner":{"login":"ken1flan","id":2942348,"avatar_url":"https://avatars.githubusercontent.com/u/2942348?v=3","gravatar_id":"","url":"https://api.github.com/users/ken1flan","html_url":"https://github.com/ken1flan","followers_url":"https://api.github.com/users/ken1flan/followers","following_url":"https://api.github.com/users/ken1flan/following{/other_user}","gists_url":"https://api.github.com/users/ken1flan/gists{/gist_id}","starred_url":"https://api.github.com/users/ken1flan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ken1flan/subscriptions","organizations_url":"https://api.github.com/users/ken1flan/orgs","repos_url":"https://api.github.com/users/ken1flan/repos","events_url":"https://api.github.com/users/ken1flan/events{/privacy}","received_events_url":"https://api.github.com/users/ken1flan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ken1flan/everyones_notice","description":"share everyone's notice.","fork":false,"url":"https://api.github.com/repos/ken1flan/everyones_notice","forks_url":"https://api.github.com/repos/ken1flan/everyones_notice/forks","keys_url":"https://api.github.com/repos/ken1flan/everyones_notice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ken1flan/everyones_notice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ken1flan/everyones_notice/teams","hooks_url":"https://api.github.com/repos/ken1flan/everyones_notice/hooks","issue_events_url":"https://api.github.com/repos/ken1flan/everyones_notice/issues/events{/number}","events_url":"https://api.github.com/repos/ken1flan/everyones_notice/events","assignees_url":"https://api.github.com/repos/ken1flan/everyones_notice/assignees{/user}","branches_url":"https://api.github.com/repos/ken1flan/everyones_notice/branches{/branch}","tags_url":"https://api.github.com/repos/ken1flan/everyones_notice/tags","blobs_url":"https://api.github.com/repos/ken1flan/everyones_notice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ken1flan/everyones_notice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ken1flan/everyones_notice/git/refs{/sha}","trees_url":"https://api.github.com/repos/ken1flan/everyones_notice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ken1flan/everyones_notice/statuses/{sha}","languages_url":"https://api.github.com/repos/ken1flan/everyones_notice/languages","stargazers_url":"https://api.github.com/repos/ken1flan/everyones_notice/stargazers","contributors_url":"https://api.github.com/repos/ken1flan/everyones_notice/contributors","subscribers_url":"https://api.github.com/repos/ken1flan/everyones_notice/subscribers","subscription_url":"https://api.github.com/repos/ken1flan/everyones_notice/subscription","commits_url":"https://api.github.com/repos/ken1flan/everyones_notice/commits{/sha}","git_commits_url":"https://api.github.com/repos/ken1flan/everyones_notice/git/commits{/sha}","comments_url":"https://api.github.com/repos/ken1flan/everyones_notice/comments{/number}","issue_comment_url":"https://api.github.com/repos/ken1flan/everyones_notice/issues/comments{/number}","contents_url":"https://api.github.com/repos/ken1flan/everyones_notice/contents/{+path}","compare_url":"https://api.github.com/repos/ken1flan/everyones_notice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ken1flan/everyones_notice/merges","archive_url":"https://api.github.com/repos/ken1flan/everyones_notice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ken1flan/everyones_notice/downloads","issues_url":"https://api.github.com/repos/ken1flan/everyones_notice/issues{/number}","pulls_url":"https://api.github.com/repos/ken1flan/everyones_notice/pulls{/number}","milestones_url":"https://api.github.com/repos/ken1flan/everyones_notice/milestones{/number}","notifications_url":"https://api.github.com/repos/ken1flan/everyones_notice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ken1flan/everyones_notice/labels{/name}","releases_url":"https://api.github.com/repos/ken1flan/everyones_notice/releases{/id}","created_at":"2014-10-20T01:08:04Z","updated_at":"2015-02-22T11:25:43Z","pushed_at":"2015-02-27T04:37:57Z","git_url":"git://github.com/ken1flan/everyones_notice.git","ssh_url":"git@github.com:ken1flan/everyones_notice.git","clone_url":"https://github.com/ken1flan/everyones_notice.git","svn_url":"https://github.com/ken1flan/everyones_notice","homepage":null,"size":1548,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":14,"forks":1,"open_issues":14,"watchers":2,"default_branch":"develop"}},"base":{"label":"ken1flan:develop","ref":"develop","sha":"5000de5fc45907e87a6bf0adc07caa1c8b535b91","user":{"login":"ken1flan","id":2942348,"avatar_url":"https://avatars.githubusercontent.com/u/2942348?v=3","gravatar_id":"","url":"https://api.github.com/users/ken1flan","html_url":"https://github.com/ken1flan","followers_url":"https://api.github.com/users/ken1flan/followers","following_url":"https://api.github.com/users/ken1flan/following{/other_user}","gists_url":"https://api.github.com/users/ken1flan/gists{/gist_id}","starred_url":"https://api.github.com/users/ken1flan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ken1flan/subscriptions","organizations_url":"https://api.github.com/users/ken1flan/orgs","repos_url":"https://api.github.com/users/ken1flan/repos","events_url":"https://api.github.com/users/ken1flan/events{/privacy}","received_events_url":"https://api.github.com/users/ken1flan/received_events","type":"User","site_admin":false},"repo":{"id":25445366,"name":"everyones_notice","full_name":"ken1flan/everyones_notice","owner":{"login":"ken1flan","id":2942348,"avatar_url":"https://avatars.githubusercontent.com/u/2942348?v=3","gravatar_id":"","url":"https://api.github.com/users/ken1flan","html_url":"https://github.com/ken1flan","followers_url":"https://api.github.com/users/ken1flan/followers","following_url":"https://api.github.com/users/ken1flan/following{/other_user}","gists_url":"https://api.github.com/users/ken1flan/gists{/gist_id}","starred_url":"https://api.github.com/users/ken1flan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ken1flan/subscriptions","organizations_url":"https://api.github.com/users/ken1flan/orgs","repos_url":"https://api.github.com/users/ken1flan/repos","events_url":"https://api.github.com/users/ken1flan/events{/privacy}","received_events_url":"https://api.github.com/users/ken1flan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ken1flan/everyones_notice","description":"share everyone's notice.","fork":false,"url":"https://api.github.com/repos/ken1flan/everyones_notice","forks_url":"https://api.github.com/repos/ken1flan/everyones_notice/forks","keys_url":"https://api.github.com/repos/ken1flan/everyones_notice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ken1flan/everyones_notice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ken1flan/everyones_notice/teams","hooks_url":"https://api.github.com/repos/ken1flan/everyones_notice/hooks","issue_events_url":"https://api.github.com/repos/ken1flan/everyones_notice/issues/events{/number}","events_url":"https://api.github.com/repos/ken1flan/everyones_notice/events","assignees_url":"https://api.github.com/repos/ken1flan/everyones_notice/assignees{/user}","branches_url":"https://api.github.com/repos/ken1flan/everyones_notice/branches{/branch}","tags_url":"https://api.github.com/repos/ken1flan/everyones_notice/tags","blobs_url":"https://api.github.com/repos/ken1flan/everyones_notice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ken1flan/everyones_notice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ken1flan/everyones_notice/git/refs{/sha}","trees_url":"https://api.github.com/repos/ken1flan/everyones_notice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ken1flan/everyones_notice/statuses/{sha}","languages_url":"https://api.github.com/repos/ken1flan/everyones_notice/languages","stargazers_url":"https://api.github.com/repos/ken1flan/everyones_notice/stargazers","contributors_url":"https://api.github.com/repos/ken1flan/everyones_notice/contributors","subscribers_url":"https://api.github.com/repos/ken1flan/everyones_notice/subscribers","subscription_url":"https://api.github.com/repos/ken1flan/everyones_notice/subscription","commits_url":"https://api.github.com/repos/ken1flan/everyones_notice/commits{/sha}","git_commits_url":"https://api.github.com/repos/ken1flan/everyones_notice/git/commits{/sha}","comments_url":"https://api.github.com/repos/ken1flan/everyones_notice/comments{/number}","issue_comment_url":"https://api.github.com/repos/ken1flan/everyones_notice/issues/comments{/number}","contents_url":"https://api.github.com/repos/ken1flan/everyones_notice/contents/{+path}","compare_url":"https://api.github.com/repos/ken1flan/everyones_notice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ken1flan/everyones_notice/merges","archive_url":"https://api.github.com/repos/ken1flan/everyones_notice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ken1flan/everyones_notice/downloads","issues_url":"https://api.github.com/repos/ken1flan/everyones_notice/issues{/number}","pulls_url":"https://api.github.com/repos/ken1flan/everyones_notice/pulls{/number}","milestones_url":"https://api.github.com/repos/ken1flan/everyones_notice/milestones{/number}","notifications_url":"https://api.github.com/repos/ken1flan/everyones_notice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ken1flan/everyones_notice/labels{/name}","releases_url":"https://api.github.com/repos/ken1flan/everyones_notice/releases{/id}","created_at":"2014-10-20T01:08:04Z","updated_at":"2015-02-22T11:25:43Z","pushed_at":"2015-02-27T04:37:57Z","git_url":"git://github.com/ken1flan/everyones_notice.git","ssh_url":"git@github.com:ken1flan/everyones_notice.git","clone_url":"https://github.com/ken1flan/everyones_notice.git","svn_url":"https://github.com/ken1flan/everyones_notice","homepage":null,"size":1548,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":14,"forks":1,"open_issues":14,"watchers":2,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/ken1flan/everyones_notice/pulls/159"},"html":{"href":"https://github.com/ken1flan/everyones_notice/pull/159"},"issue":{"href":"https://api.github.com/repos/ken1flan/everyones_notice/issues/159"},"comments":{"href":"https://api.github.com/repos/ken1flan/everyones_notice/issues/159/comments"},"review_comments":{"href":"https://api.github.com/repos/ken1flan/everyones_notice/pulls/159/comments"},"review_comment":{"href":"https://api.github.com/repos/ken1flan/everyones_notice/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ken1flan/everyones_notice/pulls/159/commits"},"statuses":{"href":"https://api.github.com/repos/ken1flan/everyones_notice/statuses/937cabbeeb95247a7ecca24c2d2624812607cc8d"}}}}