{"action":"created","comment":{"url":"https://api.github.com/repos/VladWithCookies/book_store/pulls/comments/72092288","id":72092288,"diff_hunk":"@@ -0,0 +1,53 @@\n+class ProfilesController < ApplicationController\n+  before_action :set_user\n+\n+  def edit\n+    @address_form = AddressForm.new(Address.new)\n+    @countries = Country.pluck(:name)\n+  end\n+\n+  def update\n+    @user.update(user_params)\n+  end\n+\n+  def update_password\n+    @user.update_with_password(user_params)\n+    sign_in @user, bypass: true\n+    flash[:notice] = \"Password was successfully updated!\"\n+  end","path":"app/controllers/profiles_controller.rb","position":17,"original_position":17,"commit_id":"cd7918adb3a0c6ff4e21fdcc1873b526c8aabb94","original_commit_id":"cd7918adb3a0c6ff4e21fdcc1873b526c8aabb94","user":{"login":"yamnich","id":1251643,"avatar_url":"https://avatars.githubusercontent.com/u/1251643?v=3","gravatar_id":"","url":"https://api.github.com/users/yamnich","html_url":"https://github.com/yamnich","followers_url":"https://api.github.com/users/yamnich/followers","following_url":"https://api.github.com/users/yamnich/following{/other_user}","gists_url":"https://api.github.com/users/yamnich/gists{/gist_id}","starred_url":"https://api.github.com/users/yamnich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yamnich/subscriptions","organizations_url":"https://api.github.com/users/yamnich/orgs","repos_url":"https://api.github.com/users/yamnich/repos","events_url":"https://api.github.com/users/yamnich/events{/privacy}","received_events_url":"https://api.github.com/users/yamnich/received_events","type":"User","site_admin":false},"body":"1. can we use devise controller?","created_at":"2016-07-25T16:02:03Z","updated_at":"2016-07-25T16:02:03Z","html_url":"https://github.com/VladWithCookies/book_store/pull/1#discussion_r72092288","pull_request_url":"https://api.github.com/repos/VladWithCookies/book_store/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/VladWithCookies/book_store/pulls/comments/72092288"},"html":{"href":"https://github.com/VladWithCookies/book_store/pull/1#discussion_r72092288"},"pull_request":{"href":"https://api.github.com/repos/VladWithCookies/book_store/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/VladWithCookies/book_store/pulls/1","id":74372309,"html_url":"https://github.com/VladWithCookies/book_store/pull/1","diff_url":"https://github.com/VladWithCookies/book_store/pull/1.diff","patch_url":"https://github.com/VladWithCookies/book_store/pull/1.patch","issue_url":"https://api.github.com/repos/VladWithCookies/book_store/issues/1","number":1,"state":"open","locked":false,"title":"did some more to start","user":{"login":"VladWithCookies","id":10342577,"avatar_url":"https://avatars.githubusercontent.com/u/10342577?v=3","gravatar_id":"","url":"https://api.github.com/users/VladWithCookies","html_url":"https://github.com/VladWithCookies","followers_url":"https://api.github.com/users/VladWithCookies/followers","following_url":"https://api.github.com/users/VladWithCookies/following{/other_user}","gists_url":"https://api.github.com/users/VladWithCookies/gists{/gist_id}","starred_url":"https://api.github.com/users/VladWithCookies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VladWithCookies/subscriptions","organizations_url":"https://api.github.com/users/VladWithCookies/orgs","repos_url":"https://api.github.com/users/VladWithCookies/repos","events_url":"https://api.github.com/users/VladWithCookies/events{/privacy}","received_events_url":"https://api.github.com/users/VladWithCookies/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-19T19:51:45Z","updated_at":"2016-07-25T16:02:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0cef9fef484398d8f34a6b6918a703caaef2e84b","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/VladWithCookies/book_store/pulls/1/commits","review_comments_url":"https://api.github.com/repos/VladWithCookies/book_store/pulls/1/comments","review_comment_url":"https://api.github.com/repos/VladWithCookies/book_store/pulls/comments{/number}","comments_url":"https://api.github.com/repos/VladWithCookies/book_store/issues/1/comments","statuses_url":"https://api.github.com/repos/VladWithCookies/book_store/statuses/cd7918adb3a0c6ff4e21fdcc1873b526c8aabb94","head":{"label":"VladWithCookies:store","ref":"store","sha":"cd7918adb3a0c6ff4e21fdcc1873b526c8aabb94","user":{"login":"VladWithCookies","id":10342577,"avatar_url":"https://avatars.githubusercontent.com/u/10342577?v=3","gravatar_id":"","url":"https://api.github.com/users/VladWithCookies","html_url":"https://github.com/VladWithCookies","followers_url":"https://api.github.com/users/VladWithCookies/followers","following_url":"https://api.github.com/users/VladWithCookies/following{/other_user}","gists_url":"https://api.github.com/users/VladWithCookies/gists{/gist_id}","starred_url":"https://api.github.com/users/VladWithCookies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VladWithCookies/subscriptions","organizations_url":"https://api.github.com/users/VladWithCookies/orgs","repos_url":"https://api.github.com/users/VladWithCookies/repos","events_url":"https://api.github.com/users/VladWithCookies/events{/privacy}","received_events_url":"https://api.github.com/users/VladWithCookies/received_events","type":"User","site_admin":false},"repo":{"id":61497263,"name":"book_store","full_name":"VladWithCookies/book_store","owner":{"login":"VladWithCookies","id":10342577,"avatar_url":"https://avatars.githubusercontent.com/u/10342577?v=3","gravatar_id":"","url":"https://api.github.com/users/VladWithCookies","html_url":"https://github.com/VladWithCookies","followers_url":"https://api.github.com/users/VladWithCookies/followers","following_url":"https://api.github.com/users/VladWithCookies/following{/other_user}","gists_url":"https://api.github.com/users/VladWithCookies/gists{/gist_id}","starred_url":"https://api.github.com/users/VladWithCookies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VladWithCookies/subscriptions","organizations_url":"https://api.github.com/users/VladWithCookies/orgs","repos_url":"https://api.github.com/users/VladWithCookies/repos","events_url":"https://api.github.com/users/VladWithCookies/events{/privacy}","received_events_url":"https://api.github.com/users/VladWithCookies/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/VladWithCookies/book_store","description":"Bookstore task","fork":false,"url":"https://api.github.com/repos/VladWithCookies/book_store","forks_url":"https://api.github.com/repos/VladWithCookies/book_store/forks","keys_url":"https://api.github.com/repos/VladWithCookies/book_store/keys{/key_id}","collaborators_url":"https://api.github.com/repos/VladWithCookies/book_store/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/VladWithCookies/book_store/teams","hooks_url":"https://api.github.com/repos/VladWithCookies/book_store/hooks","issue_events_url":"https://api.github.com/repos/VladWithCookies/book_store/issues/events{/number}","events_url":"https://api.github.com/repos/VladWithCookies/book_store/events","assignees_url":"https://api.github.com/repos/VladWithCookies/book_store/assignees{/user}","branches_url":"https://api.github.com/repos/VladWithCookies/book_store/branches{/branch}","tags_url":"https://api.github.com/repos/VladWithCookies/book_store/tags","blobs_url":"https://api.github.com/repos/VladWithCookies/book_store/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/VladWithCookies/book_store/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/VladWithCookies/book_store/git/refs{/sha}","trees_url":"https://api.github.com/repos/VladWithCookies/book_store/git/trees{/sha}","statuses_url":"https://api.github.com/repos/VladWithCookies/book_store/statuses/{sha}","languages_url":"https://api.github.com/repos/VladWithCookies/book_store/languages","stargazers_url":"https://api.github.com/repos/VladWithCookies/book_store/stargazers","contributors_url":"https://api.github.com/repos/VladWithCookies/book_store/contributors","subscribers_url":"https://api.github.com/repos/VladWithCookies/book_store/subscribers","subscription_url":"https://api.github.com/repos/VladWithCookies/book_store/subscription","commits_url":"https://api.github.com/repos/VladWithCookies/book_store/commits{/sha}","git_commits_url":"https://api.github.com/repos/VladWithCookies/book_store/git/commits{/sha}","comments_url":"https://api.github.com/repos/VladWithCookies/book_store/comments{/number}","issue_comment_url":"https://api.github.com/repos/VladWithCookies/book_store/issues/comments{/number}","contents_url":"https://api.github.com/repos/VladWithCookies/book_store/contents/{+path}","compare_url":"https://api.github.com/repos/VladWithCookies/book_store/compare/{base}...{head}","merges_url":"https://api.github.com/repos/VladWithCookies/book_store/merges","archive_url":"https://api.github.com/repos/VladWithCookies/book_store/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/VladWithCookies/book_store/downloads","issues_url":"https://api.github.com/repos/VladWithCookies/book_store/issues{/number}","pulls_url":"https://api.github.com/repos/VladWithCookies/book_store/pulls{/number}","milestones_url":"https://api.github.com/repos/VladWithCookies/book_store/milestones{/number}","notifications_url":"https://api.github.com/repos/VladWithCookies/book_store/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/VladWithCookies/book_store/labels{/name}","releases_url":"https://api.github.com/repos/VladWithCookies/book_store/releases{/id}","deployments_url":"https://api.github.com/repos/VladWithCookies/book_store/deployments","created_at":"2016-06-19T19:44:58Z","updated_at":"2016-07-22T10:22:24Z","pushed_at":"2016-07-21T16:18:09Z","git_url":"git://github.com/VladWithCookies/book_store.git","ssh_url":"git@github.com:VladWithCookies/book_store.git","clone_url":"https://github.com/VladWithCookies/book_store.git","svn_url":"https://github.com/VladWithCookies/book_store","homepage":"https://boiling-oasis-16528.herokuapp.com/","size":119,"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":"VladWithCookies:master","ref":"master","sha":"22beff8676a33c151b9212a3823ce705bbae4f9d","user":{"login":"VladWithCookies","id":10342577,"avatar_url":"https://avatars.githubusercontent.com/u/10342577?v=3","gravatar_id":"","url":"https://api.github.com/users/VladWithCookies","html_url":"https://github.com/VladWithCookies","followers_url":"https://api.github.com/users/VladWithCookies/followers","following_url":"https://api.github.com/users/VladWithCookies/following{/other_user}","gists_url":"https://api.github.com/users/VladWithCookies/gists{/gist_id}","starred_url":"https://api.github.com/users/VladWithCookies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VladWithCookies/subscriptions","organizations_url":"https://api.github.com/users/VladWithCookies/orgs","repos_url":"https://api.github.com/users/VladWithCookies/repos","events_url":"https://api.github.com/users/VladWithCookies/events{/privacy}","received_events_url":"https://api.github.com/users/VladWithCookies/received_events","type":"User","site_admin":false},"repo":{"id":61497263,"name":"book_store","full_name":"VladWithCookies/book_store","owner":{"login":"VladWithCookies","id":10342577,"avatar_url":"https://avatars.githubusercontent.com/u/10342577?v=3","gravatar_id":"","url":"https://api.github.com/users/VladWithCookies","html_url":"https://github.com/VladWithCookies","followers_url":"https://api.github.com/users/VladWithCookies/followers","following_url":"https://api.github.com/users/VladWithCookies/following{/other_user}","gists_url":"https://api.github.com/users/VladWithCookies/gists{/gist_id}","starred_url":"https://api.github.com/users/VladWithCookies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VladWithCookies/subscriptions","organizations_url":"https://api.github.com/users/VladWithCookies/orgs","repos_url":"https://api.github.com/users/VladWithCookies/repos","events_url":"https://api.github.com/users/VladWithCookies/events{/privacy}","received_events_url":"https://api.github.com/users/VladWithCookies/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/VladWithCookies/book_store","description":"Bookstore task","fork":false,"url":"https://api.github.com/repos/VladWithCookies/book_store","forks_url":"https://api.github.com/repos/VladWithCookies/book_store/forks","keys_url":"https://api.github.com/repos/VladWithCookies/book_store/keys{/key_id}","collaborators_url":"https://api.github.com/repos/VladWithCookies/book_store/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/VladWithCookies/book_store/teams","hooks_url":"https://api.github.com/repos/VladWithCookies/book_store/hooks","issue_events_url":"https://api.github.com/repos/VladWithCookies/book_store/issues/events{/number}","events_url":"https://api.github.com/repos/VladWithCookies/book_store/events","assignees_url":"https://api.github.com/repos/VladWithCookies/book_store/assignees{/user}","branches_url":"https://api.github.com/repos/VladWithCookies/book_store/branches{/branch}","tags_url":"https://api.github.com/repos/VladWithCookies/book_store/tags","blobs_url":"https://api.github.com/repos/VladWithCookies/book_store/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/VladWithCookies/book_store/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/VladWithCookies/book_store/git/refs{/sha}","trees_url":"https://api.github.com/repos/VladWithCookies/book_store/git/trees{/sha}","statuses_url":"https://api.github.com/repos/VladWithCookies/book_store/statuses/{sha}","languages_url":"https://api.github.com/repos/VladWithCookies/book_store/languages","stargazers_url":"https://api.github.com/repos/VladWithCookies/book_store/stargazers","contributors_url":"https://api.github.com/repos/VladWithCookies/book_store/contributors","subscribers_url":"https://api.github.com/repos/VladWithCookies/book_store/subscribers","subscription_url":"https://api.github.com/repos/VladWithCookies/book_store/subscription","commits_url":"https://api.github.com/repos/VladWithCookies/book_store/commits{/sha}","git_commits_url":"https://api.github.com/repos/VladWithCookies/book_store/git/commits{/sha}","comments_url":"https://api.github.com/repos/VladWithCookies/book_store/comments{/number}","issue_comment_url":"https://api.github.com/repos/VladWithCookies/book_store/issues/comments{/number}","contents_url":"https://api.github.com/repos/VladWithCookies/book_store/contents/{+path}","compare_url":"https://api.github.com/repos/VladWithCookies/book_store/compare/{base}...{head}","merges_url":"https://api.github.com/repos/VladWithCookies/book_store/merges","archive_url":"https://api.github.com/repos/VladWithCookies/book_store/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/VladWithCookies/book_store/downloads","issues_url":"https://api.github.com/repos/VladWithCookies/book_store/issues{/number}","pulls_url":"https://api.github.com/repos/VladWithCookies/book_store/pulls{/number}","milestones_url":"https://api.github.com/repos/VladWithCookies/book_store/milestones{/number}","notifications_url":"https://api.github.com/repos/VladWithCookies/book_store/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/VladWithCookies/book_store/labels{/name}","releases_url":"https://api.github.com/repos/VladWithCookies/book_store/releases{/id}","deployments_url":"https://api.github.com/repos/VladWithCookies/book_store/deployments","created_at":"2016-06-19T19:44:58Z","updated_at":"2016-07-22T10:22:24Z","pushed_at":"2016-07-21T16:18:09Z","git_url":"git://github.com/VladWithCookies/book_store.git","ssh_url":"git@github.com:VladWithCookies/book_store.git","clone_url":"https://github.com/VladWithCookies/book_store.git","svn_url":"https://github.com/VladWithCookies/book_store","homepage":"https://boiling-oasis-16528.herokuapp.com/","size":119,"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/VladWithCookies/book_store/pulls/1"},"html":{"href":"https://github.com/VladWithCookies/book_store/pull/1"},"issue":{"href":"https://api.github.com/repos/VladWithCookies/book_store/issues/1"},"comments":{"href":"https://api.github.com/repos/VladWithCookies/book_store/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/VladWithCookies/book_store/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/VladWithCookies/book_store/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/VladWithCookies/book_store/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/VladWithCookies/book_store/statuses/cd7918adb3a0c6ff4e21fdcc1873b526c8aabb94"}}}}
{"actor":{"display_login":"yamnich"}}