{"action":"created","comment":{"url":"https://api.github.com/repos/groupbuddies/council/pulls/comments/24572833","id":24572833,"diff_hunk":"@@ -12,4 +14,22 @@ class User < ActiveRecord::Base\n   def display_name\n     username.presence || \"#{first_name} #{last_name[0]}\"\n   end\n+\n+  def name=(name)\n+    self.first_name, self.last_name = name.split(' ', 2)\n+  end\n+\n+  def self.from_omniauth(auth_hash)","path":"app/models/user.rb","position":20,"original_position":20,"commit_id":"a6b468269c873e372b4c6f2d404c12b664cb5df1","original_commit_id":"a6b468269c873e372b4c6f2d404c12b664cb5df1","user":{"login":"naps62","id":283819,"avatar_url":"https://avatars.githubusercontent.com/u/283819?v=3","gravatar_id":"","url":"https://api.github.com/users/naps62","html_url":"https://github.com/naps62","followers_url":"https://api.github.com/users/naps62/followers","following_url":"https://api.github.com/users/naps62/following{/other_user}","gists_url":"https://api.github.com/users/naps62/gists{/gist_id}","starred_url":"https://api.github.com/users/naps62/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naps62/subscriptions","organizations_url":"https://api.github.com/users/naps62/orgs","repos_url":"https://api.github.com/users/naps62/repos","events_url":"https://api.github.com/users/naps62/events{/privacy}","received_events_url":"https://api.github.com/users/naps62/received_events","type":"User","site_admin":false},"body":"true. I'll extract it to the OAuth controller. It's only used there anyway","created_at":"2015-02-12T10:54:48Z","updated_at":"2015-02-12T10:54:48Z","html_url":"https://github.com/groupbuddies/council/pull/116#discussion_r24572833","pull_request_url":"https://api.github.com/repos/groupbuddies/council/pulls/116","_links":{"self":{"href":"https://api.github.com/repos/groupbuddies/council/pulls/comments/24572833"},"html":{"href":"https://github.com/groupbuddies/council/pull/116#discussion_r24572833"},"pull_request":{"href":"https://api.github.com/repos/groupbuddies/council/pulls/116"}}},"pull_request":{"url":"https://api.github.com/repos/groupbuddies/council/pulls/116","id":28959138,"html_url":"https://github.com/groupbuddies/council/pull/116","diff_url":"https://github.com/groupbuddies/council/pull/116.diff","patch_url":"https://github.com/groupbuddies/council/pull/116.patch","issue_url":"https://api.github.com/repos/groupbuddies/council/issues/116","number":116,"state":"open","locked":false,"title":"OAuth via hq.groupbuddies.com","user":{"login":"naps62","id":283819,"avatar_url":"https://avatars.githubusercontent.com/u/283819?v=3","gravatar_id":"","url":"https://api.github.com/users/naps62","html_url":"https://github.com/naps62","followers_url":"https://api.github.com/users/naps62/followers","following_url":"https://api.github.com/users/naps62/following{/other_user}","gists_url":"https://api.github.com/users/naps62/gists{/gist_id}","starred_url":"https://api.github.com/users/naps62/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naps62/subscriptions","organizations_url":"https://api.github.com/users/naps62/orgs","repos_url":"https://api.github.com/users/naps62/repos","events_url":"https://api.github.com/users/naps62/events{/privacy}","received_events_url":"https://api.github.com/users/naps62/received_events","type":"User","site_admin":false},"body":"![screenshot from 2015-02-11 18 06 29](https://cloud.githubusercontent.com/assets/283819/6152965/fc38a786-b218-11e4-9174-02fd1d689b8b.png)\r\n\r\n\r\n@johnny1337 how bad does this look?","created_at":"2015-02-09T21:42:21Z","updated_at":"2015-02-12T10:54:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"352013f711874d633a18baf3f9b96d278f55577c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/groupbuddies/council/pulls/116/commits","review_comments_url":"https://api.github.com/repos/groupbuddies/council/pulls/116/comments","review_comment_url":"https://api.github.com/repos/groupbuddies/council/pulls/comments/{number}","comments_url":"https://api.github.com/repos/groupbuddies/council/issues/116/comments","statuses_url":"https://api.github.com/repos/groupbuddies/council/statuses/a6b468269c873e372b4c6f2d404c12b664cb5df1","head":{"label":"groupbuddies:mp-oauth","ref":"mp-oauth","sha":"a6b468269c873e372b4c6f2d404c12b664cb5df1","user":{"login":"groupbuddies","id":1085467,"avatar_url":"https://avatars.githubusercontent.com/u/1085467?v=3","gravatar_id":"","url":"https://api.github.com/users/groupbuddies","html_url":"https://github.com/groupbuddies","followers_url":"https://api.github.com/users/groupbuddies/followers","following_url":"https://api.github.com/users/groupbuddies/following{/other_user}","gists_url":"https://api.github.com/users/groupbuddies/gists{/gist_id}","starred_url":"https://api.github.com/users/groupbuddies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/groupbuddies/subscriptions","organizations_url":"https://api.github.com/users/groupbuddies/orgs","repos_url":"https://api.github.com/users/groupbuddies/repos","events_url":"https://api.github.com/users/groupbuddies/events{/privacy}","received_events_url":"https://api.github.com/users/groupbuddies/received_events","type":"Organization","site_admin":false},"repo":{"id":27681807,"name":"council","full_name":"groupbuddies/council","owner":{"login":"groupbuddies","id":1085467,"avatar_url":"https://avatars.githubusercontent.com/u/1085467?v=3","gravatar_id":"","url":"https://api.github.com/users/groupbuddies","html_url":"https://github.com/groupbuddies","followers_url":"https://api.github.com/users/groupbuddies/followers","following_url":"https://api.github.com/users/groupbuddies/following{/other_user}","gists_url":"https://api.github.com/users/groupbuddies/gists{/gist_id}","starred_url":"https://api.github.com/users/groupbuddies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/groupbuddies/subscriptions","organizations_url":"https://api.github.com/users/groupbuddies/orgs","repos_url":"https://api.github.com/users/groupbuddies/repos","events_url":"https://api.github.com/users/groupbuddies/events{/privacy}","received_events_url":"https://api.github.com/users/groupbuddies/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/groupbuddies/council","description":"","fork":false,"url":"https://api.github.com/repos/groupbuddies/council","forks_url":"https://api.github.com/repos/groupbuddies/council/forks","keys_url":"https://api.github.com/repos/groupbuddies/council/keys{/key_id}","collaborators_url":"https://api.github.com/repos/groupbuddies/council/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/groupbuddies/council/teams","hooks_url":"https://api.github.com/repos/groupbuddies/council/hooks","issue_events_url":"https://api.github.com/repos/groupbuddies/council/issues/events{/number}","events_url":"https://api.github.com/repos/groupbuddies/council/events","assignees_url":"https://api.github.com/repos/groupbuddies/council/assignees{/user}","branches_url":"https://api.github.com/repos/groupbuddies/council/branches{/branch}","tags_url":"https://api.github.com/repos/groupbuddies/council/tags","blobs_url":"https://api.github.com/repos/groupbuddies/council/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/groupbuddies/council/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/groupbuddies/council/git/refs{/sha}","trees_url":"https://api.github.com/repos/groupbuddies/council/git/trees{/sha}","statuses_url":"https://api.github.com/repos/groupbuddies/council/statuses/{sha}","languages_url":"https://api.github.com/repos/groupbuddies/council/languages","stargazers_url":"https://api.github.com/repos/groupbuddies/council/stargazers","contributors_url":"https://api.github.com/repos/groupbuddies/council/contributors","subscribers_url":"https://api.github.com/repos/groupbuddies/council/subscribers","subscription_url":"https://api.github.com/repos/groupbuddies/council/subscription","commits_url":"https://api.github.com/repos/groupbuddies/council/commits{/sha}","git_commits_url":"https://api.github.com/repos/groupbuddies/council/git/commits{/sha}","comments_url":"https://api.github.com/repos/groupbuddies/council/comments{/number}","issue_comment_url":"https://api.github.com/repos/groupbuddies/council/issues/comments/{number}","contents_url":"https://api.github.com/repos/groupbuddies/council/contents/{+path}","compare_url":"https://api.github.com/repos/groupbuddies/council/compare/{base}...{head}","merges_url":"https://api.github.com/repos/groupbuddies/council/merges","archive_url":"https://api.github.com/repos/groupbuddies/council/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/groupbuddies/council/downloads","issues_url":"https://api.github.com/repos/groupbuddies/council/issues{/number}","pulls_url":"https://api.github.com/repos/groupbuddies/council/pulls{/number}","milestones_url":"https://api.github.com/repos/groupbuddies/council/milestones{/number}","notifications_url":"https://api.github.com/repos/groupbuddies/council/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/groupbuddies/council/labels{/name}","releases_url":"https://api.github.com/repos/groupbuddies/council/releases{/id}","created_at":"2014-12-07T19:28:26Z","updated_at":"2015-02-06T15:16:30Z","pushed_at":"2015-02-12T10:21:36Z","git_url":"git://github.com/groupbuddies/council.git","ssh_url":"git@github.com:groupbuddies/council.git","clone_url":"https://github.com/groupbuddies/council.git","svn_url":"https://github.com/groupbuddies/council","homepage":"http://council.groupbuddies.com","size":9363,"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":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"groupbuddies:master","ref":"master","sha":"b3a6512da9c43918d376ea768972d0a8766d83df","user":{"login":"groupbuddies","id":1085467,"avatar_url":"https://avatars.githubusercontent.com/u/1085467?v=3","gravatar_id":"","url":"https://api.github.com/users/groupbuddies","html_url":"https://github.com/groupbuddies","followers_url":"https://api.github.com/users/groupbuddies/followers","following_url":"https://api.github.com/users/groupbuddies/following{/other_user}","gists_url":"https://api.github.com/users/groupbuddies/gists{/gist_id}","starred_url":"https://api.github.com/users/groupbuddies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/groupbuddies/subscriptions","organizations_url":"https://api.github.com/users/groupbuddies/orgs","repos_url":"https://api.github.com/users/groupbuddies/repos","events_url":"https://api.github.com/users/groupbuddies/events{/privacy}","received_events_url":"https://api.github.com/users/groupbuddies/received_events","type":"Organization","site_admin":false},"repo":{"id":27681807,"name":"council","full_name":"groupbuddies/council","owner":{"login":"groupbuddies","id":1085467,"avatar_url":"https://avatars.githubusercontent.com/u/1085467?v=3","gravatar_id":"","url":"https://api.github.com/users/groupbuddies","html_url":"https://github.com/groupbuddies","followers_url":"https://api.github.com/users/groupbuddies/followers","following_url":"https://api.github.com/users/groupbuddies/following{/other_user}","gists_url":"https://api.github.com/users/groupbuddies/gists{/gist_id}","starred_url":"https://api.github.com/users/groupbuddies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/groupbuddies/subscriptions","organizations_url":"https://api.github.com/users/groupbuddies/orgs","repos_url":"https://api.github.com/users/groupbuddies/repos","events_url":"https://api.github.com/users/groupbuddies/events{/privacy}","received_events_url":"https://api.github.com/users/groupbuddies/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/groupbuddies/council","description":"","fork":false,"url":"https://api.github.com/repos/groupbuddies/council","forks_url":"https://api.github.com/repos/groupbuddies/council/forks","keys_url":"https://api.github.com/repos/groupbuddies/council/keys{/key_id}","collaborators_url":"https://api.github.com/repos/groupbuddies/council/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/groupbuddies/council/teams","hooks_url":"https://api.github.com/repos/groupbuddies/council/hooks","issue_events_url":"https://api.github.com/repos/groupbuddies/council/issues/events{/number}","events_url":"https://api.github.com/repos/groupbuddies/council/events","assignees_url":"https://api.github.com/repos/groupbuddies/council/assignees{/user}","branches_url":"https://api.github.com/repos/groupbuddies/council/branches{/branch}","tags_url":"https://api.github.com/repos/groupbuddies/council/tags","blobs_url":"https://api.github.com/repos/groupbuddies/council/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/groupbuddies/council/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/groupbuddies/council/git/refs{/sha}","trees_url":"https://api.github.com/repos/groupbuddies/council/git/trees{/sha}","statuses_url":"https://api.github.com/repos/groupbuddies/council/statuses/{sha}","languages_url":"https://api.github.com/repos/groupbuddies/council/languages","stargazers_url":"https://api.github.com/repos/groupbuddies/council/stargazers","contributors_url":"https://api.github.com/repos/groupbuddies/council/contributors","subscribers_url":"https://api.github.com/repos/groupbuddies/council/subscribers","subscription_url":"https://api.github.com/repos/groupbuddies/council/subscription","commits_url":"https://api.github.com/repos/groupbuddies/council/commits{/sha}","git_commits_url":"https://api.github.com/repos/groupbuddies/council/git/commits{/sha}","comments_url":"https://api.github.com/repos/groupbuddies/council/comments{/number}","issue_comment_url":"https://api.github.com/repos/groupbuddies/council/issues/comments/{number}","contents_url":"https://api.github.com/repos/groupbuddies/council/contents/{+path}","compare_url":"https://api.github.com/repos/groupbuddies/council/compare/{base}...{head}","merges_url":"https://api.github.com/repos/groupbuddies/council/merges","archive_url":"https://api.github.com/repos/groupbuddies/council/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/groupbuddies/council/downloads","issues_url":"https://api.github.com/repos/groupbuddies/council/issues{/number}","pulls_url":"https://api.github.com/repos/groupbuddies/council/pulls{/number}","milestones_url":"https://api.github.com/repos/groupbuddies/council/milestones{/number}","notifications_url":"https://api.github.com/repos/groupbuddies/council/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/groupbuddies/council/labels{/name}","releases_url":"https://api.github.com/repos/groupbuddies/council/releases{/id}","created_at":"2014-12-07T19:28:26Z","updated_at":"2015-02-06T15:16:30Z","pushed_at":"2015-02-12T10:21:36Z","git_url":"git://github.com/groupbuddies/council.git","ssh_url":"git@github.com:groupbuddies/council.git","clone_url":"https://github.com/groupbuddies/council.git","svn_url":"https://github.com/groupbuddies/council","homepage":"http://council.groupbuddies.com","size":9363,"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":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/groupbuddies/council/pulls/116"},"html":{"href":"https://github.com/groupbuddies/council/pull/116"},"issue":{"href":"https://api.github.com/repos/groupbuddies/council/issues/116"},"comments":{"href":"https://api.github.com/repos/groupbuddies/council/issues/116/comments"},"review_comments":{"href":"https://api.github.com/repos/groupbuddies/council/pulls/116/comments"},"review_comment":{"href":"https://api.github.com/repos/groupbuddies/council/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/groupbuddies/council/pulls/116/commits"},"statuses":{"href":"https://api.github.com/repos/groupbuddies/council/statuses/a6b468269c873e372b4c6f2d404c12b664cb5df1"}}}}