{"action":"created","comment":{"url":"https://api.github.com/repos/PRX/cms.prx.org/pulls/comments/28247545","id":28247545,"diff_hunk":"@@ -13,8 +13,8 @@ def random\n \n   def resource\n     @story ||= if params[:id]\n-      Story.published.visible.find_by_id(params[:id])\n-    else\n+      Story.published.visible.find(params[:id])","path":"app/controllers/api/stories_controller.rb","position":6,"original_position":6,"commit_id":"b33fbe2550a974079f561e73184775a95b737bbf","original_commit_id":"b33fbe2550a974079f561e73184775a95b737bbf","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":"Use 2 (not -9) spaces for indentation.","created_at":"2015-04-13T15:19:32Z","updated_at":"2015-04-13T15:19:32Z","html_url":"https://github.com/PRX/cms.prx.org/pull/83#discussion_r28247545","pull_request_url":"https://api.github.com/repos/PRX/cms.prx.org/pulls/83","_links":{"self":{"href":"https://api.github.com/repos/PRX/cms.prx.org/pulls/comments/28247545"},"html":{"href":"https://github.com/PRX/cms.prx.org/pull/83#discussion_r28247545"},"pull_request":{"href":"https://api.github.com/repos/PRX/cms.prx.org/pulls/83"}}},"pull_request":{"url":"https://api.github.com/repos/PRX/cms.prx.org/pulls/83","id":33173403,"html_url":"https://github.com/PRX/cms.prx.org/pull/83","diff_url":"https://github.com/PRX/cms.prx.org/pull/83.diff","patch_url":"https://github.com/PRX/cms.prx.org/pull/83.patch","issue_url":"https://api.github.com/repos/PRX/cms.prx.org/issues/83","number":83,"state":"open","locked":false,"title":"Refactor controllers","user":{"login":"kookster","id":46439,"avatar_url":"https://avatars.githubusercontent.com/u/46439?v=3","gravatar_id":"","url":"https://api.github.com/users/kookster","html_url":"https://github.com/kookster","followers_url":"https://api.github.com/users/kookster/followers","following_url":"https://api.github.com/users/kookster/following{/other_user}","gists_url":"https://api.github.com/users/kookster/gists{/gist_id}","starred_url":"https://api.github.com/users/kookster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kookster/subscriptions","organizations_url":"https://api.github.com/users/kookster/orgs","repos_url":"https://api.github.com/users/kookster/repos","events_url":"https://api.github.com/users/kookster/events{/privacy}","received_events_url":"https://api.github.com/users/kookster/received_events","type":"User","site_admin":false},"body":"I noticed some inconsistencies in how controllers were overriding resource and resources.","created_at":"2015-04-13T15:19:26Z","updated_at":"2015-04-13T15:19:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"773a7a400f803b59bcc16fa2fd6a9e6deede247f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/PRX/cms.prx.org/pulls/83/commits","review_comments_url":"https://api.github.com/repos/PRX/cms.prx.org/pulls/83/comments","review_comment_url":"https://api.github.com/repos/PRX/cms.prx.org/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PRX/cms.prx.org/issues/83/comments","statuses_url":"https://api.github.com/repos/PRX/cms.prx.org/statuses/b33fbe2550a974079f561e73184775a95b737bbf","head":{"label":"PRX:fix/refactor_controllers","ref":"fix/refactor_controllers","sha":"b33fbe2550a974079f561e73184775a95b737bbf","user":{"login":"PRX","id":160453,"avatar_url":"https://avatars.githubusercontent.com/u/160453?v=3","gravatar_id":"","url":"https://api.github.com/users/PRX","html_url":"https://github.com/PRX","followers_url":"https://api.github.com/users/PRX/followers","following_url":"https://api.github.com/users/PRX/following{/other_user}","gists_url":"https://api.github.com/users/PRX/gists{/gist_id}","starred_url":"https://api.github.com/users/PRX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PRX/subscriptions","organizations_url":"https://api.github.com/users/PRX/orgs","repos_url":"https://api.github.com/users/PRX/repos","events_url":"https://api.github.com/users/PRX/events{/privacy}","received_events_url":"https://api.github.com/users/PRX/received_events","type":"Organization","site_admin":false},"repo":{"id":14878369,"name":"cms.prx.org","full_name":"PRX/cms.prx.org","owner":{"login":"PRX","id":160453,"avatar_url":"https://avatars.githubusercontent.com/u/160453?v=3","gravatar_id":"","url":"https://api.github.com/users/PRX","html_url":"https://github.com/PRX","followers_url":"https://api.github.com/users/PRX/followers","following_url":"https://api.github.com/users/PRX/following{/other_user}","gists_url":"https://api.github.com/users/PRX/gists{/gist_id}","starred_url":"https://api.github.com/users/PRX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PRX/subscriptions","organizations_url":"https://api.github.com/users/PRX/orgs","repos_url":"https://api.github.com/users/PRX/repos","events_url":"https://api.github.com/users/PRX/events{/privacy}","received_events_url":"https://api.github.com/users/PRX/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PRX/cms.prx.org","description":"Rails App for PRX (under development)","fork":false,"url":"https://api.github.com/repos/PRX/cms.prx.org","forks_url":"https://api.github.com/repos/PRX/cms.prx.org/forks","keys_url":"https://api.github.com/repos/PRX/cms.prx.org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PRX/cms.prx.org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PRX/cms.prx.org/teams","hooks_url":"https://api.github.com/repos/PRX/cms.prx.org/hooks","issue_events_url":"https://api.github.com/repos/PRX/cms.prx.org/issues/events{/number}","events_url":"https://api.github.com/repos/PRX/cms.prx.org/events","assignees_url":"https://api.github.com/repos/PRX/cms.prx.org/assignees{/user}","branches_url":"https://api.github.com/repos/PRX/cms.prx.org/branches{/branch}","tags_url":"https://api.github.com/repos/PRX/cms.prx.org/tags","blobs_url":"https://api.github.com/repos/PRX/cms.prx.org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PRX/cms.prx.org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PRX/cms.prx.org/git/refs{/sha}","trees_url":"https://api.github.com/repos/PRX/cms.prx.org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PRX/cms.prx.org/statuses/{sha}","languages_url":"https://api.github.com/repos/PRX/cms.prx.org/languages","stargazers_url":"https://api.github.com/repos/PRX/cms.prx.org/stargazers","contributors_url":"https://api.github.com/repos/PRX/cms.prx.org/contributors","subscribers_url":"https://api.github.com/repos/PRX/cms.prx.org/subscribers","subscription_url":"https://api.github.com/repos/PRX/cms.prx.org/subscription","commits_url":"https://api.github.com/repos/PRX/cms.prx.org/commits{/sha}","git_commits_url":"https://api.github.com/repos/PRX/cms.prx.org/git/commits{/sha}","comments_url":"https://api.github.com/repos/PRX/cms.prx.org/comments{/number}","issue_comment_url":"https://api.github.com/repos/PRX/cms.prx.org/issues/comments{/number}","contents_url":"https://api.github.com/repos/PRX/cms.prx.org/contents/{+path}","compare_url":"https://api.github.com/repos/PRX/cms.prx.org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PRX/cms.prx.org/merges","archive_url":"https://api.github.com/repos/PRX/cms.prx.org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PRX/cms.prx.org/downloads","issues_url":"https://api.github.com/repos/PRX/cms.prx.org/issues{/number}","pulls_url":"https://api.github.com/repos/PRX/cms.prx.org/pulls{/number}","milestones_url":"https://api.github.com/repos/PRX/cms.prx.org/milestones{/number}","notifications_url":"https://api.github.com/repos/PRX/cms.prx.org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PRX/cms.prx.org/labels{/name}","releases_url":"https://api.github.com/repos/PRX/cms.prx.org/releases{/id}","created_at":"2013-12-02T23:48:10Z","updated_at":"2015-04-13T14:56:08Z","pushed_at":"2015-04-13T15:19:26Z","git_url":"git://github.com/PRX/cms.prx.org.git","ssh_url":"git@github.com:PRX/cms.prx.org.git","clone_url":"https://github.com/PRX/cms.prx.org.git","svn_url":"https://github.com/PRX/cms.prx.org","homepage":"http://www.prx.org","size":2686,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":4,"forks":2,"open_issues":4,"watchers":1,"default_branch":"master"}},"base":{"label":"PRX:master","ref":"master","sha":"08674f780e349624de3daf7c229c9a4f1c14658f","user":{"login":"PRX","id":160453,"avatar_url":"https://avatars.githubusercontent.com/u/160453?v=3","gravatar_id":"","url":"https://api.github.com/users/PRX","html_url":"https://github.com/PRX","followers_url":"https://api.github.com/users/PRX/followers","following_url":"https://api.github.com/users/PRX/following{/other_user}","gists_url":"https://api.github.com/users/PRX/gists{/gist_id}","starred_url":"https://api.github.com/users/PRX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PRX/subscriptions","organizations_url":"https://api.github.com/users/PRX/orgs","repos_url":"https://api.github.com/users/PRX/repos","events_url":"https://api.github.com/users/PRX/events{/privacy}","received_events_url":"https://api.github.com/users/PRX/received_events","type":"Organization","site_admin":false},"repo":{"id":14878369,"name":"cms.prx.org","full_name":"PRX/cms.prx.org","owner":{"login":"PRX","id":160453,"avatar_url":"https://avatars.githubusercontent.com/u/160453?v=3","gravatar_id":"","url":"https://api.github.com/users/PRX","html_url":"https://github.com/PRX","followers_url":"https://api.github.com/users/PRX/followers","following_url":"https://api.github.com/users/PRX/following{/other_user}","gists_url":"https://api.github.com/users/PRX/gists{/gist_id}","starred_url":"https://api.github.com/users/PRX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PRX/subscriptions","organizations_url":"https://api.github.com/users/PRX/orgs","repos_url":"https://api.github.com/users/PRX/repos","events_url":"https://api.github.com/users/PRX/events{/privacy}","received_events_url":"https://api.github.com/users/PRX/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PRX/cms.prx.org","description":"Rails App for PRX (under development)","fork":false,"url":"https://api.github.com/repos/PRX/cms.prx.org","forks_url":"https://api.github.com/repos/PRX/cms.prx.org/forks","keys_url":"https://api.github.com/repos/PRX/cms.prx.org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PRX/cms.prx.org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PRX/cms.prx.org/teams","hooks_url":"https://api.github.com/repos/PRX/cms.prx.org/hooks","issue_events_url":"https://api.github.com/repos/PRX/cms.prx.org/issues/events{/number}","events_url":"https://api.github.com/repos/PRX/cms.prx.org/events","assignees_url":"https://api.github.com/repos/PRX/cms.prx.org/assignees{/user}","branches_url":"https://api.github.com/repos/PRX/cms.prx.org/branches{/branch}","tags_url":"https://api.github.com/repos/PRX/cms.prx.org/tags","blobs_url":"https://api.github.com/repos/PRX/cms.prx.org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PRX/cms.prx.org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PRX/cms.prx.org/git/refs{/sha}","trees_url":"https://api.github.com/repos/PRX/cms.prx.org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PRX/cms.prx.org/statuses/{sha}","languages_url":"https://api.github.com/repos/PRX/cms.prx.org/languages","stargazers_url":"https://api.github.com/repos/PRX/cms.prx.org/stargazers","contributors_url":"https://api.github.com/repos/PRX/cms.prx.org/contributors","subscribers_url":"https://api.github.com/repos/PRX/cms.prx.org/subscribers","subscription_url":"https://api.github.com/repos/PRX/cms.prx.org/subscription","commits_url":"https://api.github.com/repos/PRX/cms.prx.org/commits{/sha}","git_commits_url":"https://api.github.com/repos/PRX/cms.prx.org/git/commits{/sha}","comments_url":"https://api.github.com/repos/PRX/cms.prx.org/comments{/number}","issue_comment_url":"https://api.github.com/repos/PRX/cms.prx.org/issues/comments{/number}","contents_url":"https://api.github.com/repos/PRX/cms.prx.org/contents/{+path}","compare_url":"https://api.github.com/repos/PRX/cms.prx.org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PRX/cms.prx.org/merges","archive_url":"https://api.github.com/repos/PRX/cms.prx.org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PRX/cms.prx.org/downloads","issues_url":"https://api.github.com/repos/PRX/cms.prx.org/issues{/number}","pulls_url":"https://api.github.com/repos/PRX/cms.prx.org/pulls{/number}","milestones_url":"https://api.github.com/repos/PRX/cms.prx.org/milestones{/number}","notifications_url":"https://api.github.com/repos/PRX/cms.prx.org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PRX/cms.prx.org/labels{/name}","releases_url":"https://api.github.com/repos/PRX/cms.prx.org/releases{/id}","created_at":"2013-12-02T23:48:10Z","updated_at":"2015-04-13T14:56:08Z","pushed_at":"2015-04-13T15:19:26Z","git_url":"git://github.com/PRX/cms.prx.org.git","ssh_url":"git@github.com:PRX/cms.prx.org.git","clone_url":"https://github.com/PRX/cms.prx.org.git","svn_url":"https://github.com/PRX/cms.prx.org","homepage":"http://www.prx.org","size":2686,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":4,"forks":2,"open_issues":4,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PRX/cms.prx.org/pulls/83"},"html":{"href":"https://github.com/PRX/cms.prx.org/pull/83"},"issue":{"href":"https://api.github.com/repos/PRX/cms.prx.org/issues/83"},"comments":{"href":"https://api.github.com/repos/PRX/cms.prx.org/issues/83/comments"},"review_comments":{"href":"https://api.github.com/repos/PRX/cms.prx.org/pulls/83/comments"},"review_comment":{"href":"https://api.github.com/repos/PRX/cms.prx.org/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PRX/cms.prx.org/pulls/83/commits"},"statuses":{"href":"https://api.github.com/repos/PRX/cms.prx.org/statuses/b33fbe2550a974079f561e73184775a95b737bbf"}}}}