{"action":"created","comment":{"url":"https://api.github.com/repos/annict/annict/pulls/comments/24290482","id":24290482,"diff_hunk":"@@ -1,10 +1,20 @@\n class EpisodesController < ApplicationController\n-  before_filter :set_work,    only: [:index, :show]\n-  before_filter :set_episode, only: [:show]\n+  before_filter :set_work,         only: [:index, :show]\n+  before_filter :set_episode,      only: [:show]\n+  before_filter :set_checkin_user, only: [:show]\n \n \n   def show\n-    @checkins = @episode.checkins.order(created_at: :desc)\n+    @checkins = @episode.checkins.includes(user: :profile).order(created_at: :desc)\n+    checkin_users = User.joins(:checkins)\n+                        .where('checkins.episode_id': @episode.id)\n+                        .where('checkins.user_id': @checkins.pluck(:user_id).uniq)","path":"app/controllers/episodes_controller.rb","position":14,"original_position":14,"commit_id":"29de645054822a1eeca69df27da9036f30e596a6","original_commit_id":"29de645054822a1eeca69df27da9036f30e596a6","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":"unexpected token tCOLON<br>unexpected token tRPAREN","created_at":"2015-02-07T16:29:49Z","updated_at":"2015-02-07T16:29:49Z","html_url":"https://github.com/annict/annict/pull/153#discussion_r24290482","pull_request_url":"https://api.github.com/repos/annict/annict/pulls/153","_links":{"self":{"href":"https://api.github.com/repos/annict/annict/pulls/comments/24290482"},"html":{"href":"https://github.com/annict/annict/pull/153#discussion_r24290482"},"pull_request":{"href":"https://api.github.com/repos/annict/annict/pulls/153"}}},"pull_request":{"url":"https://api.github.com/repos/annict/annict/pulls/153","id":28866235,"html_url":"https://github.com/annict/annict/pull/153","diff_url":"https://github.com/annict/annict/pull/153.diff","patch_url":"https://github.com/annict/annict/pull/153.patch","issue_url":"https://api.github.com/repos/annict/annict/issues/153","number":153,"state":"open","locked":false,"title":"エピソードページの改修","user":{"login":"bojovs","id":56767,"avatar_url":"https://avatars.githubusercontent.com/u/56767?v=3","gravatar_id":"","url":"https://api.github.com/users/bojovs","html_url":"https://github.com/bojovs","followers_url":"https://api.github.com/users/bojovs/followers","following_url":"https://api.github.com/users/bojovs/following{/other_user}","gists_url":"https://api.github.com/users/bojovs/gists{/gist_id}","starred_url":"https://api.github.com/users/bojovs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bojovs/subscriptions","organizations_url":"https://api.github.com/users/bojovs/orgs","repos_url":"https://api.github.com/users/bojovs/repos","events_url":"https://api.github.com/users/bojovs/events{/privacy}","received_events_url":"https://api.github.com/users/bojovs/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-02-07T16:29:45Z","updated_at":"2015-02-07T16:29:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"892ce8c21ecd9722b36adf72da1ddb6a0f32a02d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/annict/annict/pulls/153/commits","review_comments_url":"https://api.github.com/repos/annict/annict/pulls/153/comments","review_comment_url":"https://api.github.com/repos/annict/annict/pulls/comments/{number}","comments_url":"https://api.github.com/repos/annict/annict/issues/153/comments","statuses_url":"https://api.github.com/repos/annict/annict/statuses/29de645054822a1eeca69df27da9036f30e596a6","head":{"label":"annict:refine-episode-page","ref":"refine-episode-page","sha":"29de645054822a1eeca69df27da9036f30e596a6","user":{"login":"annict","id":7150984,"avatar_url":"https://avatars.githubusercontent.com/u/7150984?v=3","gravatar_id":"","url":"https://api.github.com/users/annict","html_url":"https://github.com/annict","followers_url":"https://api.github.com/users/annict/followers","following_url":"https://api.github.com/users/annict/following{/other_user}","gists_url":"https://api.github.com/users/annict/gists{/gist_id}","starred_url":"https://api.github.com/users/annict/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/annict/subscriptions","organizations_url":"https://api.github.com/users/annict/orgs","repos_url":"https://api.github.com/users/annict/repos","events_url":"https://api.github.com/users/annict/events{/privacy}","received_events_url":"https://api.github.com/users/annict/received_events","type":"Organization","site_admin":false},"repo":{"id":21744872,"name":"annict","full_name":"annict/annict","owner":{"login":"annict","id":7150984,"avatar_url":"https://avatars.githubusercontent.com/u/7150984?v=3","gravatar_id":"","url":"https://api.github.com/users/annict","html_url":"https://github.com/annict","followers_url":"https://api.github.com/users/annict/followers","following_url":"https://api.github.com/users/annict/following{/other_user}","gists_url":"https://api.github.com/users/annict/gists{/gist_id}","starred_url":"https://api.github.com/users/annict/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/annict/subscriptions","organizations_url":"https://api.github.com/users/annict/orgs","repos_url":"https://api.github.com/users/annict/repos","events_url":"https://api.github.com/users/annict/events{/privacy}","received_events_url":"https://api.github.com/users/annict/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/annict/annict","description":"Rails 4.2とAngular.js 1.3で開発中のアニメ視聴記録サービス「Annict」です。","fork":false,"url":"https://api.github.com/repos/annict/annict","forks_url":"https://api.github.com/repos/annict/annict/forks","keys_url":"https://api.github.com/repos/annict/annict/keys{/key_id}","collaborators_url":"https://api.github.com/repos/annict/annict/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/annict/annict/teams","hooks_url":"https://api.github.com/repos/annict/annict/hooks","issue_events_url":"https://api.github.com/repos/annict/annict/issues/events{/number}","events_url":"https://api.github.com/repos/annict/annict/events","assignees_url":"https://api.github.com/repos/annict/annict/assignees{/user}","branches_url":"https://api.github.com/repos/annict/annict/branches{/branch}","tags_url":"https://api.github.com/repos/annict/annict/tags","blobs_url":"https://api.github.com/repos/annict/annict/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/annict/annict/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/annict/annict/git/refs{/sha}","trees_url":"https://api.github.com/repos/annict/annict/git/trees{/sha}","statuses_url":"https://api.github.com/repos/annict/annict/statuses/{sha}","languages_url":"https://api.github.com/repos/annict/annict/languages","stargazers_url":"https://api.github.com/repos/annict/annict/stargazers","contributors_url":"https://api.github.com/repos/annict/annict/contributors","subscribers_url":"https://api.github.com/repos/annict/annict/subscribers","subscription_url":"https://api.github.com/repos/annict/annict/subscription","commits_url":"https://api.github.com/repos/annict/annict/commits{/sha}","git_commits_url":"https://api.github.com/repos/annict/annict/git/commits{/sha}","comments_url":"https://api.github.com/repos/annict/annict/comments{/number}","issue_comment_url":"https://api.github.com/repos/annict/annict/issues/comments/{number}","contents_url":"https://api.github.com/repos/annict/annict/contents/{+path}","compare_url":"https://api.github.com/repos/annict/annict/compare/{base}...{head}","merges_url":"https://api.github.com/repos/annict/annict/merges","archive_url":"https://api.github.com/repos/annict/annict/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/annict/annict/downloads","issues_url":"https://api.github.com/repos/annict/annict/issues{/number}","pulls_url":"https://api.github.com/repos/annict/annict/pulls{/number}","milestones_url":"https://api.github.com/repos/annict/annict/milestones{/number}","notifications_url":"https://api.github.com/repos/annict/annict/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/annict/annict/labels{/name}","releases_url":"https://api.github.com/repos/annict/annict/releases{/id}","created_at":"2014-07-11T17:18:18Z","updated_at":"2015-02-07T06:35:21Z","pushed_at":"2015-02-07T16:28:56Z","git_url":"git://github.com/annict/annict.git","ssh_url":"git@github.com:annict/annict.git","clone_url":"https://github.com/annict/annict.git","svn_url":"https://github.com/annict/annict","homepage":"http://www.annict.com","size":27688,"stargazers_count":36,"watchers_count":36,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":43,"forks":5,"open_issues":43,"watchers":36,"default_branch":"master"}},"base":{"label":"annict:master","ref":"master","sha":"997e4b53c03b92388b32234d8c0a4a93bb081a7e","user":{"login":"annict","id":7150984,"avatar_url":"https://avatars.githubusercontent.com/u/7150984?v=3","gravatar_id":"","url":"https://api.github.com/users/annict","html_url":"https://github.com/annict","followers_url":"https://api.github.com/users/annict/followers","following_url":"https://api.github.com/users/annict/following{/other_user}","gists_url":"https://api.github.com/users/annict/gists{/gist_id}","starred_url":"https://api.github.com/users/annict/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/annict/subscriptions","organizations_url":"https://api.github.com/users/annict/orgs","repos_url":"https://api.github.com/users/annict/repos","events_url":"https://api.github.com/users/annict/events{/privacy}","received_events_url":"https://api.github.com/users/annict/received_events","type":"Organization","site_admin":false},"repo":{"id":21744872,"name":"annict","full_name":"annict/annict","owner":{"login":"annict","id":7150984,"avatar_url":"https://avatars.githubusercontent.com/u/7150984?v=3","gravatar_id":"","url":"https://api.github.com/users/annict","html_url":"https://github.com/annict","followers_url":"https://api.github.com/users/annict/followers","following_url":"https://api.github.com/users/annict/following{/other_user}","gists_url":"https://api.github.com/users/annict/gists{/gist_id}","starred_url":"https://api.github.com/users/annict/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/annict/subscriptions","organizations_url":"https://api.github.com/users/annict/orgs","repos_url":"https://api.github.com/users/annict/repos","events_url":"https://api.github.com/users/annict/events{/privacy}","received_events_url":"https://api.github.com/users/annict/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/annict/annict","description":"Rails 4.2とAngular.js 1.3で開発中のアニメ視聴記録サービス「Annict」です。","fork":false,"url":"https://api.github.com/repos/annict/annict","forks_url":"https://api.github.com/repos/annict/annict/forks","keys_url":"https://api.github.com/repos/annict/annict/keys{/key_id}","collaborators_url":"https://api.github.com/repos/annict/annict/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/annict/annict/teams","hooks_url":"https://api.github.com/repos/annict/annict/hooks","issue_events_url":"https://api.github.com/repos/annict/annict/issues/events{/number}","events_url":"https://api.github.com/repos/annict/annict/events","assignees_url":"https://api.github.com/repos/annict/annict/assignees{/user}","branches_url":"https://api.github.com/repos/annict/annict/branches{/branch}","tags_url":"https://api.github.com/repos/annict/annict/tags","blobs_url":"https://api.github.com/repos/annict/annict/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/annict/annict/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/annict/annict/git/refs{/sha}","trees_url":"https://api.github.com/repos/annict/annict/git/trees{/sha}","statuses_url":"https://api.github.com/repos/annict/annict/statuses/{sha}","languages_url":"https://api.github.com/repos/annict/annict/languages","stargazers_url":"https://api.github.com/repos/annict/annict/stargazers","contributors_url":"https://api.github.com/repos/annict/annict/contributors","subscribers_url":"https://api.github.com/repos/annict/annict/subscribers","subscription_url":"https://api.github.com/repos/annict/annict/subscription","commits_url":"https://api.github.com/repos/annict/annict/commits{/sha}","git_commits_url":"https://api.github.com/repos/annict/annict/git/commits{/sha}","comments_url":"https://api.github.com/repos/annict/annict/comments{/number}","issue_comment_url":"https://api.github.com/repos/annict/annict/issues/comments/{number}","contents_url":"https://api.github.com/repos/annict/annict/contents/{+path}","compare_url":"https://api.github.com/repos/annict/annict/compare/{base}...{head}","merges_url":"https://api.github.com/repos/annict/annict/merges","archive_url":"https://api.github.com/repos/annict/annict/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/annict/annict/downloads","issues_url":"https://api.github.com/repos/annict/annict/issues{/number}","pulls_url":"https://api.github.com/repos/annict/annict/pulls{/number}","milestones_url":"https://api.github.com/repos/annict/annict/milestones{/number}","notifications_url":"https://api.github.com/repos/annict/annict/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/annict/annict/labels{/name}","releases_url":"https://api.github.com/repos/annict/annict/releases{/id}","created_at":"2014-07-11T17:18:18Z","updated_at":"2015-02-07T06:35:21Z","pushed_at":"2015-02-07T16:28:56Z","git_url":"git://github.com/annict/annict.git","ssh_url":"git@github.com:annict/annict.git","clone_url":"https://github.com/annict/annict.git","svn_url":"https://github.com/annict/annict","homepage":"http://www.annict.com","size":27688,"stargazers_count":36,"watchers_count":36,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":43,"forks":5,"open_issues":43,"watchers":36,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/annict/annict/pulls/153"},"html":{"href":"https://github.com/annict/annict/pull/153"},"issue":{"href":"https://api.github.com/repos/annict/annict/issues/153"},"comments":{"href":"https://api.github.com/repos/annict/annict/issues/153/comments"},"review_comments":{"href":"https://api.github.com/repos/annict/annict/pulls/153/comments"},"review_comment":{"href":"https://api.github.com/repos/annict/annict/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/annict/annict/pulls/153/commits"},"statuses":{"href":"https://api.github.com/repos/annict/annict/statuses/29de645054822a1eeca69df27da9036f30e596a6"}}}}