{"action":"created","comment":{"url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/pulls/comments/54047765","id":54047765,"diff_hunk":"@@ -0,0 +1,37 @@\n+module SessionsHelper\n+  def current_user\n+    if (user_id = session[:user_id])\n+      @current_user ||= user_id && User.find_by(id: user_id)","path":"app/helpers/sessions_helper.rb","position":4,"original_position":4,"commit_id":"04d4ade4f85b4ac4b6da34d370fea78f63dc17f0","original_commit_id":"04d4ade4f85b4ac4b6da34d370fea78f63dc17f0","user":{"login":"rmacklin","id":1863540,"avatar_url":"https://avatars.githubusercontent.com/u/1863540?v=3","gravatar_id":"","url":"https://api.github.com/users/rmacklin","html_url":"https://github.com/rmacklin","followers_url":"https://api.github.com/users/rmacklin/followers","following_url":"https://api.github.com/users/rmacklin/following{/other_user}","gists_url":"https://api.github.com/users/rmacklin/gists{/gist_id}","starred_url":"https://api.github.com/users/rmacklin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmacklin/subscriptions","organizations_url":"https://api.github.com/users/rmacklin/orgs","repos_url":"https://api.github.com/users/rmacklin/repos","events_url":"https://api.github.com/users/rmacklin/events{/privacy}","received_events_url":"https://api.github.com/users/rmacklin/received_events","type":"User","site_admin":false},"body":"What does `user_id &&` do here?","created_at":"2016-02-25T04:34:39Z","updated_at":"2016-02-25T04:34:39Z","html_url":"https://github.com/AppFolioOnboarding/Boying_ImageUploader/pull/53#discussion_r54047765","pull_request_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/pulls/53","_links":{"self":{"href":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/pulls/comments/54047765"},"html":{"href":"https://github.com/AppFolioOnboarding/Boying_ImageUploader/pull/53#discussion_r54047765"},"pull_request":{"href":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/pulls/53"}}},"pull_request":{"url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/pulls/53","id":60423070,"html_url":"https://github.com/AppFolioOnboarding/Boying_ImageUploader/pull/53","diff_url":"https://github.com/AppFolioOnboarding/Boying_ImageUploader/pull/53.diff","patch_url":"https://github.com/AppFolioOnboarding/Boying_ImageUploader/pull/53.patch","issue_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/issues/53","number":53,"state":"open","locked":false,"title":"Authentication","user":{"login":"shiboying","id":7544433,"avatar_url":"https://avatars.githubusercontent.com/u/7544433?v=3","gravatar_id":"","url":"https://api.github.com/users/shiboying","html_url":"https://github.com/shiboying","followers_url":"https://api.github.com/users/shiboying/followers","following_url":"https://api.github.com/users/shiboying/following{/other_user}","gists_url":"https://api.github.com/users/shiboying/gists{/gist_id}","starred_url":"https://api.github.com/users/shiboying/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shiboying/subscriptions","organizations_url":"https://api.github.com/users/shiboying/orgs","repos_url":"https://api.github.com/users/shiboying/repos","events_url":"https://api.github.com/users/shiboying/events{/privacy}","received_events_url":"https://api.github.com/users/shiboying/received_events","type":"User","site_admin":false},"body":"closes #48 ","created_at":"2016-02-23T22:40:00Z","updated_at":"2016-02-25T04:34:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"aa8ddbc99b6abdbf973a8d6998c8899cd76efe85","assignee":{"login":"bboe","id":48100,"avatar_url":"https://avatars.githubusercontent.com/u/48100?v=3","gravatar_id":"","url":"https://api.github.com/users/bboe","html_url":"https://github.com/bboe","followers_url":"https://api.github.com/users/bboe/followers","following_url":"https://api.github.com/users/bboe/following{/other_user}","gists_url":"https://api.github.com/users/bboe/gists{/gist_id}","starred_url":"https://api.github.com/users/bboe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bboe/subscriptions","organizations_url":"https://api.github.com/users/bboe/orgs","repos_url":"https://api.github.com/users/bboe/repos","events_url":"https://api.github.com/users/bboe/events{/privacy}","received_events_url":"https://api.github.com/users/bboe/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/pulls/53/commits","review_comments_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/pulls/53/comments","review_comment_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/issues/53/comments","statuses_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/statuses/04d4ade4f85b4ac4b6da34d370fea78f63dc17f0","head":{"label":"AppFolioOnboarding:Authentication","ref":"Authentication","sha":"04d4ade4f85b4ac4b6da34d370fea78f63dc17f0","user":{"login":"AppFolioOnboarding","id":16782391,"avatar_url":"https://avatars.githubusercontent.com/u/16782391?v=3","gravatar_id":"","url":"https://api.github.com/users/AppFolioOnboarding","html_url":"https://github.com/AppFolioOnboarding","followers_url":"https://api.github.com/users/AppFolioOnboarding/followers","following_url":"https://api.github.com/users/AppFolioOnboarding/following{/other_user}","gists_url":"https://api.github.com/users/AppFolioOnboarding/gists{/gist_id}","starred_url":"https://api.github.com/users/AppFolioOnboarding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AppFolioOnboarding/subscriptions","organizations_url":"https://api.github.com/users/AppFolioOnboarding/orgs","repos_url":"https://api.github.com/users/AppFolioOnboarding/repos","events_url":"https://api.github.com/users/AppFolioOnboarding/events{/privacy}","received_events_url":"https://api.github.com/users/AppFolioOnboarding/received_events","type":"Organization","site_admin":false},"repo":{"id":49970184,"name":"Boying_ImageUploader","full_name":"AppFolioOnboarding/Boying_ImageUploader","owner":{"login":"AppFolioOnboarding","id":16782391,"avatar_url":"https://avatars.githubusercontent.com/u/16782391?v=3","gravatar_id":"","url":"https://api.github.com/users/AppFolioOnboarding","html_url":"https://github.com/AppFolioOnboarding","followers_url":"https://api.github.com/users/AppFolioOnboarding/followers","following_url":"https://api.github.com/users/AppFolioOnboarding/following{/other_user}","gists_url":"https://api.github.com/users/AppFolioOnboarding/gists{/gist_id}","starred_url":"https://api.github.com/users/AppFolioOnboarding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AppFolioOnboarding/subscriptions","organizations_url":"https://api.github.com/users/AppFolioOnboarding/orgs","repos_url":"https://api.github.com/users/AppFolioOnboarding/repos","events_url":"https://api.github.com/users/AppFolioOnboarding/events{/privacy}","received_events_url":"https://api.github.com/users/AppFolioOnboarding/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AppFolioOnboarding/Boying_ImageUploader","description":"","fork":false,"url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader","forks_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/forks","keys_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/teams","hooks_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/hooks","issue_events_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/issues/events{/number}","events_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/events","assignees_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/assignees{/user}","branches_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/branches{/branch}","tags_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/tags","blobs_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/git/refs{/sha}","trees_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/statuses/{sha}","languages_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/languages","stargazers_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/stargazers","contributors_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/contributors","subscribers_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/subscribers","subscription_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/subscription","commits_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/commits{/sha}","git_commits_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/git/commits{/sha}","comments_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/comments{/number}","issue_comment_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/issues/comments{/number}","contents_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/contents/{+path}","compare_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/merges","archive_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/downloads","issues_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/issues{/number}","pulls_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/pulls{/number}","milestones_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/milestones{/number}","notifications_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/labels{/name}","releases_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/releases{/id}","deployments_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/deployments","created_at":"2016-01-19T17:32:12Z","updated_at":"2016-01-19T17:34:28Z","pushed_at":"2016-02-25T00:59:37Z","git_url":"git://github.com/AppFolioOnboarding/Boying_ImageUploader.git","ssh_url":"git@github.com:AppFolioOnboarding/Boying_ImageUploader.git","clone_url":"https://github.com/AppFolioOnboarding/Boying_ImageUploader.git","svn_url":"https://github.com/AppFolioOnboarding/Boying_ImageUploader","homepage":null,"size":152,"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":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"AppFolioOnboarding:master","ref":"master","sha":"a2e8f5ad28a703ad354d9f6109ce92a56208490b","user":{"login":"AppFolioOnboarding","id":16782391,"avatar_url":"https://avatars.githubusercontent.com/u/16782391?v=3","gravatar_id":"","url":"https://api.github.com/users/AppFolioOnboarding","html_url":"https://github.com/AppFolioOnboarding","followers_url":"https://api.github.com/users/AppFolioOnboarding/followers","following_url":"https://api.github.com/users/AppFolioOnboarding/following{/other_user}","gists_url":"https://api.github.com/users/AppFolioOnboarding/gists{/gist_id}","starred_url":"https://api.github.com/users/AppFolioOnboarding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AppFolioOnboarding/subscriptions","organizations_url":"https://api.github.com/users/AppFolioOnboarding/orgs","repos_url":"https://api.github.com/users/AppFolioOnboarding/repos","events_url":"https://api.github.com/users/AppFolioOnboarding/events{/privacy}","received_events_url":"https://api.github.com/users/AppFolioOnboarding/received_events","type":"Organization","site_admin":false},"repo":{"id":49970184,"name":"Boying_ImageUploader","full_name":"AppFolioOnboarding/Boying_ImageUploader","owner":{"login":"AppFolioOnboarding","id":16782391,"avatar_url":"https://avatars.githubusercontent.com/u/16782391?v=3","gravatar_id":"","url":"https://api.github.com/users/AppFolioOnboarding","html_url":"https://github.com/AppFolioOnboarding","followers_url":"https://api.github.com/users/AppFolioOnboarding/followers","following_url":"https://api.github.com/users/AppFolioOnboarding/following{/other_user}","gists_url":"https://api.github.com/users/AppFolioOnboarding/gists{/gist_id}","starred_url":"https://api.github.com/users/AppFolioOnboarding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AppFolioOnboarding/subscriptions","organizations_url":"https://api.github.com/users/AppFolioOnboarding/orgs","repos_url":"https://api.github.com/users/AppFolioOnboarding/repos","events_url":"https://api.github.com/users/AppFolioOnboarding/events{/privacy}","received_events_url":"https://api.github.com/users/AppFolioOnboarding/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AppFolioOnboarding/Boying_ImageUploader","description":"","fork":false,"url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader","forks_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/forks","keys_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/teams","hooks_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/hooks","issue_events_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/issues/events{/number}","events_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/events","assignees_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/assignees{/user}","branches_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/branches{/branch}","tags_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/tags","blobs_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/git/refs{/sha}","trees_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/statuses/{sha}","languages_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/languages","stargazers_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/stargazers","contributors_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/contributors","subscribers_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/subscribers","subscription_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/subscription","commits_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/commits{/sha}","git_commits_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/git/commits{/sha}","comments_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/comments{/number}","issue_comment_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/issues/comments{/number}","contents_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/contents/{+path}","compare_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/merges","archive_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/downloads","issues_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/issues{/number}","pulls_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/pulls{/number}","milestones_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/milestones{/number}","notifications_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/labels{/name}","releases_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/releases{/id}","deployments_url":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/deployments","created_at":"2016-01-19T17:32:12Z","updated_at":"2016-01-19T17:34:28Z","pushed_at":"2016-02-25T00:59:37Z","git_url":"git://github.com/AppFolioOnboarding/Boying_ImageUploader.git","ssh_url":"git@github.com:AppFolioOnboarding/Boying_ImageUploader.git","clone_url":"https://github.com/AppFolioOnboarding/Boying_ImageUploader.git","svn_url":"https://github.com/AppFolioOnboarding/Boying_ImageUploader","homepage":null,"size":152,"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":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/pulls/53"},"html":{"href":"https://github.com/AppFolioOnboarding/Boying_ImageUploader/pull/53"},"issue":{"href":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/issues/53"},"comments":{"href":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/issues/53/comments"},"review_comments":{"href":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/pulls/53/comments"},"review_comment":{"href":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/pulls/53/commits"},"statuses":{"href":"https://api.github.com/repos/AppFolioOnboarding/Boying_ImageUploader/statuses/04d4ade4f85b4ac4b6da34d370fea78f63dc17f0"}}}}