{"action":"created","comment":{"url":"https://api.github.com/repos/gabebw/hotline-webring/pulls/comments/44498521","id":44498521,"diff_hunk":"@@ -0,0 +1,13 @@\n+class RedirectionsController < ApplicationController\n+  def next\n+    redirection = Redirection.find_by(slug: params[:slug])","path":"app/controllers/redirections_controller.rb","position":3,"original_position":3,"commit_id":"c1c00857370c0c1c7c03920a0fbeead432f1618e","original_commit_id":"368c8d6de38895c9c5d3eeffd3f7e443928f0659","user":{"login":"gabebw","id":257678,"avatar_url":"https://avatars.githubusercontent.com/u/257678?v=3","gravatar_id":"","url":"https://api.github.com/users/gabebw","html_url":"https://github.com/gabebw","followers_url":"https://api.github.com/users/gabebw/followers","following_url":"https://api.github.com/users/gabebw/following{/other_user}","gists_url":"https://api.github.com/users/gabebw/gists{/gist_id}","starred_url":"https://api.github.com/users/gabebw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabebw/subscriptions","organizations_url":"https://api.github.com/users/gabebw/orgs","repos_url":"https://api.github.com/users/gabebw/repos","events_url":"https://api.github.com/users/gabebw/events{/privacy}","received_events_url":"https://api.github.com/users/gabebw/received_events","type":"User","site_admin":false},"body":"Yup, that's what I'm thinking. If we need to we can always deregister or blacklist or whitelist people.","created_at":"2015-11-11T03:30:16Z","updated_at":"2015-11-11T03:30:16Z","html_url":"https://github.com/gabebw/hotline-webring/pull/1#discussion_r44498521","pull_request_url":"https://api.github.com/repos/gabebw/hotline-webring/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/gabebw/hotline-webring/pulls/comments/44498521"},"html":{"href":"https://github.com/gabebw/hotline-webring/pull/1#discussion_r44498521"},"pull_request":{"href":"https://api.github.com/repos/gabebw/hotline-webring/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/gabebw/hotline-webring/pulls/1","id":50309628,"html_url":"https://github.com/gabebw/hotline-webring/pull/1","diff_url":"https://github.com/gabebw/hotline-webring/pull/1.diff","patch_url":"https://github.com/gabebw/hotline-webring/pull/1.patch","issue_url":"https://api.github.com/repos/gabebw/hotline-webring/issues/1","number":1,"state":"open","locked":false,"title":"Proof of Concept","user":{"login":"edwardloveall","id":49549,"avatar_url":"https://avatars.githubusercontent.com/u/49549?v=3","gravatar_id":"","url":"https://api.github.com/users/edwardloveall","html_url":"https://github.com/edwardloveall","followers_url":"https://api.github.com/users/edwardloveall/followers","following_url":"https://api.github.com/users/edwardloveall/following{/other_user}","gists_url":"https://api.github.com/users/edwardloveall/gists{/gist_id}","starred_url":"https://api.github.com/users/edwardloveall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edwardloveall/subscriptions","organizations_url":"https://api.github.com/users/edwardloveall/orgs","repos_url":"https://api.github.com/users/edwardloveall/repos","events_url":"https://api.github.com/users/edwardloveall/events{/privacy}","received_events_url":"https://api.github.com/users/edwardloveall/received_events","type":"User","site_admin":false},"body":"A redirection has:\r\n\r\n* A slug (to find with)\r\n* A url (to redirect to)\r\n* A next (reference to another redirection)\r\n* A previous (virtual reference to another redirection)\r\n\r\nUsing this, we can do `redirection.next.url` and `redirection.previous.url`\r\n\r\nThis is, as the title suggests a proof of concept. There's a bit of cleaning up (using the slug as a default find method, law of demeter in controller) to do. Lemme know what cha think.","created_at":"2015-11-10T20:55:09Z","updated_at":"2015-11-11T03:30:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c6ae87f859fed67bb4e3dabd16695aaa34ba9e84","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gabebw/hotline-webring/pulls/1/commits","review_comments_url":"https://api.github.com/repos/gabebw/hotline-webring/pulls/1/comments","review_comment_url":"https://api.github.com/repos/gabebw/hotline-webring/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gabebw/hotline-webring/issues/1/comments","statuses_url":"https://api.github.com/repos/gabebw/hotline-webring/statuses/c1c00857370c0c1c7c03920a0fbeead432f1618e","head":{"label":"gabebw:el-proof-of-concept","ref":"el-proof-of-concept","sha":"c1c00857370c0c1c7c03920a0fbeead432f1618e","user":{"login":"gabebw","id":257678,"avatar_url":"https://avatars.githubusercontent.com/u/257678?v=3","gravatar_id":"","url":"https://api.github.com/users/gabebw","html_url":"https://github.com/gabebw","followers_url":"https://api.github.com/users/gabebw/followers","following_url":"https://api.github.com/users/gabebw/following{/other_user}","gists_url":"https://api.github.com/users/gabebw/gists{/gist_id}","starred_url":"https://api.github.com/users/gabebw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabebw/subscriptions","organizations_url":"https://api.github.com/users/gabebw/orgs","repos_url":"https://api.github.com/users/gabebw/repos","events_url":"https://api.github.com/users/gabebw/events{/privacy}","received_events_url":"https://api.github.com/users/gabebw/received_events","type":"User","site_admin":false},"repo":{"id":45444252,"name":"hotline-webring","full_name":"gabebw/hotline-webring","owner":{"login":"gabebw","id":257678,"avatar_url":"https://avatars.githubusercontent.com/u/257678?v=3","gravatar_id":"","url":"https://api.github.com/users/gabebw","html_url":"https://github.com/gabebw","followers_url":"https://api.github.com/users/gabebw/followers","following_url":"https://api.github.com/users/gabebw/following{/other_user}","gists_url":"https://api.github.com/users/gabebw/gists{/gist_id}","starred_url":"https://api.github.com/users/gabebw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabebw/subscriptions","organizations_url":"https://api.github.com/users/gabebw/orgs","repos_url":"https://api.github.com/users/gabebw/repos","events_url":"https://api.github.com/users/gabebw/events{/privacy}","received_events_url":"https://api.github.com/users/gabebw/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gabebw/hotline-webring","description":"this can only mean one thing","fork":false,"url":"https://api.github.com/repos/gabebw/hotline-webring","forks_url":"https://api.github.com/repos/gabebw/hotline-webring/forks","keys_url":"https://api.github.com/repos/gabebw/hotline-webring/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gabebw/hotline-webring/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gabebw/hotline-webring/teams","hooks_url":"https://api.github.com/repos/gabebw/hotline-webring/hooks","issue_events_url":"https://api.github.com/repos/gabebw/hotline-webring/issues/events{/number}","events_url":"https://api.github.com/repos/gabebw/hotline-webring/events","assignees_url":"https://api.github.com/repos/gabebw/hotline-webring/assignees{/user}","branches_url":"https://api.github.com/repos/gabebw/hotline-webring/branches{/branch}","tags_url":"https://api.github.com/repos/gabebw/hotline-webring/tags","blobs_url":"https://api.github.com/repos/gabebw/hotline-webring/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gabebw/hotline-webring/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gabebw/hotline-webring/git/refs{/sha}","trees_url":"https://api.github.com/repos/gabebw/hotline-webring/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gabebw/hotline-webring/statuses/{sha}","languages_url":"https://api.github.com/repos/gabebw/hotline-webring/languages","stargazers_url":"https://api.github.com/repos/gabebw/hotline-webring/stargazers","contributors_url":"https://api.github.com/repos/gabebw/hotline-webring/contributors","subscribers_url":"https://api.github.com/repos/gabebw/hotline-webring/subscribers","subscription_url":"https://api.github.com/repos/gabebw/hotline-webring/subscription","commits_url":"https://api.github.com/repos/gabebw/hotline-webring/commits{/sha}","git_commits_url":"https://api.github.com/repos/gabebw/hotline-webring/git/commits{/sha}","comments_url":"https://api.github.com/repos/gabebw/hotline-webring/comments{/number}","issue_comment_url":"https://api.github.com/repos/gabebw/hotline-webring/issues/comments{/number}","contents_url":"https://api.github.com/repos/gabebw/hotline-webring/contents/{+path}","compare_url":"https://api.github.com/repos/gabebw/hotline-webring/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gabebw/hotline-webring/merges","archive_url":"https://api.github.com/repos/gabebw/hotline-webring/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gabebw/hotline-webring/downloads","issues_url":"https://api.github.com/repos/gabebw/hotline-webring/issues{/number}","pulls_url":"https://api.github.com/repos/gabebw/hotline-webring/pulls{/number}","milestones_url":"https://api.github.com/repos/gabebw/hotline-webring/milestones{/number}","notifications_url":"https://api.github.com/repos/gabebw/hotline-webring/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gabebw/hotline-webring/labels{/name}","releases_url":"https://api.github.com/repos/gabebw/hotline-webring/releases{/id}","created_at":"2015-11-03T05:36:38Z","updated_at":"2015-11-03T05:56:22Z","pushed_at":"2015-11-10T21:58:50Z","git_url":"git://github.com/gabebw/hotline-webring.git","ssh_url":"git@github.com:gabebw/hotline-webring.git","clone_url":"https://github.com/gabebw/hotline-webring.git","svn_url":"https://github.com/gabebw/hotline-webring","homepage":"","size":140,"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":"gabebw:master","ref":"master","sha":"38ae2d56490bd5e114697adf7bd6c7826de51f85","user":{"login":"gabebw","id":257678,"avatar_url":"https://avatars.githubusercontent.com/u/257678?v=3","gravatar_id":"","url":"https://api.github.com/users/gabebw","html_url":"https://github.com/gabebw","followers_url":"https://api.github.com/users/gabebw/followers","following_url":"https://api.github.com/users/gabebw/following{/other_user}","gists_url":"https://api.github.com/users/gabebw/gists{/gist_id}","starred_url":"https://api.github.com/users/gabebw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabebw/subscriptions","organizations_url":"https://api.github.com/users/gabebw/orgs","repos_url":"https://api.github.com/users/gabebw/repos","events_url":"https://api.github.com/users/gabebw/events{/privacy}","received_events_url":"https://api.github.com/users/gabebw/received_events","type":"User","site_admin":false},"repo":{"id":45444252,"name":"hotline-webring","full_name":"gabebw/hotline-webring","owner":{"login":"gabebw","id":257678,"avatar_url":"https://avatars.githubusercontent.com/u/257678?v=3","gravatar_id":"","url":"https://api.github.com/users/gabebw","html_url":"https://github.com/gabebw","followers_url":"https://api.github.com/users/gabebw/followers","following_url":"https://api.github.com/users/gabebw/following{/other_user}","gists_url":"https://api.github.com/users/gabebw/gists{/gist_id}","starred_url":"https://api.github.com/users/gabebw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabebw/subscriptions","organizations_url":"https://api.github.com/users/gabebw/orgs","repos_url":"https://api.github.com/users/gabebw/repos","events_url":"https://api.github.com/users/gabebw/events{/privacy}","received_events_url":"https://api.github.com/users/gabebw/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gabebw/hotline-webring","description":"this can only mean one thing","fork":false,"url":"https://api.github.com/repos/gabebw/hotline-webring","forks_url":"https://api.github.com/repos/gabebw/hotline-webring/forks","keys_url":"https://api.github.com/repos/gabebw/hotline-webring/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gabebw/hotline-webring/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gabebw/hotline-webring/teams","hooks_url":"https://api.github.com/repos/gabebw/hotline-webring/hooks","issue_events_url":"https://api.github.com/repos/gabebw/hotline-webring/issues/events{/number}","events_url":"https://api.github.com/repos/gabebw/hotline-webring/events","assignees_url":"https://api.github.com/repos/gabebw/hotline-webring/assignees{/user}","branches_url":"https://api.github.com/repos/gabebw/hotline-webring/branches{/branch}","tags_url":"https://api.github.com/repos/gabebw/hotline-webring/tags","blobs_url":"https://api.github.com/repos/gabebw/hotline-webring/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gabebw/hotline-webring/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gabebw/hotline-webring/git/refs{/sha}","trees_url":"https://api.github.com/repos/gabebw/hotline-webring/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gabebw/hotline-webring/statuses/{sha}","languages_url":"https://api.github.com/repos/gabebw/hotline-webring/languages","stargazers_url":"https://api.github.com/repos/gabebw/hotline-webring/stargazers","contributors_url":"https://api.github.com/repos/gabebw/hotline-webring/contributors","subscribers_url":"https://api.github.com/repos/gabebw/hotline-webring/subscribers","subscription_url":"https://api.github.com/repos/gabebw/hotline-webring/subscription","commits_url":"https://api.github.com/repos/gabebw/hotline-webring/commits{/sha}","git_commits_url":"https://api.github.com/repos/gabebw/hotline-webring/git/commits{/sha}","comments_url":"https://api.github.com/repos/gabebw/hotline-webring/comments{/number}","issue_comment_url":"https://api.github.com/repos/gabebw/hotline-webring/issues/comments{/number}","contents_url":"https://api.github.com/repos/gabebw/hotline-webring/contents/{+path}","compare_url":"https://api.github.com/repos/gabebw/hotline-webring/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gabebw/hotline-webring/merges","archive_url":"https://api.github.com/repos/gabebw/hotline-webring/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gabebw/hotline-webring/downloads","issues_url":"https://api.github.com/repos/gabebw/hotline-webring/issues{/number}","pulls_url":"https://api.github.com/repos/gabebw/hotline-webring/pulls{/number}","milestones_url":"https://api.github.com/repos/gabebw/hotline-webring/milestones{/number}","notifications_url":"https://api.github.com/repos/gabebw/hotline-webring/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gabebw/hotline-webring/labels{/name}","releases_url":"https://api.github.com/repos/gabebw/hotline-webring/releases{/id}","created_at":"2015-11-03T05:36:38Z","updated_at":"2015-11-03T05:56:22Z","pushed_at":"2015-11-10T21:58:50Z","git_url":"git://github.com/gabebw/hotline-webring.git","ssh_url":"git@github.com:gabebw/hotline-webring.git","clone_url":"https://github.com/gabebw/hotline-webring.git","svn_url":"https://github.com/gabebw/hotline-webring","homepage":"","size":140,"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/gabebw/hotline-webring/pulls/1"},"html":{"href":"https://github.com/gabebw/hotline-webring/pull/1"},"issue":{"href":"https://api.github.com/repos/gabebw/hotline-webring/issues/1"},"comments":{"href":"https://api.github.com/repos/gabebw/hotline-webring/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/gabebw/hotline-webring/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/gabebw/hotline-webring/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gabebw/hotline-webring/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/gabebw/hotline-webring/statuses/c1c00857370c0c1c7c03920a0fbeead432f1618e"}}}}