{"action":"created","comment":{"url":"https://api.github.com/repos/Tobitron/sitcom-review/pulls/comments/27519937","id":27519937,"diff_hunk":"@@ -1,8 +1,9 @@\n class SitcomsController < ApplicationController\n-  before_action :authenticate_user!, only: [:new, :create]\n+  before_action :authenticate_user!, only: [:new, :create, :edit, :update, :destroy]\n+  before_action :fetch_sitcom, only: [:show, :edit, :destroy]\n \n   def index\n-    @sitcoms = Sitcom.all.limit(20)\n+    @sitcoms = Sitcom.all.limit(20).sort_by { |sitcom| sitcom.start_year }.reverse","path":"app/controllers/sitcoms_controller.rb","position":8,"original_position":8,"commit_id":"79ba64b007c4cd54e0a4c2d05d4e779637bcdf1e","original_commit_id":"79ba64b007c4cd54e0a4c2d05d4e779637bcdf1e","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":"Line is too long. [82/80]","created_at":"2015-03-31T20:31:23Z","updated_at":"2015-03-31T20:31:23Z","html_url":"https://github.com/Tobitron/sitcom-review/pull/5#discussion_r27519937","pull_request_url":"https://api.github.com/repos/Tobitron/sitcom-review/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/Tobitron/sitcom-review/pulls/comments/27519937"},"html":{"href":"https://github.com/Tobitron/sitcom-review/pull/5#discussion_r27519937"},"pull_request":{"href":"https://api.github.com/repos/Tobitron/sitcom-review/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/Tobitron/sitcom-review/pulls/5","id":32362568,"html_url":"https://github.com/Tobitron/sitcom-review/pull/5","diff_url":"https://github.com/Tobitron/sitcom-review/pull/5.diff","patch_url":"https://github.com/Tobitron/sitcom-review/pull/5.patch","issue_url":"https://api.github.com/repos/Tobitron/sitcom-review/issues/5","number":5,"state":"open","locked":false,"title":"RFR: added read, edit/update and delete functionality to Sitcom class","user":{"login":"RoccStar","id":9888578,"avatar_url":"https://avatars.githubusercontent.com/u/9888578?v=3","gravatar_id":"","url":"https://api.github.com/users/RoccStar","html_url":"https://github.com/RoccStar","followers_url":"https://api.github.com/users/RoccStar/followers","following_url":"https://api.github.com/users/RoccStar/following{/other_user}","gists_url":"https://api.github.com/users/RoccStar/gists{/gist_id}","starred_url":"https://api.github.com/users/RoccStar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RoccStar/subscriptions","organizations_url":"https://api.github.com/users/RoccStar/orgs","repos_url":"https://api.github.com/users/RoccStar/repos","events_url":"https://api.github.com/users/RoccStar/events{/privacy}","received_events_url":"https://api.github.com/users/RoccStar/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-03-31T20:31:17Z","updated_at":"2015-03-31T20:31:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e3e8cc25d17af583c565e049c4734611d845c93b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Tobitron/sitcom-review/pulls/5/commits","review_comments_url":"https://api.github.com/repos/Tobitron/sitcom-review/pulls/5/comments","review_comment_url":"https://api.github.com/repos/Tobitron/sitcom-review/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Tobitron/sitcom-review/issues/5/comments","statuses_url":"https://api.github.com/repos/Tobitron/sitcom-review/statuses/79ba64b007c4cd54e0a4c2d05d4e779637bcdf1e","head":{"label":"Tobitron:RB-view-sitcoms","ref":"RB-view-sitcoms","sha":"79ba64b007c4cd54e0a4c2d05d4e779637bcdf1e","user":{"login":"Tobitron","id":2693541,"avatar_url":"https://avatars.githubusercontent.com/u/2693541?v=3","gravatar_id":"","url":"https://api.github.com/users/Tobitron","html_url":"https://github.com/Tobitron","followers_url":"https://api.github.com/users/Tobitron/followers","following_url":"https://api.github.com/users/Tobitron/following{/other_user}","gists_url":"https://api.github.com/users/Tobitron/gists{/gist_id}","starred_url":"https://api.github.com/users/Tobitron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tobitron/subscriptions","organizations_url":"https://api.github.com/users/Tobitron/orgs","repos_url":"https://api.github.com/users/Tobitron/repos","events_url":"https://api.github.com/users/Tobitron/events{/privacy}","received_events_url":"https://api.github.com/users/Tobitron/received_events","type":"User","site_admin":false},"repo":{"id":33130275,"name":"sitcom-review","full_name":"Tobitron/sitcom-review","owner":{"login":"Tobitron","id":2693541,"avatar_url":"https://avatars.githubusercontent.com/u/2693541?v=3","gravatar_id":"","url":"https://api.github.com/users/Tobitron","html_url":"https://github.com/Tobitron","followers_url":"https://api.github.com/users/Tobitron/followers","following_url":"https://api.github.com/users/Tobitron/following{/other_user}","gists_url":"https://api.github.com/users/Tobitron/gists{/gist_id}","starred_url":"https://api.github.com/users/Tobitron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tobitron/subscriptions","organizations_url":"https://api.github.com/users/Tobitron/orgs","repos_url":"https://api.github.com/users/Tobitron/repos","events_url":"https://api.github.com/users/Tobitron/events{/privacy}","received_events_url":"https://api.github.com/users/Tobitron/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Tobitron/sitcom-review","description":"A sitcom and comedy tv show review site.","fork":false,"url":"https://api.github.com/repos/Tobitron/sitcom-review","forks_url":"https://api.github.com/repos/Tobitron/sitcom-review/forks","keys_url":"https://api.github.com/repos/Tobitron/sitcom-review/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Tobitron/sitcom-review/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Tobitron/sitcom-review/teams","hooks_url":"https://api.github.com/repos/Tobitron/sitcom-review/hooks","issue_events_url":"https://api.github.com/repos/Tobitron/sitcom-review/issues/events{/number}","events_url":"https://api.github.com/repos/Tobitron/sitcom-review/events","assignees_url":"https://api.github.com/repos/Tobitron/sitcom-review/assignees{/user}","branches_url":"https://api.github.com/repos/Tobitron/sitcom-review/branches{/branch}","tags_url":"https://api.github.com/repos/Tobitron/sitcom-review/tags","blobs_url":"https://api.github.com/repos/Tobitron/sitcom-review/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Tobitron/sitcom-review/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Tobitron/sitcom-review/git/refs{/sha}","trees_url":"https://api.github.com/repos/Tobitron/sitcom-review/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Tobitron/sitcom-review/statuses/{sha}","languages_url":"https://api.github.com/repos/Tobitron/sitcom-review/languages","stargazers_url":"https://api.github.com/repos/Tobitron/sitcom-review/stargazers","contributors_url":"https://api.github.com/repos/Tobitron/sitcom-review/contributors","subscribers_url":"https://api.github.com/repos/Tobitron/sitcom-review/subscribers","subscription_url":"https://api.github.com/repos/Tobitron/sitcom-review/subscription","commits_url":"https://api.github.com/repos/Tobitron/sitcom-review/commits{/sha}","git_commits_url":"https://api.github.com/repos/Tobitron/sitcom-review/git/commits{/sha}","comments_url":"https://api.github.com/repos/Tobitron/sitcom-review/comments{/number}","issue_comment_url":"https://api.github.com/repos/Tobitron/sitcom-review/issues/comments{/number}","contents_url":"https://api.github.com/repos/Tobitron/sitcom-review/contents/{+path}","compare_url":"https://api.github.com/repos/Tobitron/sitcom-review/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Tobitron/sitcom-review/merges","archive_url":"https://api.github.com/repos/Tobitron/sitcom-review/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Tobitron/sitcom-review/downloads","issues_url":"https://api.github.com/repos/Tobitron/sitcom-review/issues{/number}","pulls_url":"https://api.github.com/repos/Tobitron/sitcom-review/pulls{/number}","milestones_url":"https://api.github.com/repos/Tobitron/sitcom-review/milestones{/number}","notifications_url":"https://api.github.com/repos/Tobitron/sitcom-review/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Tobitron/sitcom-review/labels{/name}","releases_url":"https://api.github.com/repos/Tobitron/sitcom-review/releases{/id}","created_at":"2015-03-30T15:07:51Z","updated_at":"2015-03-31T14:20:54Z","pushed_at":"2015-03-31T20:31:18Z","git_url":"git://github.com/Tobitron/sitcom-review.git","ssh_url":"git@github.com:Tobitron/sitcom-review.git","clone_url":"https://github.com/Tobitron/sitcom-review.git","svn_url":"https://github.com/Tobitron/sitcom-review","homepage":null,"size":0,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"Tobitron:master","ref":"master","sha":"5f4073099646b67e3877e4bf309dba1dc4b8bc2b","user":{"login":"Tobitron","id":2693541,"avatar_url":"https://avatars.githubusercontent.com/u/2693541?v=3","gravatar_id":"","url":"https://api.github.com/users/Tobitron","html_url":"https://github.com/Tobitron","followers_url":"https://api.github.com/users/Tobitron/followers","following_url":"https://api.github.com/users/Tobitron/following{/other_user}","gists_url":"https://api.github.com/users/Tobitron/gists{/gist_id}","starred_url":"https://api.github.com/users/Tobitron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tobitron/subscriptions","organizations_url":"https://api.github.com/users/Tobitron/orgs","repos_url":"https://api.github.com/users/Tobitron/repos","events_url":"https://api.github.com/users/Tobitron/events{/privacy}","received_events_url":"https://api.github.com/users/Tobitron/received_events","type":"User","site_admin":false},"repo":{"id":33130275,"name":"sitcom-review","full_name":"Tobitron/sitcom-review","owner":{"login":"Tobitron","id":2693541,"avatar_url":"https://avatars.githubusercontent.com/u/2693541?v=3","gravatar_id":"","url":"https://api.github.com/users/Tobitron","html_url":"https://github.com/Tobitron","followers_url":"https://api.github.com/users/Tobitron/followers","following_url":"https://api.github.com/users/Tobitron/following{/other_user}","gists_url":"https://api.github.com/users/Tobitron/gists{/gist_id}","starred_url":"https://api.github.com/users/Tobitron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tobitron/subscriptions","organizations_url":"https://api.github.com/users/Tobitron/orgs","repos_url":"https://api.github.com/users/Tobitron/repos","events_url":"https://api.github.com/users/Tobitron/events{/privacy}","received_events_url":"https://api.github.com/users/Tobitron/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Tobitron/sitcom-review","description":"A sitcom and comedy tv show review site.","fork":false,"url":"https://api.github.com/repos/Tobitron/sitcom-review","forks_url":"https://api.github.com/repos/Tobitron/sitcom-review/forks","keys_url":"https://api.github.com/repos/Tobitron/sitcom-review/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Tobitron/sitcom-review/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Tobitron/sitcom-review/teams","hooks_url":"https://api.github.com/repos/Tobitron/sitcom-review/hooks","issue_events_url":"https://api.github.com/repos/Tobitron/sitcom-review/issues/events{/number}","events_url":"https://api.github.com/repos/Tobitron/sitcom-review/events","assignees_url":"https://api.github.com/repos/Tobitron/sitcom-review/assignees{/user}","branches_url":"https://api.github.com/repos/Tobitron/sitcom-review/branches{/branch}","tags_url":"https://api.github.com/repos/Tobitron/sitcom-review/tags","blobs_url":"https://api.github.com/repos/Tobitron/sitcom-review/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Tobitron/sitcom-review/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Tobitron/sitcom-review/git/refs{/sha}","trees_url":"https://api.github.com/repos/Tobitron/sitcom-review/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Tobitron/sitcom-review/statuses/{sha}","languages_url":"https://api.github.com/repos/Tobitron/sitcom-review/languages","stargazers_url":"https://api.github.com/repos/Tobitron/sitcom-review/stargazers","contributors_url":"https://api.github.com/repos/Tobitron/sitcom-review/contributors","subscribers_url":"https://api.github.com/repos/Tobitron/sitcom-review/subscribers","subscription_url":"https://api.github.com/repos/Tobitron/sitcom-review/subscription","commits_url":"https://api.github.com/repos/Tobitron/sitcom-review/commits{/sha}","git_commits_url":"https://api.github.com/repos/Tobitron/sitcom-review/git/commits{/sha}","comments_url":"https://api.github.com/repos/Tobitron/sitcom-review/comments{/number}","issue_comment_url":"https://api.github.com/repos/Tobitron/sitcom-review/issues/comments{/number}","contents_url":"https://api.github.com/repos/Tobitron/sitcom-review/contents/{+path}","compare_url":"https://api.github.com/repos/Tobitron/sitcom-review/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Tobitron/sitcom-review/merges","archive_url":"https://api.github.com/repos/Tobitron/sitcom-review/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Tobitron/sitcom-review/downloads","issues_url":"https://api.github.com/repos/Tobitron/sitcom-review/issues{/number}","pulls_url":"https://api.github.com/repos/Tobitron/sitcom-review/pulls{/number}","milestones_url":"https://api.github.com/repos/Tobitron/sitcom-review/milestones{/number}","notifications_url":"https://api.github.com/repos/Tobitron/sitcom-review/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Tobitron/sitcom-review/labels{/name}","releases_url":"https://api.github.com/repos/Tobitron/sitcom-review/releases{/id}","created_at":"2015-03-30T15:07:51Z","updated_at":"2015-03-31T14:20:54Z","pushed_at":"2015-03-31T20:31:18Z","git_url":"git://github.com/Tobitron/sitcom-review.git","ssh_url":"git@github.com:Tobitron/sitcom-review.git","clone_url":"https://github.com/Tobitron/sitcom-review.git","svn_url":"https://github.com/Tobitron/sitcom-review","homepage":null,"size":0,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Tobitron/sitcom-review/pulls/5"},"html":{"href":"https://github.com/Tobitron/sitcom-review/pull/5"},"issue":{"href":"https://api.github.com/repos/Tobitron/sitcom-review/issues/5"},"comments":{"href":"https://api.github.com/repos/Tobitron/sitcom-review/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/Tobitron/sitcom-review/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/Tobitron/sitcom-review/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Tobitron/sitcom-review/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/Tobitron/sitcom-review/statuses/79ba64b007c4cd54e0a4c2d05d4e779637bcdf1e"}}}}