{"action":"created","comment":{"url":"https://api.github.com/repos/turingschool-projects/jobs/pulls/comments/23033707","id":23033707,"diff_hunk":"@@ -1,3 +1,35 @@\n class ApplicationController < ActionController::Base\n   protect_from_forgery with: :exception\n+\n+  def logged_in?\n+    !!session[:user_id]\n+  end\n+\n+  def current_user\n+    @current_user ||= Person.find(session[:user_id])\n+  end\n+\n+  def current_person\n+    @current_person ||= find_or_create_person\n+  end\n+\n+  private\n+\n+  def find_or_create_person\n+    Person.find_by(:uid => current_user.uid)","path":"app/controllers/application_controller.rb","position":19,"original_position":19,"commit_id":"1c7b70cf99df0410b8f647958a8fa9f97d60a06a","original_commit_id":"1c7b70cf99df0410b8f647958a8fa9f97d60a06a","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 the new Ruby 1.9 hash syntax.","created_at":"2015-01-15T18:59:18Z","updated_at":"2015-01-15T18:59:18Z","html_url":"https://github.com/turingschool-projects/jobs/pull/13#discussion_r23033707","pull_request_url":"https://api.github.com/repos/turingschool-projects/jobs/pulls/13","_links":{"self":{"href":"https://api.github.com/repos/turingschool-projects/jobs/pulls/comments/23033707"},"html":{"href":"https://github.com/turingschool-projects/jobs/pull/13#discussion_r23033707"},"pull_request":{"href":"https://api.github.com/repos/turingschool-projects/jobs/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/turingschool-projects/jobs/pulls/13","id":27452712,"html_url":"https://github.com/turingschool-projects/jobs/pull/13","diff_url":"https://github.com/turingschool-projects/jobs/pull/13.diff","patch_url":"https://github.com/turingschool-projects/jobs/pull/13.patch","issue_url":"https://api.github.com/repos/turingschool-projects/jobs/issues/13","number":13,"state":"open","locked":false,"title":"Omniauth","user":{"login":"rNavarrete","id":3431580,"avatar_url":"https://avatars.githubusercontent.com/u/3431580?v=3","gravatar_id":"","url":"https://api.github.com/users/rNavarrete","html_url":"https://github.com/rNavarrete","followers_url":"https://api.github.com/users/rNavarrete/followers","following_url":"https://api.github.com/users/rNavarrete/following{/other_user}","gists_url":"https://api.github.com/users/rNavarrete/gists{/gist_id}","starred_url":"https://api.github.com/users/rNavarrete/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rNavarrete/subscriptions","organizations_url":"https://api.github.com/users/rNavarrete/orgs","repos_url":"https://api.github.com/users/rNavarrete/repos","events_url":"https://api.github.com/users/rNavarrete/events{/privacy}","received_events_url":"https://api.github.com/users/rNavarrete/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-01-15T18:59:14Z","updated_at":"2015-01-15T18:59:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9ad5a282976431c970ea9b4483b39bb91053fc31","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/turingschool-projects/jobs/pulls/13/commits","review_comments_url":"https://api.github.com/repos/turingschool-projects/jobs/pulls/13/comments","review_comment_url":"https://api.github.com/repos/turingschool-projects/jobs/pulls/comments/{number}","comments_url":"https://api.github.com/repos/turingschool-projects/jobs/issues/13/comments","statuses_url":"https://api.github.com/repos/turingschool-projects/jobs/statuses/1c7b70cf99df0410b8f647958a8fa9f97d60a06a","head":{"label":"rNavarrete:omniauth","ref":"omniauth","sha":"1c7b70cf99df0410b8f647958a8fa9f97d60a06a","user":{"login":"rNavarrete","id":3431580,"avatar_url":"https://avatars.githubusercontent.com/u/3431580?v=3","gravatar_id":"","url":"https://api.github.com/users/rNavarrete","html_url":"https://github.com/rNavarrete","followers_url":"https://api.github.com/users/rNavarrete/followers","following_url":"https://api.github.com/users/rNavarrete/following{/other_user}","gists_url":"https://api.github.com/users/rNavarrete/gists{/gist_id}","starred_url":"https://api.github.com/users/rNavarrete/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rNavarrete/subscriptions","organizations_url":"https://api.github.com/users/rNavarrete/orgs","repos_url":"https://api.github.com/users/rNavarrete/repos","events_url":"https://api.github.com/users/rNavarrete/events{/privacy}","received_events_url":"https://api.github.com/users/rNavarrete/received_events","type":"User","site_admin":false},"repo":{"id":29252731,"name":"jobs","full_name":"rNavarrete/jobs","owner":{"login":"rNavarrete","id":3431580,"avatar_url":"https://avatars.githubusercontent.com/u/3431580?v=3","gravatar_id":"","url":"https://api.github.com/users/rNavarrete","html_url":"https://github.com/rNavarrete","followers_url":"https://api.github.com/users/rNavarrete/followers","following_url":"https://api.github.com/users/rNavarrete/following{/other_user}","gists_url":"https://api.github.com/users/rNavarrete/gists{/gist_id}","starred_url":"https://api.github.com/users/rNavarrete/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rNavarrete/subscriptions","organizations_url":"https://api.github.com/users/rNavarrete/orgs","repos_url":"https://api.github.com/users/rNavarrete/repos","events_url":"https://api.github.com/users/rNavarrete/events{/privacy}","received_events_url":"https://api.github.com/users/rNavarrete/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rNavarrete/jobs","description":"","fork":true,"url":"https://api.github.com/repos/rNavarrete/jobs","forks_url":"https://api.github.com/repos/rNavarrete/jobs/forks","keys_url":"https://api.github.com/repos/rNavarrete/jobs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rNavarrete/jobs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rNavarrete/jobs/teams","hooks_url":"https://api.github.com/repos/rNavarrete/jobs/hooks","issue_events_url":"https://api.github.com/repos/rNavarrete/jobs/issues/events{/number}","events_url":"https://api.github.com/repos/rNavarrete/jobs/events","assignees_url":"https://api.github.com/repos/rNavarrete/jobs/assignees{/user}","branches_url":"https://api.github.com/repos/rNavarrete/jobs/branches{/branch}","tags_url":"https://api.github.com/repos/rNavarrete/jobs/tags","blobs_url":"https://api.github.com/repos/rNavarrete/jobs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rNavarrete/jobs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rNavarrete/jobs/git/refs{/sha}","trees_url":"https://api.github.com/repos/rNavarrete/jobs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rNavarrete/jobs/statuses/{sha}","languages_url":"https://api.github.com/repos/rNavarrete/jobs/languages","stargazers_url":"https://api.github.com/repos/rNavarrete/jobs/stargazers","contributors_url":"https://api.github.com/repos/rNavarrete/jobs/contributors","subscribers_url":"https://api.github.com/repos/rNavarrete/jobs/subscribers","subscription_url":"https://api.github.com/repos/rNavarrete/jobs/subscription","commits_url":"https://api.github.com/repos/rNavarrete/jobs/commits{/sha}","git_commits_url":"https://api.github.com/repos/rNavarrete/jobs/git/commits{/sha}","comments_url":"https://api.github.com/repos/rNavarrete/jobs/comments{/number}","issue_comment_url":"https://api.github.com/repos/rNavarrete/jobs/issues/comments/{number}","contents_url":"https://api.github.com/repos/rNavarrete/jobs/contents/{+path}","compare_url":"https://api.github.com/repos/rNavarrete/jobs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rNavarrete/jobs/merges","archive_url":"https://api.github.com/repos/rNavarrete/jobs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rNavarrete/jobs/downloads","issues_url":"https://api.github.com/repos/rNavarrete/jobs/issues{/number}","pulls_url":"https://api.github.com/repos/rNavarrete/jobs/pulls{/number}","milestones_url":"https://api.github.com/repos/rNavarrete/jobs/milestones{/number}","notifications_url":"https://api.github.com/repos/rNavarrete/jobs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rNavarrete/jobs/labels{/name}","releases_url":"https://api.github.com/repos/rNavarrete/jobs/releases{/id}","created_at":"2015-01-14T16:10:02Z","updated_at":"2015-01-15T18:27:11Z","pushed_at":"2015-01-15T18:58:35Z","git_url":"git://github.com/rNavarrete/jobs.git","ssh_url":"git@github.com:rNavarrete/jobs.git","clone_url":"https://github.com/rNavarrete/jobs.git","svn_url":"https://github.com/rNavarrete/jobs","homepage":null,"size":120,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"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":"turingschool-projects:master","ref":"master","sha":"0e7df29da268f1c18a89174fa00ca09d3c44a6d2","user":{"login":"turingschool-projects","id":10454571,"avatar_url":"https://avatars.githubusercontent.com/u/10454571?v=3","gravatar_id":"","url":"https://api.github.com/users/turingschool-projects","html_url":"https://github.com/turingschool-projects","followers_url":"https://api.github.com/users/turingschool-projects/followers","following_url":"https://api.github.com/users/turingschool-projects/following{/other_user}","gists_url":"https://api.github.com/users/turingschool-projects/gists{/gist_id}","starred_url":"https://api.github.com/users/turingschool-projects/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/turingschool-projects/subscriptions","organizations_url":"https://api.github.com/users/turingschool-projects/orgs","repos_url":"https://api.github.com/users/turingschool-projects/repos","events_url":"https://api.github.com/users/turingschool-projects/events{/privacy}","received_events_url":"https://api.github.com/users/turingschool-projects/received_events","type":"Organization","site_admin":false},"repo":{"id":28992686,"name":"jobs","full_name":"turingschool-projects/jobs","owner":{"login":"turingschool-projects","id":10454571,"avatar_url":"https://avatars.githubusercontent.com/u/10454571?v=3","gravatar_id":"","url":"https://api.github.com/users/turingschool-projects","html_url":"https://github.com/turingschool-projects","followers_url":"https://api.github.com/users/turingschool-projects/followers","following_url":"https://api.github.com/users/turingschool-projects/following{/other_user}","gists_url":"https://api.github.com/users/turingschool-projects/gists{/gist_id}","starred_url":"https://api.github.com/users/turingschool-projects/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/turingschool-projects/subscriptions","organizations_url":"https://api.github.com/users/turingschool-projects/orgs","repos_url":"https://api.github.com/users/turingschool-projects/repos","events_url":"https://api.github.com/users/turingschool-projects/events{/privacy}","received_events_url":"https://api.github.com/users/turingschool-projects/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/turingschool-projects/jobs","description":"","fork":true,"url":"https://api.github.com/repos/turingschool-projects/jobs","forks_url":"https://api.github.com/repos/turingschool-projects/jobs/forks","keys_url":"https://api.github.com/repos/turingschool-projects/jobs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/turingschool-projects/jobs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/turingschool-projects/jobs/teams","hooks_url":"https://api.github.com/repos/turingschool-projects/jobs/hooks","issue_events_url":"https://api.github.com/repos/turingschool-projects/jobs/issues/events{/number}","events_url":"https://api.github.com/repos/turingschool-projects/jobs/events","assignees_url":"https://api.github.com/repos/turingschool-projects/jobs/assignees{/user}","branches_url":"https://api.github.com/repos/turingschool-projects/jobs/branches{/branch}","tags_url":"https://api.github.com/repos/turingschool-projects/jobs/tags","blobs_url":"https://api.github.com/repos/turingschool-projects/jobs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/turingschool-projects/jobs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/turingschool-projects/jobs/git/refs{/sha}","trees_url":"https://api.github.com/repos/turingschool-projects/jobs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/turingschool-projects/jobs/statuses/{sha}","languages_url":"https://api.github.com/repos/turingschool-projects/jobs/languages","stargazers_url":"https://api.github.com/repos/turingschool-projects/jobs/stargazers","contributors_url":"https://api.github.com/repos/turingschool-projects/jobs/contributors","subscribers_url":"https://api.github.com/repos/turingschool-projects/jobs/subscribers","subscription_url":"https://api.github.com/repos/turingschool-projects/jobs/subscription","commits_url":"https://api.github.com/repos/turingschool-projects/jobs/commits{/sha}","git_commits_url":"https://api.github.com/repos/turingschool-projects/jobs/git/commits{/sha}","comments_url":"https://api.github.com/repos/turingschool-projects/jobs/comments{/number}","issue_comment_url":"https://api.github.com/repos/turingschool-projects/jobs/issues/comments/{number}","contents_url":"https://api.github.com/repos/turingschool-projects/jobs/contents/{+path}","compare_url":"https://api.github.com/repos/turingschool-projects/jobs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/turingschool-projects/jobs/merges","archive_url":"https://api.github.com/repos/turingschool-projects/jobs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/turingschool-projects/jobs/downloads","issues_url":"https://api.github.com/repos/turingschool-projects/jobs/issues{/number}","pulls_url":"https://api.github.com/repos/turingschool-projects/jobs/pulls{/number}","milestones_url":"https://api.github.com/repos/turingschool-projects/jobs/milestones{/number}","notifications_url":"https://api.github.com/repos/turingschool-projects/jobs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/turingschool-projects/jobs/labels{/name}","releases_url":"https://api.github.com/repos/turingschool-projects/jobs/releases{/id}","created_at":"2015-01-09T00:12:55Z","updated_at":"2015-01-15T17:26:58Z","pushed_at":"2015-01-15T17:26:58Z","git_url":"git://github.com/turingschool-projects/jobs.git","ssh_url":"git@github.com:turingschool-projects/jobs.git","clone_url":"https://github.com/turingschool-projects/jobs.git","svn_url":"https://github.com/turingschool-projects/jobs","homepage":null,"size":120,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":10,"forks":3,"open_issues":10,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/turingschool-projects/jobs/pulls/13"},"html":{"href":"https://github.com/turingschool-projects/jobs/pull/13"},"issue":{"href":"https://api.github.com/repos/turingschool-projects/jobs/issues/13"},"comments":{"href":"https://api.github.com/repos/turingschool-projects/jobs/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/turingschool-projects/jobs/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/turingschool-projects/jobs/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/turingschool-projects/jobs/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/turingschool-projects/jobs/statuses/1c7b70cf99df0410b8f647958a8fa9f97d60a06a"}}}}