{"action":"created","comment":{"url":"https://api.github.com/repos/Recursively/shiny-meme/pulls/comments/65475559","id":65475559,"diff_hunk":"@@ -2,4 +2,12 @@ class ApplicationController < ActionController::Base\n   # Prevent CSRF attacks by raising an exception.\n   # For APIs, you may want to use :null_session instead.\n   protect_from_forgery with: :exception\n+\n+  before_action :auth_user!\n+\n+  private\n+\n+  def auth_user!\n+    authenticate_user! unless params[:controller] == 'home'","path":"app/controllers/application_controller.rb","position":10,"original_position":10,"commit_id":"5859f0f3965bc3188278ec16492810c14b56ceaa","original_commit_id":"5859f0f3965bc3188278ec16492810c14b56ceaa","user":{"login":"TanaTanoi","id":12075655,"avatar_url":"https://avatars.githubusercontent.com/u/12075655?v=3","gravatar_id":"","url":"https://api.github.com/users/TanaTanoi","html_url":"https://github.com/TanaTanoi","followers_url":"https://api.github.com/users/TanaTanoi/followers","following_url":"https://api.github.com/users/TanaTanoi/following{/other_user}","gists_url":"https://api.github.com/users/TanaTanoi/gists{/gist_id}","starred_url":"https://api.github.com/users/TanaTanoi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TanaTanoi/subscriptions","organizations_url":"https://api.github.com/users/TanaTanoi/orgs","repos_url":"https://api.github.com/users/TanaTanoi/repos","events_url":"https://api.github.com/users/TanaTanoi/events{/privacy}","received_events_url":"https://api.github.com/users/TanaTanoi/received_events","type":"User","site_admin":false},"body":"is this worth constantizing `'home'` into `HomeController::HOME`?","created_at":"2016-06-02T02:26:13Z","updated_at":"2016-06-02T02:26:13Z","html_url":"https://github.com/Recursively/shiny-meme/pull/38#discussion_r65475559","pull_request_url":"https://api.github.com/repos/Recursively/shiny-meme/pulls/38","_links":{"self":{"href":"https://api.github.com/repos/Recursively/shiny-meme/pulls/comments/65475559"},"html":{"href":"https://github.com/Recursively/shiny-meme/pull/38#discussion_r65475559"},"pull_request":{"href":"https://api.github.com/repos/Recursively/shiny-meme/pulls/38"}}},"pull_request":{"url":"https://api.github.com/repos/Recursively/shiny-meme/pulls/38","id":72277411,"html_url":"https://github.com/Recursively/shiny-meme/pull/38","diff_url":"https://github.com/Recursively/shiny-meme/pull/38.diff","patch_url":"https://github.com/Recursively/shiny-meme/pull/38.patch","issue_url":"https://api.github.com/repos/Recursively/shiny-meme/issues/38","number":38,"state":"open","locked":false,"title":"Fix auth validation for all site pages","user":{"login":"Recursively","id":7257818,"avatar_url":"https://avatars.githubusercontent.com/u/7257818?v=3","gravatar_id":"","url":"https://api.github.com/users/Recursively","html_url":"https://github.com/Recursively","followers_url":"https://api.github.com/users/Recursively/followers","following_url":"https://api.github.com/users/Recursively/following{/other_user}","gists_url":"https://api.github.com/users/Recursively/gists{/gist_id}","starred_url":"https://api.github.com/users/Recursively/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Recursively/subscriptions","organizations_url":"https://api.github.com/users/Recursively/orgs","repos_url":"https://api.github.com/users/Recursively/repos","events_url":"https://api.github.com/users/Recursively/events{/privacy}","received_events_url":"https://api.github.com/users/Recursively/received_events","type":"User","site_admin":false},"body":"Simple change that requires login for all pages except the home page","created_at":"2016-06-02T01:29:14Z","updated_at":"2016-06-02T02:26:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0904404efd78380e6caaf7c16334b3c60a7a48fe","assignee":{"login":"TanaTanoi","id":12075655,"avatar_url":"https://avatars.githubusercontent.com/u/12075655?v=3","gravatar_id":"","url":"https://api.github.com/users/TanaTanoi","html_url":"https://github.com/TanaTanoi","followers_url":"https://api.github.com/users/TanaTanoi/followers","following_url":"https://api.github.com/users/TanaTanoi/following{/other_user}","gists_url":"https://api.github.com/users/TanaTanoi/gists{/gist_id}","starred_url":"https://api.github.com/users/TanaTanoi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TanaTanoi/subscriptions","organizations_url":"https://api.github.com/users/TanaTanoi/orgs","repos_url":"https://api.github.com/users/TanaTanoi/repos","events_url":"https://api.github.com/users/TanaTanoi/events{/privacy}","received_events_url":"https://api.github.com/users/TanaTanoi/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/Recursively/shiny-meme/pulls/38/commits","review_comments_url":"https://api.github.com/repos/Recursively/shiny-meme/pulls/38/comments","review_comment_url":"https://api.github.com/repos/Recursively/shiny-meme/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Recursively/shiny-meme/issues/38/comments","statuses_url":"https://api.github.com/repos/Recursively/shiny-meme/statuses/5859f0f3965bc3188278ec16492810c14b56ceaa","head":{"label":"Recursively:fix-auth-validation","ref":"fix-auth-validation","sha":"5859f0f3965bc3188278ec16492810c14b56ceaa","user":{"login":"Recursively","id":7257818,"avatar_url":"https://avatars.githubusercontent.com/u/7257818?v=3","gravatar_id":"","url":"https://api.github.com/users/Recursively","html_url":"https://github.com/Recursively","followers_url":"https://api.github.com/users/Recursively/followers","following_url":"https://api.github.com/users/Recursively/following{/other_user}","gists_url":"https://api.github.com/users/Recursively/gists{/gist_id}","starred_url":"https://api.github.com/users/Recursively/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Recursively/subscriptions","organizations_url":"https://api.github.com/users/Recursively/orgs","repos_url":"https://api.github.com/users/Recursively/repos","events_url":"https://api.github.com/users/Recursively/events{/privacy}","received_events_url":"https://api.github.com/users/Recursively/received_events","type":"User","site_admin":false},"repo":{"id":54070092,"name":"shiny-meme","full_name":"Recursively/shiny-meme","owner":{"login":"Recursively","id":7257818,"avatar_url":"https://avatars.githubusercontent.com/u/7257818?v=3","gravatar_id":"","url":"https://api.github.com/users/Recursively","html_url":"https://github.com/Recursively","followers_url":"https://api.github.com/users/Recursively/followers","following_url":"https://api.github.com/users/Recursively/following{/other_user}","gists_url":"https://api.github.com/users/Recursively/gists{/gist_id}","starred_url":"https://api.github.com/users/Recursively/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Recursively/subscriptions","organizations_url":"https://api.github.com/users/Recursively/orgs","repos_url":"https://api.github.com/users/Recursively/repos","events_url":"https://api.github.com/users/Recursively/events{/privacy}","received_events_url":"https://api.github.com/users/Recursively/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Recursively/shiny-meme","description":"","fork":false,"url":"https://api.github.com/repos/Recursively/shiny-meme","forks_url":"https://api.github.com/repos/Recursively/shiny-meme/forks","keys_url":"https://api.github.com/repos/Recursively/shiny-meme/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Recursively/shiny-meme/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Recursively/shiny-meme/teams","hooks_url":"https://api.github.com/repos/Recursively/shiny-meme/hooks","issue_events_url":"https://api.github.com/repos/Recursively/shiny-meme/issues/events{/number}","events_url":"https://api.github.com/repos/Recursively/shiny-meme/events","assignees_url":"https://api.github.com/repos/Recursively/shiny-meme/assignees{/user}","branches_url":"https://api.github.com/repos/Recursively/shiny-meme/branches{/branch}","tags_url":"https://api.github.com/repos/Recursively/shiny-meme/tags","blobs_url":"https://api.github.com/repos/Recursively/shiny-meme/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Recursively/shiny-meme/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Recursively/shiny-meme/git/refs{/sha}","trees_url":"https://api.github.com/repos/Recursively/shiny-meme/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Recursively/shiny-meme/statuses/{sha}","languages_url":"https://api.github.com/repos/Recursively/shiny-meme/languages","stargazers_url":"https://api.github.com/repos/Recursively/shiny-meme/stargazers","contributors_url":"https://api.github.com/repos/Recursively/shiny-meme/contributors","subscribers_url":"https://api.github.com/repos/Recursively/shiny-meme/subscribers","subscription_url":"https://api.github.com/repos/Recursively/shiny-meme/subscription","commits_url":"https://api.github.com/repos/Recursively/shiny-meme/commits{/sha}","git_commits_url":"https://api.github.com/repos/Recursively/shiny-meme/git/commits{/sha}","comments_url":"https://api.github.com/repos/Recursively/shiny-meme/comments{/number}","issue_comment_url":"https://api.github.com/repos/Recursively/shiny-meme/issues/comments{/number}","contents_url":"https://api.github.com/repos/Recursively/shiny-meme/contents/{+path}","compare_url":"https://api.github.com/repos/Recursively/shiny-meme/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Recursively/shiny-meme/merges","archive_url":"https://api.github.com/repos/Recursively/shiny-meme/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Recursively/shiny-meme/downloads","issues_url":"https://api.github.com/repos/Recursively/shiny-meme/issues{/number}","pulls_url":"https://api.github.com/repos/Recursively/shiny-meme/pulls{/number}","milestones_url":"https://api.github.com/repos/Recursively/shiny-meme/milestones{/number}","notifications_url":"https://api.github.com/repos/Recursively/shiny-meme/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Recursively/shiny-meme/labels{/name}","releases_url":"https://api.github.com/repos/Recursively/shiny-meme/releases{/id}","deployments_url":"https://api.github.com/repos/Recursively/shiny-meme/deployments","created_at":"2016-03-16T22:12:24Z","updated_at":"2016-05-05T00:05:46Z","pushed_at":"2016-06-02T01:29:14Z","git_url":"git://github.com/Recursively/shiny-meme.git","ssh_url":"git@github.com:Recursively/shiny-meme.git","clone_url":"https://github.com/Recursively/shiny-meme.git","svn_url":"https://github.com/Recursively/shiny-meme","homepage":null,"size":3081,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":14,"forks":1,"open_issues":14,"watchers":0,"default_branch":"master"}},"base":{"label":"Recursively:master","ref":"master","sha":"394800bfd562581d582ad97400d807770966b1df","user":{"login":"Recursively","id":7257818,"avatar_url":"https://avatars.githubusercontent.com/u/7257818?v=3","gravatar_id":"","url":"https://api.github.com/users/Recursively","html_url":"https://github.com/Recursively","followers_url":"https://api.github.com/users/Recursively/followers","following_url":"https://api.github.com/users/Recursively/following{/other_user}","gists_url":"https://api.github.com/users/Recursively/gists{/gist_id}","starred_url":"https://api.github.com/users/Recursively/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Recursively/subscriptions","organizations_url":"https://api.github.com/users/Recursively/orgs","repos_url":"https://api.github.com/users/Recursively/repos","events_url":"https://api.github.com/users/Recursively/events{/privacy}","received_events_url":"https://api.github.com/users/Recursively/received_events","type":"User","site_admin":false},"repo":{"id":54070092,"name":"shiny-meme","full_name":"Recursively/shiny-meme","owner":{"login":"Recursively","id":7257818,"avatar_url":"https://avatars.githubusercontent.com/u/7257818?v=3","gravatar_id":"","url":"https://api.github.com/users/Recursively","html_url":"https://github.com/Recursively","followers_url":"https://api.github.com/users/Recursively/followers","following_url":"https://api.github.com/users/Recursively/following{/other_user}","gists_url":"https://api.github.com/users/Recursively/gists{/gist_id}","starred_url":"https://api.github.com/users/Recursively/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Recursively/subscriptions","organizations_url":"https://api.github.com/users/Recursively/orgs","repos_url":"https://api.github.com/users/Recursively/repos","events_url":"https://api.github.com/users/Recursively/events{/privacy}","received_events_url":"https://api.github.com/users/Recursively/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Recursively/shiny-meme","description":"","fork":false,"url":"https://api.github.com/repos/Recursively/shiny-meme","forks_url":"https://api.github.com/repos/Recursively/shiny-meme/forks","keys_url":"https://api.github.com/repos/Recursively/shiny-meme/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Recursively/shiny-meme/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Recursively/shiny-meme/teams","hooks_url":"https://api.github.com/repos/Recursively/shiny-meme/hooks","issue_events_url":"https://api.github.com/repos/Recursively/shiny-meme/issues/events{/number}","events_url":"https://api.github.com/repos/Recursively/shiny-meme/events","assignees_url":"https://api.github.com/repos/Recursively/shiny-meme/assignees{/user}","branches_url":"https://api.github.com/repos/Recursively/shiny-meme/branches{/branch}","tags_url":"https://api.github.com/repos/Recursively/shiny-meme/tags","blobs_url":"https://api.github.com/repos/Recursively/shiny-meme/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Recursively/shiny-meme/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Recursively/shiny-meme/git/refs{/sha}","trees_url":"https://api.github.com/repos/Recursively/shiny-meme/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Recursively/shiny-meme/statuses/{sha}","languages_url":"https://api.github.com/repos/Recursively/shiny-meme/languages","stargazers_url":"https://api.github.com/repos/Recursively/shiny-meme/stargazers","contributors_url":"https://api.github.com/repos/Recursively/shiny-meme/contributors","subscribers_url":"https://api.github.com/repos/Recursively/shiny-meme/subscribers","subscription_url":"https://api.github.com/repos/Recursively/shiny-meme/subscription","commits_url":"https://api.github.com/repos/Recursively/shiny-meme/commits{/sha}","git_commits_url":"https://api.github.com/repos/Recursively/shiny-meme/git/commits{/sha}","comments_url":"https://api.github.com/repos/Recursively/shiny-meme/comments{/number}","issue_comment_url":"https://api.github.com/repos/Recursively/shiny-meme/issues/comments{/number}","contents_url":"https://api.github.com/repos/Recursively/shiny-meme/contents/{+path}","compare_url":"https://api.github.com/repos/Recursively/shiny-meme/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Recursively/shiny-meme/merges","archive_url":"https://api.github.com/repos/Recursively/shiny-meme/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Recursively/shiny-meme/downloads","issues_url":"https://api.github.com/repos/Recursively/shiny-meme/issues{/number}","pulls_url":"https://api.github.com/repos/Recursively/shiny-meme/pulls{/number}","milestones_url":"https://api.github.com/repos/Recursively/shiny-meme/milestones{/number}","notifications_url":"https://api.github.com/repos/Recursively/shiny-meme/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Recursively/shiny-meme/labels{/name}","releases_url":"https://api.github.com/repos/Recursively/shiny-meme/releases{/id}","deployments_url":"https://api.github.com/repos/Recursively/shiny-meme/deployments","created_at":"2016-03-16T22:12:24Z","updated_at":"2016-05-05T00:05:46Z","pushed_at":"2016-06-02T01:29:14Z","git_url":"git://github.com/Recursively/shiny-meme.git","ssh_url":"git@github.com:Recursively/shiny-meme.git","clone_url":"https://github.com/Recursively/shiny-meme.git","svn_url":"https://github.com/Recursively/shiny-meme","homepage":null,"size":3081,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":14,"forks":1,"open_issues":14,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Recursively/shiny-meme/pulls/38"},"html":{"href":"https://github.com/Recursively/shiny-meme/pull/38"},"issue":{"href":"https://api.github.com/repos/Recursively/shiny-meme/issues/38"},"comments":{"href":"https://api.github.com/repos/Recursively/shiny-meme/issues/38/comments"},"review_comments":{"href":"https://api.github.com/repos/Recursively/shiny-meme/pulls/38/comments"},"review_comment":{"href":"https://api.github.com/repos/Recursively/shiny-meme/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Recursively/shiny-meme/pulls/38/commits"},"statuses":{"href":"https://api.github.com/repos/Recursively/shiny-meme/statuses/5859f0f3965bc3188278ec16492810c14b56ceaa"}}}}
{"actor":{"display_login":"TanaTanoi"}}