{"action":"created","comment":{"url":"https://api.github.com/repos/teamtylerruby/refresh/pulls/comments/45559311","id":45559311,"diff_hunk":"@@ -7,12 +7,12 @@ class User < ActiveRecord::Base\n   has_many :addresses, as: :addressable, dependent: :destroy\n   accepts_nested_attributes_for :addresses, allow_destroy: true\n \n-\tdef self.from_omniauth(auth)\n-\t\twhere(provider: auth.provider, uid: auth.uid).first_or_create do |user|\n-\t\t\tuser.email = auth.info.email\n-\t\t\tuser.password = Devise.friendly_token[0,20]\n-\t\tend\n-\tend\n+  def self.from_omniauth(auth)\n+    where(provider: auth.provider, uid: auth.uid).first_or_create do |user|\n+      user.email = auth.info.email\n+      user.password = Devise.friendly_token[0,20]\n+    end\n+  end","path":"app/models/user.rb","position":15,"original_position":15,"commit_id":"d8d9829d621124776bf3df1aa360b2e31da7b590","original_commit_id":"d8d9829d621124776bf3df1aa360b2e31da7b590","user":{"login":"mrodrigues","id":565635,"avatar_url":"https://avatars.githubusercontent.com/u/565635?v=3","gravatar_id":"","url":"https://api.github.com/users/mrodrigues","html_url":"https://github.com/mrodrigues","followers_url":"https://api.github.com/users/mrodrigues/followers","following_url":"https://api.github.com/users/mrodrigues/following{/other_user}","gists_url":"https://api.github.com/users/mrodrigues/gists{/gist_id}","starred_url":"https://api.github.com/users/mrodrigues/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrodrigues/subscriptions","organizations_url":"https://api.github.com/users/mrodrigues/orgs","repos_url":"https://api.github.com/users/mrodrigues/repos","events_url":"https://api.github.com/users/mrodrigues/events{/privacy}","received_events_url":"https://api.github.com/users/mrodrigues/received_events","type":"User","site_admin":false},"body":":clap: ","created_at":"2015-11-22T14:09:15Z","updated_at":"2015-11-22T14:09:15Z","html_url":"https://github.com/teamtylerruby/refresh/pull/11#discussion_r45559311","pull_request_url":"https://api.github.com/repos/teamtylerruby/refresh/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/teamtylerruby/refresh/pulls/comments/45559311"},"html":{"href":"https://github.com/teamtylerruby/refresh/pull/11#discussion_r45559311"},"pull_request":{"href":"https://api.github.com/repos/teamtylerruby/refresh/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/teamtylerruby/refresh/pulls/11","id":51450411,"html_url":"https://github.com/teamtylerruby/refresh/pull/11","diff_url":"https://github.com/teamtylerruby/refresh/pull/11.diff","patch_url":"https://github.com/teamtylerruby/refresh/pull/11.patch","issue_url":"https://api.github.com/repos/teamtylerruby/refresh/issues/11","number":11,"state":"open","locked":false,"title":"Multiple credit cards","user":{"login":"theo-bittencourt","id":405703,"avatar_url":"https://avatars.githubusercontent.com/u/405703?v=3","gravatar_id":"","url":"https://api.github.com/users/theo-bittencourt","html_url":"https://github.com/theo-bittencourt","followers_url":"https://api.github.com/users/theo-bittencourt/followers","following_url":"https://api.github.com/users/theo-bittencourt/following{/other_user}","gists_url":"https://api.github.com/users/theo-bittencourt/gists{/gist_id}","starred_url":"https://api.github.com/users/theo-bittencourt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theo-bittencourt/subscriptions","organizations_url":"https://api.github.com/users/theo-bittencourt/orgs","repos_url":"https://api.github.com/users/theo-bittencourt/repos","events_url":"https://api.github.com/users/theo-bittencourt/events{/privacy}","received_events_url":"https://api.github.com/users/theo-bittencourt/received_events","type":"User","site_admin":false},"body":null,"created_at":"2015-11-21T21:13:28Z","updated_at":"2015-11-22T14:09:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2a16ab6105167acac2d3c4c651f7fcd5da3ae3f6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/teamtylerruby/refresh/pulls/11/commits","review_comments_url":"https://api.github.com/repos/teamtylerruby/refresh/pulls/11/comments","review_comment_url":"https://api.github.com/repos/teamtylerruby/refresh/pulls/comments{/number}","comments_url":"https://api.github.com/repos/teamtylerruby/refresh/issues/11/comments","statuses_url":"https://api.github.com/repos/teamtylerruby/refresh/statuses/d8d9829d621124776bf3df1aa360b2e31da7b590","head":{"label":"teamtylerruby:customer-can-register-multiple-credit-cards","ref":"customer-can-register-multiple-credit-cards","sha":"d8d9829d621124776bf3df1aa360b2e31da7b590","user":{"login":"teamtylerruby","id":15521705,"avatar_url":"https://avatars.githubusercontent.com/u/15521705?v=3","gravatar_id":"","url":"https://api.github.com/users/teamtylerruby","html_url":"https://github.com/teamtylerruby","followers_url":"https://api.github.com/users/teamtylerruby/followers","following_url":"https://api.github.com/users/teamtylerruby/following{/other_user}","gists_url":"https://api.github.com/users/teamtylerruby/gists{/gist_id}","starred_url":"https://api.github.com/users/teamtylerruby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teamtylerruby/subscriptions","organizations_url":"https://api.github.com/users/teamtylerruby/orgs","repos_url":"https://api.github.com/users/teamtylerruby/repos","events_url":"https://api.github.com/users/teamtylerruby/events{/privacy}","received_events_url":"https://api.github.com/users/teamtylerruby/received_events","type":"Organization","site_admin":false},"repo":{"id":45301347,"name":"refresh","full_name":"teamtylerruby/refresh","owner":{"login":"teamtylerruby","id":15521705,"avatar_url":"https://avatars.githubusercontent.com/u/15521705?v=3","gravatar_id":"","url":"https://api.github.com/users/teamtylerruby","html_url":"https://github.com/teamtylerruby","followers_url":"https://api.github.com/users/teamtylerruby/followers","following_url":"https://api.github.com/users/teamtylerruby/following{/other_user}","gists_url":"https://api.github.com/users/teamtylerruby/gists{/gist_id}","starred_url":"https://api.github.com/users/teamtylerruby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teamtylerruby/subscriptions","organizations_url":"https://api.github.com/users/teamtylerruby/orgs","repos_url":"https://api.github.com/users/teamtylerruby/repos","events_url":"https://api.github.com/users/teamtylerruby/events{/privacy}","received_events_url":"https://api.github.com/users/teamtylerruby/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/teamtylerruby/refresh","description":"A refresh","fork":true,"url":"https://api.github.com/repos/teamtylerruby/refresh","forks_url":"https://api.github.com/repos/teamtylerruby/refresh/forks","keys_url":"https://api.github.com/repos/teamtylerruby/refresh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/teamtylerruby/refresh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/teamtylerruby/refresh/teams","hooks_url":"https://api.github.com/repos/teamtylerruby/refresh/hooks","issue_events_url":"https://api.github.com/repos/teamtylerruby/refresh/issues/events{/number}","events_url":"https://api.github.com/repos/teamtylerruby/refresh/events","assignees_url":"https://api.github.com/repos/teamtylerruby/refresh/assignees{/user}","branches_url":"https://api.github.com/repos/teamtylerruby/refresh/branches{/branch}","tags_url":"https://api.github.com/repos/teamtylerruby/refresh/tags","blobs_url":"https://api.github.com/repos/teamtylerruby/refresh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/teamtylerruby/refresh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/teamtylerruby/refresh/git/refs{/sha}","trees_url":"https://api.github.com/repos/teamtylerruby/refresh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/teamtylerruby/refresh/statuses/{sha}","languages_url":"https://api.github.com/repos/teamtylerruby/refresh/languages","stargazers_url":"https://api.github.com/repos/teamtylerruby/refresh/stargazers","contributors_url":"https://api.github.com/repos/teamtylerruby/refresh/contributors","subscribers_url":"https://api.github.com/repos/teamtylerruby/refresh/subscribers","subscription_url":"https://api.github.com/repos/teamtylerruby/refresh/subscription","commits_url":"https://api.github.com/repos/teamtylerruby/refresh/commits{/sha}","git_commits_url":"https://api.github.com/repos/teamtylerruby/refresh/git/commits{/sha}","comments_url":"https://api.github.com/repos/teamtylerruby/refresh/comments{/number}","issue_comment_url":"https://api.github.com/repos/teamtylerruby/refresh/issues/comments{/number}","contents_url":"https://api.github.com/repos/teamtylerruby/refresh/contents/{+path}","compare_url":"https://api.github.com/repos/teamtylerruby/refresh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/teamtylerruby/refresh/merges","archive_url":"https://api.github.com/repos/teamtylerruby/refresh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/teamtylerruby/refresh/downloads","issues_url":"https://api.github.com/repos/teamtylerruby/refresh/issues{/number}","pulls_url":"https://api.github.com/repos/teamtylerruby/refresh/pulls{/number}","milestones_url":"https://api.github.com/repos/teamtylerruby/refresh/milestones{/number}","notifications_url":"https://api.github.com/repos/teamtylerruby/refresh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/teamtylerruby/refresh/labels{/name}","releases_url":"https://api.github.com/repos/teamtylerruby/refresh/releases{/id}","created_at":"2015-10-31T12:46:07Z","updated_at":"2015-11-08T22:00:06Z","pushed_at":"2015-11-22T03:40:35Z","git_url":"git://github.com/teamtylerruby/refresh.git","ssh_url":"git@github.com:teamtylerruby/refresh.git","clone_url":"https://github.com/teamtylerruby/refresh.git","svn_url":"https://github.com/teamtylerruby/refresh","homepage":null,"size":658,"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":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"teamtylerruby:master","ref":"master","sha":"0a9a1869da7bdc6c280f24b7b3ff677976db9d05","user":{"login":"teamtylerruby","id":15521705,"avatar_url":"https://avatars.githubusercontent.com/u/15521705?v=3","gravatar_id":"","url":"https://api.github.com/users/teamtylerruby","html_url":"https://github.com/teamtylerruby","followers_url":"https://api.github.com/users/teamtylerruby/followers","following_url":"https://api.github.com/users/teamtylerruby/following{/other_user}","gists_url":"https://api.github.com/users/teamtylerruby/gists{/gist_id}","starred_url":"https://api.github.com/users/teamtylerruby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teamtylerruby/subscriptions","organizations_url":"https://api.github.com/users/teamtylerruby/orgs","repos_url":"https://api.github.com/users/teamtylerruby/repos","events_url":"https://api.github.com/users/teamtylerruby/events{/privacy}","received_events_url":"https://api.github.com/users/teamtylerruby/received_events","type":"Organization","site_admin":false},"repo":{"id":45301347,"name":"refresh","full_name":"teamtylerruby/refresh","owner":{"login":"teamtylerruby","id":15521705,"avatar_url":"https://avatars.githubusercontent.com/u/15521705?v=3","gravatar_id":"","url":"https://api.github.com/users/teamtylerruby","html_url":"https://github.com/teamtylerruby","followers_url":"https://api.github.com/users/teamtylerruby/followers","following_url":"https://api.github.com/users/teamtylerruby/following{/other_user}","gists_url":"https://api.github.com/users/teamtylerruby/gists{/gist_id}","starred_url":"https://api.github.com/users/teamtylerruby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teamtylerruby/subscriptions","organizations_url":"https://api.github.com/users/teamtylerruby/orgs","repos_url":"https://api.github.com/users/teamtylerruby/repos","events_url":"https://api.github.com/users/teamtylerruby/events{/privacy}","received_events_url":"https://api.github.com/users/teamtylerruby/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/teamtylerruby/refresh","description":"A refresh","fork":true,"url":"https://api.github.com/repos/teamtylerruby/refresh","forks_url":"https://api.github.com/repos/teamtylerruby/refresh/forks","keys_url":"https://api.github.com/repos/teamtylerruby/refresh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/teamtylerruby/refresh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/teamtylerruby/refresh/teams","hooks_url":"https://api.github.com/repos/teamtylerruby/refresh/hooks","issue_events_url":"https://api.github.com/repos/teamtylerruby/refresh/issues/events{/number}","events_url":"https://api.github.com/repos/teamtylerruby/refresh/events","assignees_url":"https://api.github.com/repos/teamtylerruby/refresh/assignees{/user}","branches_url":"https://api.github.com/repos/teamtylerruby/refresh/branches{/branch}","tags_url":"https://api.github.com/repos/teamtylerruby/refresh/tags","blobs_url":"https://api.github.com/repos/teamtylerruby/refresh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/teamtylerruby/refresh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/teamtylerruby/refresh/git/refs{/sha}","trees_url":"https://api.github.com/repos/teamtylerruby/refresh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/teamtylerruby/refresh/statuses/{sha}","languages_url":"https://api.github.com/repos/teamtylerruby/refresh/languages","stargazers_url":"https://api.github.com/repos/teamtylerruby/refresh/stargazers","contributors_url":"https://api.github.com/repos/teamtylerruby/refresh/contributors","subscribers_url":"https://api.github.com/repos/teamtylerruby/refresh/subscribers","subscription_url":"https://api.github.com/repos/teamtylerruby/refresh/subscription","commits_url":"https://api.github.com/repos/teamtylerruby/refresh/commits{/sha}","git_commits_url":"https://api.github.com/repos/teamtylerruby/refresh/git/commits{/sha}","comments_url":"https://api.github.com/repos/teamtylerruby/refresh/comments{/number}","issue_comment_url":"https://api.github.com/repos/teamtylerruby/refresh/issues/comments{/number}","contents_url":"https://api.github.com/repos/teamtylerruby/refresh/contents/{+path}","compare_url":"https://api.github.com/repos/teamtylerruby/refresh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/teamtylerruby/refresh/merges","archive_url":"https://api.github.com/repos/teamtylerruby/refresh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/teamtylerruby/refresh/downloads","issues_url":"https://api.github.com/repos/teamtylerruby/refresh/issues{/number}","pulls_url":"https://api.github.com/repos/teamtylerruby/refresh/pulls{/number}","milestones_url":"https://api.github.com/repos/teamtylerruby/refresh/milestones{/number}","notifications_url":"https://api.github.com/repos/teamtylerruby/refresh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/teamtylerruby/refresh/labels{/name}","releases_url":"https://api.github.com/repos/teamtylerruby/refresh/releases{/id}","created_at":"2015-10-31T12:46:07Z","updated_at":"2015-11-08T22:00:06Z","pushed_at":"2015-11-22T03:40:35Z","git_url":"git://github.com/teamtylerruby/refresh.git","ssh_url":"git@github.com:teamtylerruby/refresh.git","clone_url":"https://github.com/teamtylerruby/refresh.git","svn_url":"https://github.com/teamtylerruby/refresh","homepage":null,"size":658,"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":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/teamtylerruby/refresh/pulls/11"},"html":{"href":"https://github.com/teamtylerruby/refresh/pull/11"},"issue":{"href":"https://api.github.com/repos/teamtylerruby/refresh/issues/11"},"comments":{"href":"https://api.github.com/repos/teamtylerruby/refresh/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/teamtylerruby/refresh/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/teamtylerruby/refresh/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/teamtylerruby/refresh/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/teamtylerruby/refresh/statuses/d8d9829d621124776bf3df1aa360b2e31da7b590"}}}}