{"action":"created","comment":{"url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/pulls/comments/60473344","id":60473344,"diff_hunk":"@@ -1,5 +1,13 @@\n 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+  helper_method :current_user, :logged_in?\n+\n+  def current_user","path":"thirty-five-mm/app/controllers/application_controller.rb","position":7,"original_position":7,"commit_id":"04bfd3881e1c4b6951f0d25c42933a7d73ca2689","original_commit_id":"04bfd3881e1c4b6951f0d25c42933a7d73ca2689","user":{"login":"stevecass","id":1823156,"avatar_url":"https://avatars.githubusercontent.com/u/1823156?v=3","gravatar_id":"","url":"https://api.github.com/users/stevecass","html_url":"https://github.com/stevecass","followers_url":"https://api.github.com/users/stevecass/followers","following_url":"https://api.github.com/users/stevecass/following{/other_user}","gists_url":"https://api.github.com/users/stevecass/gists{/gist_id}","starred_url":"https://api.github.com/users/stevecass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevecass/subscriptions","organizations_url":"https://api.github.com/users/stevecass/orgs","repos_url":"https://api.github.com/users/stevecass/repos","events_url":"https://api.github.com/users/stevecass/events{/privacy}","received_events_url":"https://api.github.com/users/stevecass/received_events","type":"User","site_admin":false},"body":"Your current_user checks for session[:user] but your login sets session[:user_id]","created_at":"2016-04-20T19:35:27Z","updated_at":"2016-04-20T19:35:27Z","html_url":"https://github.com/nyc-sea-lions-2016/35MM/pull/26#discussion_r60473344","pull_request_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/pulls/26","_links":{"self":{"href":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/pulls/comments/60473344"},"html":{"href":"https://github.com/nyc-sea-lions-2016/35MM/pull/26#discussion_r60473344"},"pull_request":{"href":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/pulls/26"}}},"pull_request":{"url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/pulls/26","id":67229785,"html_url":"https://github.com/nyc-sea-lions-2016/35MM/pull/26","diff_url":"https://github.com/nyc-sea-lions-2016/35MM/pull/26.diff","patch_url":"https://github.com/nyc-sea-lions-2016/35MM/pull/26.patch","issue_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/issues/26","number":26,"state":"open","locked":false,"title":"Don't merge - for review","user":{"login":"stevecass","id":1823156,"avatar_url":"https://avatars.githubusercontent.com/u/1823156?v=3","gravatar_id":"","url":"https://api.github.com/users/stevecass","html_url":"https://github.com/stevecass","followers_url":"https://api.github.com/users/stevecass/followers","following_url":"https://api.github.com/users/stevecass/following{/other_user}","gists_url":"https://api.github.com/users/stevecass/gists{/gist_id}","starred_url":"https://api.github.com/users/stevecass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevecass/subscriptions","organizations_url":"https://api.github.com/users/stevecass/orgs","repos_url":"https://api.github.com/users/stevecass/repos","events_url":"https://api.github.com/users/stevecass/events{/privacy}","received_events_url":"https://api.github.com/users/stevecass/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-20T17:50:44Z","updated_at":"2016-04-20T19:35:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1d02aa9b77e25a78b6d184eb233864046be1b749","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/pulls/26/commits","review_comments_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/pulls/26/comments","review_comment_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/issues/26/comments","statuses_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/statuses/04bfd3881e1c4b6951f0d25c42933a7d73ca2689","head":{"label":"nyc-sea-lions-2016:review","ref":"review","sha":"04bfd3881e1c4b6951f0d25c42933a7d73ca2689","user":{"login":"nyc-sea-lions-2016","id":14019681,"avatar_url":"https://avatars.githubusercontent.com/u/14019681?v=3","gravatar_id":"","url":"https://api.github.com/users/nyc-sea-lions-2016","html_url":"https://github.com/nyc-sea-lions-2016","followers_url":"https://api.github.com/users/nyc-sea-lions-2016/followers","following_url":"https://api.github.com/users/nyc-sea-lions-2016/following{/other_user}","gists_url":"https://api.github.com/users/nyc-sea-lions-2016/gists{/gist_id}","starred_url":"https://api.github.com/users/nyc-sea-lions-2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nyc-sea-lions-2016/subscriptions","organizations_url":"https://api.github.com/users/nyc-sea-lions-2016/orgs","repos_url":"https://api.github.com/users/nyc-sea-lions-2016/repos","events_url":"https://api.github.com/users/nyc-sea-lions-2016/events{/privacy}","received_events_url":"https://api.github.com/users/nyc-sea-lions-2016/received_events","type":"Organization","site_admin":false},"repo":{"id":56528501,"name":"35MM","full_name":"nyc-sea-lions-2016/35MM","owner":{"login":"nyc-sea-lions-2016","id":14019681,"avatar_url":"https://avatars.githubusercontent.com/u/14019681?v=3","gravatar_id":"","url":"https://api.github.com/users/nyc-sea-lions-2016","html_url":"https://github.com/nyc-sea-lions-2016","followers_url":"https://api.github.com/users/nyc-sea-lions-2016/followers","following_url":"https://api.github.com/users/nyc-sea-lions-2016/following{/other_user}","gists_url":"https://api.github.com/users/nyc-sea-lions-2016/gists{/gist_id}","starred_url":"https://api.github.com/users/nyc-sea-lions-2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nyc-sea-lions-2016/subscriptions","organizations_url":"https://api.github.com/users/nyc-sea-lions-2016/orgs","repos_url":"https://api.github.com/users/nyc-sea-lions-2016/repos","events_url":"https://api.github.com/users/nyc-sea-lions-2016/events{/privacy}","received_events_url":"https://api.github.com/users/nyc-sea-lions-2016/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nyc-sea-lions-2016/35MM","description":"","fork":false,"url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM","forks_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/forks","keys_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/teams","hooks_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/hooks","issue_events_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/issues/events{/number}","events_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/events","assignees_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/assignees{/user}","branches_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/branches{/branch}","tags_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/tags","blobs_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/git/refs{/sha}","trees_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/statuses/{sha}","languages_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/languages","stargazers_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/stargazers","contributors_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/contributors","subscribers_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/subscribers","subscription_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/subscription","commits_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/commits{/sha}","git_commits_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/git/commits{/sha}","comments_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/comments{/number}","issue_comment_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/issues/comments{/number}","contents_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/contents/{+path}","compare_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/merges","archive_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/downloads","issues_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/issues{/number}","pulls_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/pulls{/number}","milestones_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/milestones{/number}","notifications_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/labels{/name}","releases_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/releases{/id}","deployments_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/deployments","created_at":"2016-04-18T17:39:23Z","updated_at":"2016-04-18T17:49:04Z","pushed_at":"2016-04-20T19:06:42Z","git_url":"git://github.com/nyc-sea-lions-2016/35MM.git","ssh_url":"git@github.com:nyc-sea-lions-2016/35MM.git","clone_url":"https://github.com/nyc-sea-lions-2016/35MM.git","svn_url":"https://github.com/nyc-sea-lions-2016/35MM","homepage":null,"size":58669,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"nyc-sea-lions-2016:base","ref":"base","sha":"ffe46fb301819067d7040e1e95fb00908b1ff916","user":{"login":"nyc-sea-lions-2016","id":14019681,"avatar_url":"https://avatars.githubusercontent.com/u/14019681?v=3","gravatar_id":"","url":"https://api.github.com/users/nyc-sea-lions-2016","html_url":"https://github.com/nyc-sea-lions-2016","followers_url":"https://api.github.com/users/nyc-sea-lions-2016/followers","following_url":"https://api.github.com/users/nyc-sea-lions-2016/following{/other_user}","gists_url":"https://api.github.com/users/nyc-sea-lions-2016/gists{/gist_id}","starred_url":"https://api.github.com/users/nyc-sea-lions-2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nyc-sea-lions-2016/subscriptions","organizations_url":"https://api.github.com/users/nyc-sea-lions-2016/orgs","repos_url":"https://api.github.com/users/nyc-sea-lions-2016/repos","events_url":"https://api.github.com/users/nyc-sea-lions-2016/events{/privacy}","received_events_url":"https://api.github.com/users/nyc-sea-lions-2016/received_events","type":"Organization","site_admin":false},"repo":{"id":56528501,"name":"35MM","full_name":"nyc-sea-lions-2016/35MM","owner":{"login":"nyc-sea-lions-2016","id":14019681,"avatar_url":"https://avatars.githubusercontent.com/u/14019681?v=3","gravatar_id":"","url":"https://api.github.com/users/nyc-sea-lions-2016","html_url":"https://github.com/nyc-sea-lions-2016","followers_url":"https://api.github.com/users/nyc-sea-lions-2016/followers","following_url":"https://api.github.com/users/nyc-sea-lions-2016/following{/other_user}","gists_url":"https://api.github.com/users/nyc-sea-lions-2016/gists{/gist_id}","starred_url":"https://api.github.com/users/nyc-sea-lions-2016/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nyc-sea-lions-2016/subscriptions","organizations_url":"https://api.github.com/users/nyc-sea-lions-2016/orgs","repos_url":"https://api.github.com/users/nyc-sea-lions-2016/repos","events_url":"https://api.github.com/users/nyc-sea-lions-2016/events{/privacy}","received_events_url":"https://api.github.com/users/nyc-sea-lions-2016/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nyc-sea-lions-2016/35MM","description":"","fork":false,"url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM","forks_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/forks","keys_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/teams","hooks_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/hooks","issue_events_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/issues/events{/number}","events_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/events","assignees_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/assignees{/user}","branches_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/branches{/branch}","tags_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/tags","blobs_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/git/refs{/sha}","trees_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/statuses/{sha}","languages_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/languages","stargazers_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/stargazers","contributors_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/contributors","subscribers_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/subscribers","subscription_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/subscription","commits_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/commits{/sha}","git_commits_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/git/commits{/sha}","comments_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/comments{/number}","issue_comment_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/issues/comments{/number}","contents_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/contents/{+path}","compare_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/merges","archive_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/downloads","issues_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/issues{/number}","pulls_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/pulls{/number}","milestones_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/milestones{/number}","notifications_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/labels{/name}","releases_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/releases{/id}","deployments_url":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/deployments","created_at":"2016-04-18T17:39:23Z","updated_at":"2016-04-18T17:49:04Z","pushed_at":"2016-04-20T19:06:42Z","git_url":"git://github.com/nyc-sea-lions-2016/35MM.git","ssh_url":"git@github.com:nyc-sea-lions-2016/35MM.git","clone_url":"https://github.com/nyc-sea-lions-2016/35MM.git","svn_url":"https://github.com/nyc-sea-lions-2016/35MM","homepage":null,"size":58669,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/pulls/26"},"html":{"href":"https://github.com/nyc-sea-lions-2016/35MM/pull/26"},"issue":{"href":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/issues/26"},"comments":{"href":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/issues/26/comments"},"review_comments":{"href":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/pulls/26/comments"},"review_comment":{"href":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/pulls/26/commits"},"statuses":{"href":"https://api.github.com/repos/nyc-sea-lions-2016/35MM/statuses/04bfd3881e1c4b6951f0d25c42933a7d73ca2689"}}}}