{"action":"created","comment":{"url":"https://api.github.com/repos/OperationCode/operationcode_backend/pulls/comments/155395317","pull_request_review_id":81704704,"id":155395317,"diff_hunk":"@@ -98,6 +98,25 @@ def token\n     JsonWebToken.encode(user_id: self.id, roles: [], email: self.email, verified: verified)\n   end\n \n+  def self.from_social(data)\n+    Rails.logger.info \"************ email is = #{data[:email]}\"\n+    user = User.where(email: data[:email]).first\n+\n+    path = '/profile'","path":"app/models/user.rb","position":8,"original_position":8,"commit_id":"f77417f8f86ea7eaac94d3fdaaadd5bf69ddd920","original_commit_id":"f77417f8f86ea7eaac94d3fdaaadd5bf69ddd920","user":{"login":"hpjaj","id":7482329,"avatar_url":"https://avatars0.githubusercontent.com/u/7482329?v=4","gravatar_id":"","url":"https://api.github.com/users/hpjaj","html_url":"https://github.com/hpjaj","followers_url":"https://api.github.com/users/hpjaj/followers","following_url":"https://api.github.com/users/hpjaj/following{/other_user}","gists_url":"https://api.github.com/users/hpjaj/gists{/gist_id}","starred_url":"https://api.github.com/users/hpjaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hpjaj/subscriptions","organizations_url":"https://api.github.com/users/hpjaj/orgs","repos_url":"https://api.github.com/users/hpjaj/repos","events_url":"https://api.github.com/users/hpjaj/events{/privacy}","received_events_url":"https://api.github.com/users/hpjaj/received_events","type":"User","site_admin":false},"body":"Same here, re: `_path` methods","created_at":"2017-12-06T23:46:32Z","updated_at":"2017-12-06T23:52:15Z","html_url":"https://github.com/OperationCode/operationcode_backend/pull/199#discussion_r155395317","pull_request_url":"https://api.github.com/repos/OperationCode/operationcode_backend/pulls/199","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/OperationCode/operationcode_backend/pulls/comments/155395317"},"html":{"href":"https://github.com/OperationCode/operationcode_backend/pull/199#discussion_r155395317"},"pull_request":{"href":"https://api.github.com/repos/OperationCode/operationcode_backend/pulls/199"}}},"pull_request":{"url":"https://api.github.com/repos/OperationCode/operationcode_backend/pulls/199","id":153737452,"html_url":"https://github.com/OperationCode/operationcode_backend/pull/199","diff_url":"https://github.com/OperationCode/operationcode_backend/pull/199.diff","patch_url":"https://github.com/OperationCode/operationcode_backend/pull/199.patch","issue_url":"https://api.github.com/repos/OperationCode/operationcode_backend/issues/199","number":199,"state":"open","locked":false,"title":"Social Logins Backend","user":{"login":"PixelWitch","id":21322920,"avatar_url":"https://avatars3.githubusercontent.com/u/21322920?v=4","gravatar_id":"","url":"https://api.github.com/users/PixelWitch","html_url":"https://github.com/PixelWitch","followers_url":"https://api.github.com/users/PixelWitch/followers","following_url":"https://api.github.com/users/PixelWitch/following{/other_user}","gists_url":"https://api.github.com/users/PixelWitch/gists{/gist_id}","starred_url":"https://api.github.com/users/PixelWitch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PixelWitch/subscriptions","organizations_url":"https://api.github.com/users/PixelWitch/orgs","repos_url":"https://api.github.com/users/PixelWitch/repos","events_url":"https://api.github.com/users/PixelWitch/events{/privacy}","received_events_url":"https://api.github.com/users/PixelWitch/received_events","type":"User","site_admin":false},"body":"# Description of changes\r\nPreliminary implementation of Social logins, currently undergoing bugfixing and testing\r\n","created_at":"2017-11-20T21:23:02Z","updated_at":"2017-12-06T23:52:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"48e1819da6ab16d6ed0481092ceb6531e3513a31","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/OperationCode/operationcode_backend/pulls/199/commits","review_comments_url":"https://api.github.com/repos/OperationCode/operationcode_backend/pulls/199/comments","review_comment_url":"https://api.github.com/repos/OperationCode/operationcode_backend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OperationCode/operationcode_backend/issues/199/comments","statuses_url":"https://api.github.com/repos/OperationCode/operationcode_backend/statuses/f77417f8f86ea7eaac94d3fdaaadd5bf69ddd920","head":{"label":"PixelWitch:master","ref":"master","sha":"f77417f8f86ea7eaac94d3fdaaadd5bf69ddd920","user":{"login":"PixelWitch","id":21322920,"avatar_url":"https://avatars3.githubusercontent.com/u/21322920?v=4","gravatar_id":"","url":"https://api.github.com/users/PixelWitch","html_url":"https://github.com/PixelWitch","followers_url":"https://api.github.com/users/PixelWitch/followers","following_url":"https://api.github.com/users/PixelWitch/following{/other_user}","gists_url":"https://api.github.com/users/PixelWitch/gists{/gist_id}","starred_url":"https://api.github.com/users/PixelWitch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PixelWitch/subscriptions","organizations_url":"https://api.github.com/users/PixelWitch/orgs","repos_url":"https://api.github.com/users/PixelWitch/repos","events_url":"https://api.github.com/users/PixelWitch/events{/privacy}","received_events_url":"https://api.github.com/users/PixelWitch/received_events","type":"User","site_admin":false},"repo":{"id":111346649,"name":"operationcode_backend","full_name":"PixelWitch/operationcode_backend","owner":{"login":"PixelWitch","id":21322920,"avatar_url":"https://avatars3.githubusercontent.com/u/21322920?v=4","gravatar_id":"","url":"https://api.github.com/users/PixelWitch","html_url":"https://github.com/PixelWitch","followers_url":"https://api.github.com/users/PixelWitch/followers","following_url":"https://api.github.com/users/PixelWitch/following{/other_user}","gists_url":"https://api.github.com/users/PixelWitch/gists{/gist_id}","starred_url":"https://api.github.com/users/PixelWitch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PixelWitch/subscriptions","organizations_url":"https://api.github.com/users/PixelWitch/orgs","repos_url":"https://api.github.com/users/PixelWitch/repos","events_url":"https://api.github.com/users/PixelWitch/events{/privacy}","received_events_url":"https://api.github.com/users/PixelWitch/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/PixelWitch/operationcode_backend","description":"This is the backend repo for the Operation Code website","fork":true,"url":"https://api.github.com/repos/PixelWitch/operationcode_backend","forks_url":"https://api.github.com/repos/PixelWitch/operationcode_backend/forks","keys_url":"https://api.github.com/repos/PixelWitch/operationcode_backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PixelWitch/operationcode_backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PixelWitch/operationcode_backend/teams","hooks_url":"https://api.github.com/repos/PixelWitch/operationcode_backend/hooks","issue_events_url":"https://api.github.com/repos/PixelWitch/operationcode_backend/issues/events{/number}","events_url":"https://api.github.com/repos/PixelWitch/operationcode_backend/events","assignees_url":"https://api.github.com/repos/PixelWitch/operationcode_backend/assignees{/user}","branches_url":"https://api.github.com/repos/PixelWitch/operationcode_backend/branches{/branch}","tags_url":"https://api.github.com/repos/PixelWitch/operationcode_backend/tags","blobs_url":"https://api.github.com/repos/PixelWitch/operationcode_backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PixelWitch/operationcode_backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PixelWitch/operationcode_backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/PixelWitch/operationcode_backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PixelWitch/operationcode_backend/statuses/{sha}","languages_url":"https://api.github.com/repos/PixelWitch/operationcode_backend/languages","stargazers_url":"https://api.github.com/repos/PixelWitch/operationcode_backend/stargazers","contributors_url":"https://api.github.com/repos/PixelWitch/operationcode_backend/contributors","subscribers_url":"https://api.github.com/repos/PixelWitch/operationcode_backend/subscribers","subscription_url":"https://api.github.com/repos/PixelWitch/operationcode_backend/subscription","commits_url":"https://api.github.com/repos/PixelWitch/operationcode_backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/PixelWitch/operationcode_backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/PixelWitch/operationcode_backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/PixelWitch/operationcode_backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/PixelWitch/operationcode_backend/contents/{+path}","compare_url":"https://api.github.com/repos/PixelWitch/operationcode_backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PixelWitch/operationcode_backend/merges","archive_url":"https://api.github.com/repos/PixelWitch/operationcode_backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PixelWitch/operationcode_backend/downloads","issues_url":"https://api.github.com/repos/PixelWitch/operationcode_backend/issues{/number}","pulls_url":"https://api.github.com/repos/PixelWitch/operationcode_backend/pulls{/number}","milestones_url":"https://api.github.com/repos/PixelWitch/operationcode_backend/milestones{/number}","notifications_url":"https://api.github.com/repos/PixelWitch/operationcode_backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PixelWitch/operationcode_backend/labels{/name}","releases_url":"https://api.github.com/repos/PixelWitch/operationcode_backend/releases{/id}","deployments_url":"https://api.github.com/repos/PixelWitch/operationcode_backend/deployments","created_at":"2017-11-20T01:16:44Z","updated_at":"2017-11-20T01:16:46Z","pushed_at":"2017-12-05T01:17:12Z","git_url":"git://github.com/PixelWitch/operationcode_backend.git","ssh_url":"git@github.com:PixelWitch/operationcode_backend.git","clone_url":"https://github.com/PixelWitch/operationcode_backend.git","svn_url":"https://github.com/PixelWitch/operationcode_backend","homepage":"https://operationcode.org","size":751,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"OperationCode:master","ref":"master","sha":"c2c4d145edce30fe778a222470efad956eb9cabd","user":{"login":"OperationCode","id":10479364,"avatar_url":"https://avatars3.githubusercontent.com/u/10479364?v=4","gravatar_id":"","url":"https://api.github.com/users/OperationCode","html_url":"https://github.com/OperationCode","followers_url":"https://api.github.com/users/OperationCode/followers","following_url":"https://api.github.com/users/OperationCode/following{/other_user}","gists_url":"https://api.github.com/users/OperationCode/gists{/gist_id}","starred_url":"https://api.github.com/users/OperationCode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OperationCode/subscriptions","organizations_url":"https://api.github.com/users/OperationCode/orgs","repos_url":"https://api.github.com/users/OperationCode/repos","events_url":"https://api.github.com/users/OperationCode/events{/privacy}","received_events_url":"https://api.github.com/users/OperationCode/received_events","type":"Organization","site_admin":false},"repo":{"id":84136566,"name":"operationcode_backend","full_name":"OperationCode/operationcode_backend","owner":{"login":"OperationCode","id":10479364,"avatar_url":"https://avatars3.githubusercontent.com/u/10479364?v=4","gravatar_id":"","url":"https://api.github.com/users/OperationCode","html_url":"https://github.com/OperationCode","followers_url":"https://api.github.com/users/OperationCode/followers","following_url":"https://api.github.com/users/OperationCode/following{/other_user}","gists_url":"https://api.github.com/users/OperationCode/gists{/gist_id}","starred_url":"https://api.github.com/users/OperationCode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OperationCode/subscriptions","organizations_url":"https://api.github.com/users/OperationCode/orgs","repos_url":"https://api.github.com/users/OperationCode/repos","events_url":"https://api.github.com/users/OperationCode/events{/privacy}","received_events_url":"https://api.github.com/users/OperationCode/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OperationCode/operationcode_backend","description":"This is the backend repo for the Operation Code website","fork":false,"url":"https://api.github.com/repos/OperationCode/operationcode_backend","forks_url":"https://api.github.com/repos/OperationCode/operationcode_backend/forks","keys_url":"https://api.github.com/repos/OperationCode/operationcode_backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OperationCode/operationcode_backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OperationCode/operationcode_backend/teams","hooks_url":"https://api.github.com/repos/OperationCode/operationcode_backend/hooks","issue_events_url":"https://api.github.com/repos/OperationCode/operationcode_backend/issues/events{/number}","events_url":"https://api.github.com/repos/OperationCode/operationcode_backend/events","assignees_url":"https://api.github.com/repos/OperationCode/operationcode_backend/assignees{/user}","branches_url":"https://api.github.com/repos/OperationCode/operationcode_backend/branches{/branch}","tags_url":"https://api.github.com/repos/OperationCode/operationcode_backend/tags","blobs_url":"https://api.github.com/repos/OperationCode/operationcode_backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OperationCode/operationcode_backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OperationCode/operationcode_backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/OperationCode/operationcode_backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OperationCode/operationcode_backend/statuses/{sha}","languages_url":"https://api.github.com/repos/OperationCode/operationcode_backend/languages","stargazers_url":"https://api.github.com/repos/OperationCode/operationcode_backend/stargazers","contributors_url":"https://api.github.com/repos/OperationCode/operationcode_backend/contributors","subscribers_url":"https://api.github.com/repos/OperationCode/operationcode_backend/subscribers","subscription_url":"https://api.github.com/repos/OperationCode/operationcode_backend/subscription","commits_url":"https://api.github.com/repos/OperationCode/operationcode_backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/OperationCode/operationcode_backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/OperationCode/operationcode_backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/OperationCode/operationcode_backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/OperationCode/operationcode_backend/contents/{+path}","compare_url":"https://api.github.com/repos/OperationCode/operationcode_backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OperationCode/operationcode_backend/merges","archive_url":"https://api.github.com/repos/OperationCode/operationcode_backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OperationCode/operationcode_backend/downloads","issues_url":"https://api.github.com/repos/OperationCode/operationcode_backend/issues{/number}","pulls_url":"https://api.github.com/repos/OperationCode/operationcode_backend/pulls{/number}","milestones_url":"https://api.github.com/repos/OperationCode/operationcode_backend/milestones{/number}","notifications_url":"https://api.github.com/repos/OperationCode/operationcode_backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OperationCode/operationcode_backend/labels{/name}","releases_url":"https://api.github.com/repos/OperationCode/operationcode_backend/releases{/id}","deployments_url":"https://api.github.com/repos/OperationCode/operationcode_backend/deployments","created_at":"2017-03-07T00:49:44Z","updated_at":"2017-11-10T22:26:51Z","pushed_at":"2017-12-05T01:17:13Z","git_url":"git://github.com/OperationCode/operationcode_backend.git","ssh_url":"git@github.com:OperationCode/operationcode_backend.git","clone_url":"https://github.com/OperationCode/operationcode_backend.git","svn_url":"https://github.com/OperationCode/operationcode_backend","homepage":"https://operationcode.org","size":757,"stargazers_count":22,"watchers_count":22,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":65,"mirror_url":null,"archived":false,"open_issues_count":12,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":65,"open_issues":12,"watchers":22,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/OperationCode/operationcode_backend/pulls/199"},"html":{"href":"https://github.com/OperationCode/operationcode_backend/pull/199"},"issue":{"href":"https://api.github.com/repos/OperationCode/operationcode_backend/issues/199"},"comments":{"href":"https://api.github.com/repos/OperationCode/operationcode_backend/issues/199/comments"},"review_comments":{"href":"https://api.github.com/repos/OperationCode/operationcode_backend/pulls/199/comments"},"review_comment":{"href":"https://api.github.com/repos/OperationCode/operationcode_backend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OperationCode/operationcode_backend/pulls/199/commits"},"statuses":{"href":"https://api.github.com/repos/OperationCode/operationcode_backend/statuses/f77417f8f86ea7eaac94d3fdaaadd5bf69ddd920"}},"author_association":"NONE"}}
{"actor":{"display_login":"hpjaj"}}