{"action":"created","comment":{"url":"https://api.github.com/repos/danfstucky/LeagueSpec/pulls/comments/73262199","id":73262199,"diff_hunk":"@@ -5,6 +5,11 @@ class ApplicationController < ActionController::Base\n   include SessionsHelper\n \n #Including some general functions here so they can be reached by several controllers\n-\n+\tdef require_user\n+\t  if !logged_in?\n+\t    flash[:danger] = \"You must be logged in to perform that action\"\n+\t    redirect_to root_path\n+\t  end\n+\tend","path":"app/controllers/application_controller.rb","position":null,"original_position":10,"commit_id":"0ab6d0fc60b4a42eb2d34f1ad0788ec265af22e2","original_commit_id":"006241d720bfd9023fe1a710f36f36744c793ec4","user":{"login":"sl7v3","id":11051775,"avatar_url":"https://avatars.githubusercontent.com/u/11051775?v=3","gravatar_id":"","url":"https://api.github.com/users/sl7v3","html_url":"https://github.com/sl7v3","followers_url":"https://api.github.com/users/sl7v3/followers","following_url":"https://api.github.com/users/sl7v3/following{/other_user}","gists_url":"https://api.github.com/users/sl7v3/gists{/gist_id}","starred_url":"https://api.github.com/users/sl7v3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sl7v3/subscriptions","organizations_url":"https://api.github.com/users/sl7v3/orgs","repos_url":"https://api.github.com/users/sl7v3/repos","events_url":"https://api.github.com/users/sl7v3/events{/privacy}","received_events_url":"https://api.github.com/users/sl7v3/received_events","type":"User","site_admin":false},"body":"Fixed here: https://github.com/danfstucky/LeagueSpec/pull/42/commits/0ab6d0fc60b4a42eb2d34f1ad0788ec265af22e2","created_at":"2016-08-03T00:19:31Z","updated_at":"2016-08-03T00:19:31Z","html_url":"https://github.com/danfstucky/LeagueSpec/pull/42#discussion_r73262199","pull_request_url":"https://api.github.com/repos/danfstucky/LeagueSpec/pulls/42","_links":{"self":{"href":"https://api.github.com/repos/danfstucky/LeagueSpec/pulls/comments/73262199"},"html":{"href":"https://github.com/danfstucky/LeagueSpec/pull/42#discussion_r73262199"},"pull_request":{"href":"https://api.github.com/repos/danfstucky/LeagueSpec/pulls/42"}}},"pull_request":{"url":"https://api.github.com/repos/danfstucky/LeagueSpec/pulls/42","id":79494166,"html_url":"https://github.com/danfstucky/LeagueSpec/pull/42","diff_url":"https://github.com/danfstucky/LeagueSpec/pull/42.diff","patch_url":"https://github.com/danfstucky/LeagueSpec/pull/42.patch","issue_url":"https://api.github.com/repos/danfstucky/LeagueSpec/issues/42","number":42,"state":"open","locked":false,"title":"Add friend functionality","user":{"login":"sl7v3","id":11051775,"avatar_url":"https://avatars.githubusercontent.com/u/11051775?v=3","gravatar_id":"","url":"https://api.github.com/users/sl7v3","html_url":"https://github.com/sl7v3","followers_url":"https://api.github.com/users/sl7v3/followers","following_url":"https://api.github.com/users/sl7v3/following{/other_user}","gists_url":"https://api.github.com/users/sl7v3/gists{/gist_id}","starred_url":"https://api.github.com/users/sl7v3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sl7v3/subscriptions","organizations_url":"https://api.github.com/users/sl7v3/orgs","repos_url":"https://api.github.com/users/sl7v3/repos","events_url":"https://api.github.com/users/sl7v3/events{/privacy}","received_events_url":"https://api.github.com/users/sl7v3/received_events","type":"User","site_admin":false},"body":"Functionality has been added to add friends, accept request, view all friends, active friends, pending requests. \r\nA few issues like displaying color icons for online status, scrolling of friends list page has not been implemented and will be moved to another issue.\r\nReview and let me know of any issues that need to be addressed.","created_at":"2016-07-31T19:55:00Z","updated_at":"2016-08-03T00:19:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/danfstucky/LeagueSpec/pulls/42/commits","review_comments_url":"https://api.github.com/repos/danfstucky/LeagueSpec/pulls/42/comments","review_comment_url":"https://api.github.com/repos/danfstucky/LeagueSpec/pulls/comments{/number}","comments_url":"https://api.github.com/repos/danfstucky/LeagueSpec/issues/42/comments","statuses_url":"https://api.github.com/repos/danfstucky/LeagueSpec/statuses/0ab6d0fc60b4a42eb2d34f1ad0788ec265af22e2","head":{"label":"danfstucky:add-friend","ref":"add-friend","sha":"0ab6d0fc60b4a42eb2d34f1ad0788ec265af22e2","user":{"login":"danfstucky","id":13394759,"avatar_url":"https://avatars.githubusercontent.com/u/13394759?v=3","gravatar_id":"","url":"https://api.github.com/users/danfstucky","html_url":"https://github.com/danfstucky","followers_url":"https://api.github.com/users/danfstucky/followers","following_url":"https://api.github.com/users/danfstucky/following{/other_user}","gists_url":"https://api.github.com/users/danfstucky/gists{/gist_id}","starred_url":"https://api.github.com/users/danfstucky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danfstucky/subscriptions","organizations_url":"https://api.github.com/users/danfstucky/orgs","repos_url":"https://api.github.com/users/danfstucky/repos","events_url":"https://api.github.com/users/danfstucky/events{/privacy}","received_events_url":"https://api.github.com/users/danfstucky/received_events","type":"User","site_admin":false},"repo":{"id":48957128,"name":"LeagueSpec","full_name":"danfstucky/LeagueSpec","owner":{"login":"danfstucky","id":13394759,"avatar_url":"https://avatars.githubusercontent.com/u/13394759?v=3","gravatar_id":"","url":"https://api.github.com/users/danfstucky","html_url":"https://github.com/danfstucky","followers_url":"https://api.github.com/users/danfstucky/followers","following_url":"https://api.github.com/users/danfstucky/following{/other_user}","gists_url":"https://api.github.com/users/danfstucky/gists{/gist_id}","starred_url":"https://api.github.com/users/danfstucky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danfstucky/subscriptions","organizations_url":"https://api.github.com/users/danfstucky/orgs","repos_url":"https://api.github.com/users/danfstucky/repos","events_url":"https://api.github.com/users/danfstucky/events{/privacy}","received_events_url":"https://api.github.com/users/danfstucky/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/danfstucky/LeagueSpec","description":"","fork":false,"url":"https://api.github.com/repos/danfstucky/LeagueSpec","forks_url":"https://api.github.com/repos/danfstucky/LeagueSpec/forks","keys_url":"https://api.github.com/repos/danfstucky/LeagueSpec/keys{/key_id}","collaborators_url":"https://api.github.com/repos/danfstucky/LeagueSpec/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/danfstucky/LeagueSpec/teams","hooks_url":"https://api.github.com/repos/danfstucky/LeagueSpec/hooks","issue_events_url":"https://api.github.com/repos/danfstucky/LeagueSpec/issues/events{/number}","events_url":"https://api.github.com/repos/danfstucky/LeagueSpec/events","assignees_url":"https://api.github.com/repos/danfstucky/LeagueSpec/assignees{/user}","branches_url":"https://api.github.com/repos/danfstucky/LeagueSpec/branches{/branch}","tags_url":"https://api.github.com/repos/danfstucky/LeagueSpec/tags","blobs_url":"https://api.github.com/repos/danfstucky/LeagueSpec/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/danfstucky/LeagueSpec/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/danfstucky/LeagueSpec/git/refs{/sha}","trees_url":"https://api.github.com/repos/danfstucky/LeagueSpec/git/trees{/sha}","statuses_url":"https://api.github.com/repos/danfstucky/LeagueSpec/statuses/{sha}","languages_url":"https://api.github.com/repos/danfstucky/LeagueSpec/languages","stargazers_url":"https://api.github.com/repos/danfstucky/LeagueSpec/stargazers","contributors_url":"https://api.github.com/repos/danfstucky/LeagueSpec/contributors","subscribers_url":"https://api.github.com/repos/danfstucky/LeagueSpec/subscribers","subscription_url":"https://api.github.com/repos/danfstucky/LeagueSpec/subscription","commits_url":"https://api.github.com/repos/danfstucky/LeagueSpec/commits{/sha}","git_commits_url":"https://api.github.com/repos/danfstucky/LeagueSpec/git/commits{/sha}","comments_url":"https://api.github.com/repos/danfstucky/LeagueSpec/comments{/number}","issue_comment_url":"https://api.github.com/repos/danfstucky/LeagueSpec/issues/comments{/number}","contents_url":"https://api.github.com/repos/danfstucky/LeagueSpec/contents/{+path}","compare_url":"https://api.github.com/repos/danfstucky/LeagueSpec/compare/{base}...{head}","merges_url":"https://api.github.com/repos/danfstucky/LeagueSpec/merges","archive_url":"https://api.github.com/repos/danfstucky/LeagueSpec/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/danfstucky/LeagueSpec/downloads","issues_url":"https://api.github.com/repos/danfstucky/LeagueSpec/issues{/number}","pulls_url":"https://api.github.com/repos/danfstucky/LeagueSpec/pulls{/number}","milestones_url":"https://api.github.com/repos/danfstucky/LeagueSpec/milestones{/number}","notifications_url":"https://api.github.com/repos/danfstucky/LeagueSpec/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/danfstucky/LeagueSpec/labels{/name}","releases_url":"https://api.github.com/repos/danfstucky/LeagueSpec/releases{/id}","deployments_url":"https://api.github.com/repos/danfstucky/LeagueSpec/deployments","created_at":"2016-01-03T18:58:41Z","updated_at":"2016-08-01T18:22:26Z","pushed_at":"2016-08-03T00:17:39Z","git_url":"git://github.com/danfstucky/LeagueSpec.git","ssh_url":"git@github.com:danfstucky/LeagueSpec.git","clone_url":"https://github.com/danfstucky/LeagueSpec.git","svn_url":"https://github.com/danfstucky/LeagueSpec","homepage":null,"size":10803,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":8,"forks":0,"open_issues":8,"watchers":1,"default_branch":"master"}},"base":{"label":"danfstucky:master","ref":"master","sha":"f1db4c232e86e138e1fec0667d2aa179ae6b1feb","user":{"login":"danfstucky","id":13394759,"avatar_url":"https://avatars.githubusercontent.com/u/13394759?v=3","gravatar_id":"","url":"https://api.github.com/users/danfstucky","html_url":"https://github.com/danfstucky","followers_url":"https://api.github.com/users/danfstucky/followers","following_url":"https://api.github.com/users/danfstucky/following{/other_user}","gists_url":"https://api.github.com/users/danfstucky/gists{/gist_id}","starred_url":"https://api.github.com/users/danfstucky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danfstucky/subscriptions","organizations_url":"https://api.github.com/users/danfstucky/orgs","repos_url":"https://api.github.com/users/danfstucky/repos","events_url":"https://api.github.com/users/danfstucky/events{/privacy}","received_events_url":"https://api.github.com/users/danfstucky/received_events","type":"User","site_admin":false},"repo":{"id":48957128,"name":"LeagueSpec","full_name":"danfstucky/LeagueSpec","owner":{"login":"danfstucky","id":13394759,"avatar_url":"https://avatars.githubusercontent.com/u/13394759?v=3","gravatar_id":"","url":"https://api.github.com/users/danfstucky","html_url":"https://github.com/danfstucky","followers_url":"https://api.github.com/users/danfstucky/followers","following_url":"https://api.github.com/users/danfstucky/following{/other_user}","gists_url":"https://api.github.com/users/danfstucky/gists{/gist_id}","starred_url":"https://api.github.com/users/danfstucky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danfstucky/subscriptions","organizations_url":"https://api.github.com/users/danfstucky/orgs","repos_url":"https://api.github.com/users/danfstucky/repos","events_url":"https://api.github.com/users/danfstucky/events{/privacy}","received_events_url":"https://api.github.com/users/danfstucky/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/danfstucky/LeagueSpec","description":"","fork":false,"url":"https://api.github.com/repos/danfstucky/LeagueSpec","forks_url":"https://api.github.com/repos/danfstucky/LeagueSpec/forks","keys_url":"https://api.github.com/repos/danfstucky/LeagueSpec/keys{/key_id}","collaborators_url":"https://api.github.com/repos/danfstucky/LeagueSpec/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/danfstucky/LeagueSpec/teams","hooks_url":"https://api.github.com/repos/danfstucky/LeagueSpec/hooks","issue_events_url":"https://api.github.com/repos/danfstucky/LeagueSpec/issues/events{/number}","events_url":"https://api.github.com/repos/danfstucky/LeagueSpec/events","assignees_url":"https://api.github.com/repos/danfstucky/LeagueSpec/assignees{/user}","branches_url":"https://api.github.com/repos/danfstucky/LeagueSpec/branches{/branch}","tags_url":"https://api.github.com/repos/danfstucky/LeagueSpec/tags","blobs_url":"https://api.github.com/repos/danfstucky/LeagueSpec/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/danfstucky/LeagueSpec/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/danfstucky/LeagueSpec/git/refs{/sha}","trees_url":"https://api.github.com/repos/danfstucky/LeagueSpec/git/trees{/sha}","statuses_url":"https://api.github.com/repos/danfstucky/LeagueSpec/statuses/{sha}","languages_url":"https://api.github.com/repos/danfstucky/LeagueSpec/languages","stargazers_url":"https://api.github.com/repos/danfstucky/LeagueSpec/stargazers","contributors_url":"https://api.github.com/repos/danfstucky/LeagueSpec/contributors","subscribers_url":"https://api.github.com/repos/danfstucky/LeagueSpec/subscribers","subscription_url":"https://api.github.com/repos/danfstucky/LeagueSpec/subscription","commits_url":"https://api.github.com/repos/danfstucky/LeagueSpec/commits{/sha}","git_commits_url":"https://api.github.com/repos/danfstucky/LeagueSpec/git/commits{/sha}","comments_url":"https://api.github.com/repos/danfstucky/LeagueSpec/comments{/number}","issue_comment_url":"https://api.github.com/repos/danfstucky/LeagueSpec/issues/comments{/number}","contents_url":"https://api.github.com/repos/danfstucky/LeagueSpec/contents/{+path}","compare_url":"https://api.github.com/repos/danfstucky/LeagueSpec/compare/{base}...{head}","merges_url":"https://api.github.com/repos/danfstucky/LeagueSpec/merges","archive_url":"https://api.github.com/repos/danfstucky/LeagueSpec/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/danfstucky/LeagueSpec/downloads","issues_url":"https://api.github.com/repos/danfstucky/LeagueSpec/issues{/number}","pulls_url":"https://api.github.com/repos/danfstucky/LeagueSpec/pulls{/number}","milestones_url":"https://api.github.com/repos/danfstucky/LeagueSpec/milestones{/number}","notifications_url":"https://api.github.com/repos/danfstucky/LeagueSpec/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/danfstucky/LeagueSpec/labels{/name}","releases_url":"https://api.github.com/repos/danfstucky/LeagueSpec/releases{/id}","deployments_url":"https://api.github.com/repos/danfstucky/LeagueSpec/deployments","created_at":"2016-01-03T18:58:41Z","updated_at":"2016-08-01T18:22:26Z","pushed_at":"2016-08-03T00:17:39Z","git_url":"git://github.com/danfstucky/LeagueSpec.git","ssh_url":"git@github.com:danfstucky/LeagueSpec.git","clone_url":"https://github.com/danfstucky/LeagueSpec.git","svn_url":"https://github.com/danfstucky/LeagueSpec","homepage":null,"size":10803,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":8,"forks":0,"open_issues":8,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/danfstucky/LeagueSpec/pulls/42"},"html":{"href":"https://github.com/danfstucky/LeagueSpec/pull/42"},"issue":{"href":"https://api.github.com/repos/danfstucky/LeagueSpec/issues/42"},"comments":{"href":"https://api.github.com/repos/danfstucky/LeagueSpec/issues/42/comments"},"review_comments":{"href":"https://api.github.com/repos/danfstucky/LeagueSpec/pulls/42/comments"},"review_comment":{"href":"https://api.github.com/repos/danfstucky/LeagueSpec/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/danfstucky/LeagueSpec/pulls/42/commits"},"statuses":{"href":"https://api.github.com/repos/danfstucky/LeagueSpec/statuses/0ab6d0fc60b4a42eb2d34f1ad0788ec265af22e2"}}}}
{"actor":{"display_login":"sl7v3"}}