{"action":"created","comment":{"url":"https://api.github.com/repos/esaulkov/flashcards/pulls/comments/36039677","id":36039677,"diff_hunk":"@@ -1,6 +1,20 @@\n class User < ActiveRecord::Base\n+  authenticates_with_sorcery! do |config|\n+    config.authentication_class = Authentication\n+  end\n+\n   has_many :cards, inverse_of: :user, dependent: :destroy\n+  has_many :authentications, dependent: :destroy\n+  accepts_nested_attributes_for :authentications\n \n   validates :email, presence: true, uniqueness: { case_sensitive: false }\n-  validates :password, presence: true, length: { minimum: 6 }\n+  validates :password,\n+            presence: true,\n+            length: { minimum: 6 },\n+            confirmation: true\n+  validates :password_confirmation, presence: true\n+\n+  def has_linked_with(provider)","path":"app/models/user.rb","position":18,"original_position":18,"commit_id":"214569530db7650bea28878a2086731326c322ae","original_commit_id":"214569530db7650bea28878a2086731326c322ae","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Rename `has_linked_with` to `has_linked_with?`.","created_at":"2015-08-02T05:28:25Z","updated_at":"2015-08-02T05:28:25Z","html_url":"https://github.com/esaulkov/flashcards/pull/9#discussion_r36039677","pull_request_url":"https://api.github.com/repos/esaulkov/flashcards/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/esaulkov/flashcards/pulls/comments/36039677"},"html":{"href":"https://github.com/esaulkov/flashcards/pull/9#discussion_r36039677"},"pull_request":{"href":"https://api.github.com/repos/esaulkov/flashcards/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/esaulkov/flashcards/pulls/9","id":41320604,"html_url":"https://github.com/esaulkov/flashcards/pull/9","diff_url":"https://github.com/esaulkov/flashcards/pull/9.diff","patch_url":"https://github.com/esaulkov/flashcards/pull/9.patch","issue_url":"https://api.github.com/repos/esaulkov/flashcards/issues/9","number":9,"state":"open","locked":false,"title":"Ninth task","user":{"login":"esaulkov","id":10377403,"avatar_url":"https://avatars.githubusercontent.com/u/10377403?v=3","gravatar_id":"","url":"https://api.github.com/users/esaulkov","html_url":"https://github.com/esaulkov","followers_url":"https://api.github.com/users/esaulkov/followers","following_url":"https://api.github.com/users/esaulkov/following{/other_user}","gists_url":"https://api.github.com/users/esaulkov/gists{/gist_id}","starred_url":"https://api.github.com/users/esaulkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esaulkov/subscriptions","organizations_url":"https://api.github.com/users/esaulkov/orgs","repos_url":"https://api.github.com/users/esaulkov/repos","events_url":"https://api.github.com/users/esaulkov/events{/privacy}","received_events_url":"https://api.github.com/users/esaulkov/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-31T09:09:13Z","updated_at":"2015-08-02T05:28:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f87bfa0aa84b403c4dea1785ec8a0cf065b4f206","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/esaulkov/flashcards/pulls/9/commits","review_comments_url":"https://api.github.com/repos/esaulkov/flashcards/pulls/9/comments","review_comment_url":"https://api.github.com/repos/esaulkov/flashcards/pulls/comments{/number}","comments_url":"https://api.github.com/repos/esaulkov/flashcards/issues/9/comments","statuses_url":"https://api.github.com/repos/esaulkov/flashcards/statuses/214569530db7650bea28878a2086731326c322ae","head":{"label":"esaulkov:ninth-task","ref":"ninth-task","sha":"214569530db7650bea28878a2086731326c322ae","user":{"login":"esaulkov","id":10377403,"avatar_url":"https://avatars.githubusercontent.com/u/10377403?v=3","gravatar_id":"","url":"https://api.github.com/users/esaulkov","html_url":"https://github.com/esaulkov","followers_url":"https://api.github.com/users/esaulkov/followers","following_url":"https://api.github.com/users/esaulkov/following{/other_user}","gists_url":"https://api.github.com/users/esaulkov/gists{/gist_id}","starred_url":"https://api.github.com/users/esaulkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esaulkov/subscriptions","organizations_url":"https://api.github.com/users/esaulkov/orgs","repos_url":"https://api.github.com/users/esaulkov/repos","events_url":"https://api.github.com/users/esaulkov/events{/privacy}","received_events_url":"https://api.github.com/users/esaulkov/received_events","type":"User","site_admin":false},"repo":{"id":39287813,"name":"flashcards","full_name":"esaulkov/flashcards","owner":{"login":"esaulkov","id":10377403,"avatar_url":"https://avatars.githubusercontent.com/u/10377403?v=3","gravatar_id":"","url":"https://api.github.com/users/esaulkov","html_url":"https://github.com/esaulkov","followers_url":"https://api.github.com/users/esaulkov/followers","following_url":"https://api.github.com/users/esaulkov/following{/other_user}","gists_url":"https://api.github.com/users/esaulkov/gists{/gist_id}","starred_url":"https://api.github.com/users/esaulkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esaulkov/subscriptions","organizations_url":"https://api.github.com/users/esaulkov/orgs","repos_url":"https://api.github.com/users/esaulkov/repos","events_url":"https://api.github.com/users/esaulkov/events{/privacy}","received_events_url":"https://api.github.com/users/esaulkov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/esaulkov/flashcards","description":"Training project (Ruby on Rails)","fork":false,"url":"https://api.github.com/repos/esaulkov/flashcards","forks_url":"https://api.github.com/repos/esaulkov/flashcards/forks","keys_url":"https://api.github.com/repos/esaulkov/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/esaulkov/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/esaulkov/flashcards/teams","hooks_url":"https://api.github.com/repos/esaulkov/flashcards/hooks","issue_events_url":"https://api.github.com/repos/esaulkov/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/esaulkov/flashcards/events","assignees_url":"https://api.github.com/repos/esaulkov/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/esaulkov/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/esaulkov/flashcards/tags","blobs_url":"https://api.github.com/repos/esaulkov/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/esaulkov/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/esaulkov/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/esaulkov/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/esaulkov/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/esaulkov/flashcards/languages","stargazers_url":"https://api.github.com/repos/esaulkov/flashcards/stargazers","contributors_url":"https://api.github.com/repos/esaulkov/flashcards/contributors","subscribers_url":"https://api.github.com/repos/esaulkov/flashcards/subscribers","subscription_url":"https://api.github.com/repos/esaulkov/flashcards/subscription","commits_url":"https://api.github.com/repos/esaulkov/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/esaulkov/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/esaulkov/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/esaulkov/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/esaulkov/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/esaulkov/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/esaulkov/flashcards/merges","archive_url":"https://api.github.com/repos/esaulkov/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/esaulkov/flashcards/downloads","issues_url":"https://api.github.com/repos/esaulkov/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/esaulkov/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/esaulkov/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/esaulkov/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/esaulkov/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/esaulkov/flashcards/releases{/id}","created_at":"2015-07-18T05:28:51Z","updated_at":"2015-08-01T01:25:57Z","pushed_at":"2015-08-02T05:28:19Z","git_url":"git://github.com/esaulkov/flashcards.git","ssh_url":"git@github.com:esaulkov/flashcards.git","clone_url":"https://github.com/esaulkov/flashcards.git","svn_url":"https://github.com/esaulkov/flashcards","homepage":"","size":592,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"esaulkov:master","ref":"master","sha":"87862f5503cfd93d23ed18d4064cd4b0193758d6","user":{"login":"esaulkov","id":10377403,"avatar_url":"https://avatars.githubusercontent.com/u/10377403?v=3","gravatar_id":"","url":"https://api.github.com/users/esaulkov","html_url":"https://github.com/esaulkov","followers_url":"https://api.github.com/users/esaulkov/followers","following_url":"https://api.github.com/users/esaulkov/following{/other_user}","gists_url":"https://api.github.com/users/esaulkov/gists{/gist_id}","starred_url":"https://api.github.com/users/esaulkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esaulkov/subscriptions","organizations_url":"https://api.github.com/users/esaulkov/orgs","repos_url":"https://api.github.com/users/esaulkov/repos","events_url":"https://api.github.com/users/esaulkov/events{/privacy}","received_events_url":"https://api.github.com/users/esaulkov/received_events","type":"User","site_admin":false},"repo":{"id":39287813,"name":"flashcards","full_name":"esaulkov/flashcards","owner":{"login":"esaulkov","id":10377403,"avatar_url":"https://avatars.githubusercontent.com/u/10377403?v=3","gravatar_id":"","url":"https://api.github.com/users/esaulkov","html_url":"https://github.com/esaulkov","followers_url":"https://api.github.com/users/esaulkov/followers","following_url":"https://api.github.com/users/esaulkov/following{/other_user}","gists_url":"https://api.github.com/users/esaulkov/gists{/gist_id}","starred_url":"https://api.github.com/users/esaulkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esaulkov/subscriptions","organizations_url":"https://api.github.com/users/esaulkov/orgs","repos_url":"https://api.github.com/users/esaulkov/repos","events_url":"https://api.github.com/users/esaulkov/events{/privacy}","received_events_url":"https://api.github.com/users/esaulkov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/esaulkov/flashcards","description":"Training project (Ruby on Rails)","fork":false,"url":"https://api.github.com/repos/esaulkov/flashcards","forks_url":"https://api.github.com/repos/esaulkov/flashcards/forks","keys_url":"https://api.github.com/repos/esaulkov/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/esaulkov/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/esaulkov/flashcards/teams","hooks_url":"https://api.github.com/repos/esaulkov/flashcards/hooks","issue_events_url":"https://api.github.com/repos/esaulkov/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/esaulkov/flashcards/events","assignees_url":"https://api.github.com/repos/esaulkov/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/esaulkov/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/esaulkov/flashcards/tags","blobs_url":"https://api.github.com/repos/esaulkov/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/esaulkov/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/esaulkov/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/esaulkov/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/esaulkov/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/esaulkov/flashcards/languages","stargazers_url":"https://api.github.com/repos/esaulkov/flashcards/stargazers","contributors_url":"https://api.github.com/repos/esaulkov/flashcards/contributors","subscribers_url":"https://api.github.com/repos/esaulkov/flashcards/subscribers","subscription_url":"https://api.github.com/repos/esaulkov/flashcards/subscription","commits_url":"https://api.github.com/repos/esaulkov/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/esaulkov/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/esaulkov/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/esaulkov/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/esaulkov/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/esaulkov/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/esaulkov/flashcards/merges","archive_url":"https://api.github.com/repos/esaulkov/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/esaulkov/flashcards/downloads","issues_url":"https://api.github.com/repos/esaulkov/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/esaulkov/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/esaulkov/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/esaulkov/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/esaulkov/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/esaulkov/flashcards/releases{/id}","created_at":"2015-07-18T05:28:51Z","updated_at":"2015-08-01T01:25:57Z","pushed_at":"2015-08-02T05:28:19Z","git_url":"git://github.com/esaulkov/flashcards.git","ssh_url":"git@github.com:esaulkov/flashcards.git","clone_url":"https://github.com/esaulkov/flashcards.git","svn_url":"https://github.com/esaulkov/flashcards","homepage":"","size":592,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/esaulkov/flashcards/pulls/9"},"html":{"href":"https://github.com/esaulkov/flashcards/pull/9"},"issue":{"href":"https://api.github.com/repos/esaulkov/flashcards/issues/9"},"comments":{"href":"https://api.github.com/repos/esaulkov/flashcards/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/esaulkov/flashcards/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/esaulkov/flashcards/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/esaulkov/flashcards/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/esaulkov/flashcards/statuses/214569530db7650bea28878a2086731326c322ae"}}}}