{"action":"created","comment":{"url":"https://api.github.com/repos/rubygems/rubygems.org/pulls/comments/57669806","id":57669806,"diff_hunk":"@@ -1,13 +1,25 @@\n class VersionsController < ApplicationController\n   before_action :find_rubygem\n+  before_action :latest_version, only: [:show, :reverse_dependencies]\n+  before_action :set_page, only: [:reverse_dependencies]\n \n   def index\n     @versions = @rubygem.versions.by_position\n   end\n \n   def show\n-    @latest_version = Version.find_from_slug!(@rubygem.id, params[:id])\n     @versions = @rubygem.public_versions_with_extra_version(@latest_version)","path":"app/controllers/versions_controller.rb","position":12,"original_position":12,"commit_id":"225f06bac0efd6da0ba0e8caadf15da3d71cb707","original_commit_id":"225f06bac0efd6da0ba0e8caadf15da3d71cb707","user":{"login":"kbrock","id":1930,"avatar_url":"https://avatars.githubusercontent.com/u/1930?v=3","gravatar_id":"","url":"https://api.github.com/users/kbrock","html_url":"https://github.com/kbrock","followers_url":"https://api.github.com/users/kbrock/followers","following_url":"https://api.github.com/users/kbrock/following{/other_user}","gists_url":"https://api.github.com/users/kbrock/gists{/gist_id}","starred_url":"https://api.github.com/users/kbrock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbrock/subscriptions","organizations_url":"https://api.github.com/users/kbrock/orgs","repos_url":"https://api.github.com/users/kbrock/repos","events_url":"https://api.github.com/users/kbrock/events{/privacy}","received_events_url":"https://api.github.com/users/kbrock/received_events","type":"User","site_admin":false},"body":"take this back. the `before_action` will load this. ","created_at":"2016-03-29T04:05:50Z","updated_at":"2016-03-29T04:05:50Z","html_url":"https://github.com/rubygems/rubygems.org/pull/945#discussion_r57669806","pull_request_url":"https://api.github.com/repos/rubygems/rubygems.org/pulls/945","_links":{"self":{"href":"https://api.github.com/repos/rubygems/rubygems.org/pulls/comments/57669806"},"html":{"href":"https://github.com/rubygems/rubygems.org/pull/945#discussion_r57669806"},"pull_request":{"href":"https://api.github.com/repos/rubygems/rubygems.org/pulls/945"}}},"pull_request":{"url":"https://api.github.com/repos/rubygems/rubygems.org/pulls/945","id":34385499,"html_url":"https://github.com/rubygems/rubygems.org/pull/945","diff_url":"https://github.com/rubygems/rubygems.org/pull/945.diff","patch_url":"https://github.com/rubygems/rubygems.org/pull/945.patch","issue_url":"https://api.github.com/repos/rubygems/rubygems.org/issues/945","number":945,"state":"open","locked":false,"title":"Expose rubygem reverse depencencies","user":{"login":"spk","id":98590,"avatar_url":"https://avatars.githubusercontent.com/u/98590?v=3","gravatar_id":"","url":"https://api.github.com/users/spk","html_url":"https://github.com/spk","followers_url":"https://api.github.com/users/spk/followers","following_url":"https://api.github.com/users/spk/following{/other_user}","gists_url":"https://api.github.com/users/spk/gists{/gist_id}","starred_url":"https://api.github.com/users/spk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spk/subscriptions","organizations_url":"https://api.github.com/users/spk/orgs","repos_url":"https://api.github.com/users/spk/repos","events_url":"https://api.github.com/users/spk/events{/privacy}","received_events_url":"https://api.github.com/users/spk/received_events","type":"User","site_admin":false},"body":"Expose reverse dependencies list.\r\n![rails-4 2 0_reverse_dependencies](https://cloud.githubusercontent.com/assets/98590/7667134/e794d140-fbfd-11e4-9a90-82dc4e213b75.png)\r\n![rails_reverse_dependencies_search_jquery](https://cloud.githubusercontent.com/assets/98590/7667144/605ee3a4-fbfe-11e4-94ae-6d71442aa5a5.png)\r\n\r\n","created_at":"2015-04-29T17:20:44Z","updated_at":"2016-03-29T04:05:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"02f50446f45fb24ee4465cebf4aa7199f0979537","assignee":{"login":"arthurnn","id":833383,"avatar_url":"https://avatars.githubusercontent.com/u/833383?v=3","gravatar_id":"","url":"https://api.github.com/users/arthurnn","html_url":"https://github.com/arthurnn","followers_url":"https://api.github.com/users/arthurnn/followers","following_url":"https://api.github.com/users/arthurnn/following{/other_user}","gists_url":"https://api.github.com/users/arthurnn/gists{/gist_id}","starred_url":"https://api.github.com/users/arthurnn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arthurnn/subscriptions","organizations_url":"https://api.github.com/users/arthurnn/orgs","repos_url":"https://api.github.com/users/arthurnn/repos","events_url":"https://api.github.com/users/arthurnn/events{/privacy}","received_events_url":"https://api.github.com/users/arthurnn/received_events","type":"User","site_admin":true},"milestone":null,"commits_url":"https://api.github.com/repos/rubygems/rubygems.org/pulls/945/commits","review_comments_url":"https://api.github.com/repos/rubygems/rubygems.org/pulls/945/comments","review_comment_url":"https://api.github.com/repos/rubygems/rubygems.org/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rubygems/rubygems.org/issues/945/comments","statuses_url":"https://api.github.com/repos/rubygems/rubygems.org/statuses/225f06bac0efd6da0ba0e8caadf15da3d71cb707","head":{"label":"spk:expose-reverse-dependencies","ref":"expose-reverse-dependencies","sha":"225f06bac0efd6da0ba0e8caadf15da3d71cb707","user":{"login":"spk","id":98590,"avatar_url":"https://avatars.githubusercontent.com/u/98590?v=3","gravatar_id":"","url":"https://api.github.com/users/spk","html_url":"https://github.com/spk","followers_url":"https://api.github.com/users/spk/followers","following_url":"https://api.github.com/users/spk/following{/other_user}","gists_url":"https://api.github.com/users/spk/gists{/gist_id}","starred_url":"https://api.github.com/users/spk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spk/subscriptions","organizations_url":"https://api.github.com/users/spk/orgs","repos_url":"https://api.github.com/users/spk/repos","events_url":"https://api.github.com/users/spk/events{/privacy}","received_events_url":"https://api.github.com/users/spk/received_events","type":"User","site_admin":false},"repo":{"id":33553215,"name":"rubygems.org","full_name":"spk/rubygems.org","owner":{"login":"spk","id":98590,"avatar_url":"https://avatars.githubusercontent.com/u/98590?v=3","gravatar_id":"","url":"https://api.github.com/users/spk","html_url":"https://github.com/spk","followers_url":"https://api.github.com/users/spk/followers","following_url":"https://api.github.com/users/spk/following{/other_user}","gists_url":"https://api.github.com/users/spk/gists{/gist_id}","starred_url":"https://api.github.com/users/spk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spk/subscriptions","organizations_url":"https://api.github.com/users/spk/orgs","repos_url":"https://api.github.com/users/spk/repos","events_url":"https://api.github.com/users/spk/events{/privacy}","received_events_url":"https://api.github.com/users/spk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/spk/rubygems.org","description":"The Ruby community's gem hosting service.","fork":true,"url":"https://api.github.com/repos/spk/rubygems.org","forks_url":"https://api.github.com/repos/spk/rubygems.org/forks","keys_url":"https://api.github.com/repos/spk/rubygems.org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spk/rubygems.org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spk/rubygems.org/teams","hooks_url":"https://api.github.com/repos/spk/rubygems.org/hooks","issue_events_url":"https://api.github.com/repos/spk/rubygems.org/issues/events{/number}","events_url":"https://api.github.com/repos/spk/rubygems.org/events","assignees_url":"https://api.github.com/repos/spk/rubygems.org/assignees{/user}","branches_url":"https://api.github.com/repos/spk/rubygems.org/branches{/branch}","tags_url":"https://api.github.com/repos/spk/rubygems.org/tags","blobs_url":"https://api.github.com/repos/spk/rubygems.org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spk/rubygems.org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spk/rubygems.org/git/refs{/sha}","trees_url":"https://api.github.com/repos/spk/rubygems.org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spk/rubygems.org/statuses/{sha}","languages_url":"https://api.github.com/repos/spk/rubygems.org/languages","stargazers_url":"https://api.github.com/repos/spk/rubygems.org/stargazers","contributors_url":"https://api.github.com/repos/spk/rubygems.org/contributors","subscribers_url":"https://api.github.com/repos/spk/rubygems.org/subscribers","subscription_url":"https://api.github.com/repos/spk/rubygems.org/subscription","commits_url":"https://api.github.com/repos/spk/rubygems.org/commits{/sha}","git_commits_url":"https://api.github.com/repos/spk/rubygems.org/git/commits{/sha}","comments_url":"https://api.github.com/repos/spk/rubygems.org/comments{/number}","issue_comment_url":"https://api.github.com/repos/spk/rubygems.org/issues/comments{/number}","contents_url":"https://api.github.com/repos/spk/rubygems.org/contents/{+path}","compare_url":"https://api.github.com/repos/spk/rubygems.org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spk/rubygems.org/merges","archive_url":"https://api.github.com/repos/spk/rubygems.org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spk/rubygems.org/downloads","issues_url":"https://api.github.com/repos/spk/rubygems.org/issues{/number}","pulls_url":"https://api.github.com/repos/spk/rubygems.org/pulls{/number}","milestones_url":"https://api.github.com/repos/spk/rubygems.org/milestones{/number}","notifications_url":"https://api.github.com/repos/spk/rubygems.org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spk/rubygems.org/labels{/name}","releases_url":"https://api.github.com/repos/spk/rubygems.org/releases{/id}","deployments_url":"https://api.github.com/repos/spk/rubygems.org/deployments","created_at":"2015-04-07T15:57:43Z","updated_at":"2015-04-07T15:57:44Z","pushed_at":"2016-03-05T17:14:16Z","git_url":"git://github.com/spk/rubygems.org.git","ssh_url":"git@github.com:spk/rubygems.org.git","clone_url":"https://github.com/spk/rubygems.org.git","svn_url":"https://github.com/spk/rubygems.org","homepage":"https://rubygems.org","size":8680,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":false,"has_wiki":true,"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":"rubygems:master","ref":"master","sha":"e000462b8926dfdaec68f95d99020b170be1a170","user":{"login":"rubygems","id":208761,"avatar_url":"https://avatars.githubusercontent.com/u/208761?v=3","gravatar_id":"","url":"https://api.github.com/users/rubygems","html_url":"https://github.com/rubygems","followers_url":"https://api.github.com/users/rubygems/followers","following_url":"https://api.github.com/users/rubygems/following{/other_user}","gists_url":"https://api.github.com/users/rubygems/gists{/gist_id}","starred_url":"https://api.github.com/users/rubygems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubygems/subscriptions","organizations_url":"https://api.github.com/users/rubygems/orgs","repos_url":"https://api.github.com/users/rubygems/repos","events_url":"https://api.github.com/users/rubygems/events{/privacy}","received_events_url":"https://api.github.com/users/rubygems/received_events","type":"Organization","site_admin":false},"repo":{"id":117646,"name":"rubygems.org","full_name":"rubygems/rubygems.org","owner":{"login":"rubygems","id":208761,"avatar_url":"https://avatars.githubusercontent.com/u/208761?v=3","gravatar_id":"","url":"https://api.github.com/users/rubygems","html_url":"https://github.com/rubygems","followers_url":"https://api.github.com/users/rubygems/followers","following_url":"https://api.github.com/users/rubygems/following{/other_user}","gists_url":"https://api.github.com/users/rubygems/gists{/gist_id}","starred_url":"https://api.github.com/users/rubygems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubygems/subscriptions","organizations_url":"https://api.github.com/users/rubygems/orgs","repos_url":"https://api.github.com/users/rubygems/repos","events_url":"https://api.github.com/users/rubygems/events{/privacy}","received_events_url":"https://api.github.com/users/rubygems/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rubygems/rubygems.org","description":"The Ruby community's gem hosting service.","fork":false,"url":"https://api.github.com/repos/rubygems/rubygems.org","forks_url":"https://api.github.com/repos/rubygems/rubygems.org/forks","keys_url":"https://api.github.com/repos/rubygems/rubygems.org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rubygems/rubygems.org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rubygems/rubygems.org/teams","hooks_url":"https://api.github.com/repos/rubygems/rubygems.org/hooks","issue_events_url":"https://api.github.com/repos/rubygems/rubygems.org/issues/events{/number}","events_url":"https://api.github.com/repos/rubygems/rubygems.org/events","assignees_url":"https://api.github.com/repos/rubygems/rubygems.org/assignees{/user}","branches_url":"https://api.github.com/repos/rubygems/rubygems.org/branches{/branch}","tags_url":"https://api.github.com/repos/rubygems/rubygems.org/tags","blobs_url":"https://api.github.com/repos/rubygems/rubygems.org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rubygems/rubygems.org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rubygems/rubygems.org/git/refs{/sha}","trees_url":"https://api.github.com/repos/rubygems/rubygems.org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rubygems/rubygems.org/statuses/{sha}","languages_url":"https://api.github.com/repos/rubygems/rubygems.org/languages","stargazers_url":"https://api.github.com/repos/rubygems/rubygems.org/stargazers","contributors_url":"https://api.github.com/repos/rubygems/rubygems.org/contributors","subscribers_url":"https://api.github.com/repos/rubygems/rubygems.org/subscribers","subscription_url":"https://api.github.com/repos/rubygems/rubygems.org/subscription","commits_url":"https://api.github.com/repos/rubygems/rubygems.org/commits{/sha}","git_commits_url":"https://api.github.com/repos/rubygems/rubygems.org/git/commits{/sha}","comments_url":"https://api.github.com/repos/rubygems/rubygems.org/comments{/number}","issue_comment_url":"https://api.github.com/repos/rubygems/rubygems.org/issues/comments{/number}","contents_url":"https://api.github.com/repos/rubygems/rubygems.org/contents/{+path}","compare_url":"https://api.github.com/repos/rubygems/rubygems.org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rubygems/rubygems.org/merges","archive_url":"https://api.github.com/repos/rubygems/rubygems.org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rubygems/rubygems.org/downloads","issues_url":"https://api.github.com/repos/rubygems/rubygems.org/issues{/number}","pulls_url":"https://api.github.com/repos/rubygems/rubygems.org/pulls{/number}","milestones_url":"https://api.github.com/repos/rubygems/rubygems.org/milestones{/number}","notifications_url":"https://api.github.com/repos/rubygems/rubygems.org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rubygems/rubygems.org/labels{/name}","releases_url":"https://api.github.com/repos/rubygems/rubygems.org/releases{/id}","deployments_url":"https://api.github.com/repos/rubygems/rubygems.org/deployments","created_at":"2009-01-29T22:30:46Z","updated_at":"2016-03-27T15:56:02Z","pushed_at":"2016-03-29T03:54:25Z","git_url":"git://github.com/rubygems/rubygems.org.git","ssh_url":"git@github.com:rubygems/rubygems.org.git","clone_url":"https://github.com/rubygems/rubygems.org.git","svn_url":"https://github.com/rubygems/rubygems.org","homepage":"https://rubygems.org","size":636611,"stargazers_count":1356,"watchers_count":1356,"language":"HTML","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":542,"mirror_url":null,"open_issues_count":45,"forks":542,"open_issues":45,"watchers":1356,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rubygems/rubygems.org/pulls/945"},"html":{"href":"https://github.com/rubygems/rubygems.org/pull/945"},"issue":{"href":"https://api.github.com/repos/rubygems/rubygems.org/issues/945"},"comments":{"href":"https://api.github.com/repos/rubygems/rubygems.org/issues/945/comments"},"review_comments":{"href":"https://api.github.com/repos/rubygems/rubygems.org/pulls/945/comments"},"review_comment":{"href":"https://api.github.com/repos/rubygems/rubygems.org/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rubygems/rubygems.org/pulls/945/commits"},"statuses":{"href":"https://api.github.com/repos/rubygems/rubygems.org/statuses/225f06bac0efd6da0ba0e8caadf15da3d71cb707"}}}}