{"action":"created","comment":{"url":"https://api.github.com/repos/Kennnedu/flashcards/pulls/comments/85673646","pull_request_review_id":6375548,"id":85673646,"diff_hunk":"@@ -0,0 +1,45 @@\n+# app/controllers/users_controller.rb\n+class UsersController < ApplicationController\n+  layout 'unauthorized', only: 'new'\n+  before_action :authorize, only: [:new, :create]\n+  before_action :require_login, only: [:edit, :update]\n+\n+  def new\n+    @user = User.new\n+  end\n+\n+  def edit\n+  end\n+\n+  def create\n+    @user = User.new(params_new_user)\n+    if @user.save\n+      login_with_new_params\n+      redirect_to root_path\n+    else\n+      redirect_to new_users_path, notice: @user.errors.full_messages.join(' ')\n+    end\n+  end\n+\n+  def update\n+    if current_user.update(params_edit_user)","path":"app/controllers/users_controller.rb","position":25,"original_position":25,"commit_id":"64fe527d1f91c7430992b52cfc4b4c8fba477f53","original_commit_id":"64fe527d1f91c7430992b52cfc4b4c8fba477f53","user":{"login":"IvanShamatov","id":160239,"avatar_url":"https://avatars.githubusercontent.com/u/160239?v=3","gravatar_id":"","url":"https://api.github.com/users/IvanShamatov","html_url":"https://github.com/IvanShamatov","followers_url":"https://api.github.com/users/IvanShamatov/followers","following_url":"https://api.github.com/users/IvanShamatov/following{/other_user}","gists_url":"https://api.github.com/users/IvanShamatov/gists{/gist_id}","starred_url":"https://api.github.com/users/IvanShamatov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IvanShamatov/subscriptions","organizations_url":"https://api.github.com/users/IvanShamatov/orgs","repos_url":"https://api.github.com/users/IvanShamatov/repos","events_url":"https://api.github.com/users/IvanShamatov/events{/privacy}","received_events_url":"https://api.github.com/users/IvanShamatov/received_events","type":"User","site_admin":false},"body":"👍  красаучег за то, что обезопасил пользователей","created_at":"2016-10-31T00:06:36Z","updated_at":"2016-10-31T00:08:30Z","html_url":"https://github.com/Kennnedu/flashcards/pull/9#discussion_r85673646","pull_request_url":"https://api.github.com/repos/Kennnedu/flashcards/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/Kennnedu/flashcards/pulls/comments/85673646"},"html":{"href":"https://github.com/Kennnedu/flashcards/pull/9#discussion_r85673646"},"pull_request":{"href":"https://api.github.com/repos/Kennnedu/flashcards/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/Kennnedu/flashcards/pulls/9","id":91530205,"html_url":"https://github.com/Kennnedu/flashcards/pull/9","diff_url":"https://github.com/Kennnedu/flashcards/pull/9.diff","patch_url":"https://github.com/Kennnedu/flashcards/pull/9.patch","issue_url":"https://api.github.com/repos/Kennnedu/flashcards/issues/9","number":9,"state":"open","locked":false,"title":"add sign up sign in and edit profile","user":{"login":"Kennnedu","id":15114167,"avatar_url":"https://avatars.githubusercontent.com/u/15114167?v=3","gravatar_id":"","url":"https://api.github.com/users/Kennnedu","html_url":"https://github.com/Kennnedu","followers_url":"https://api.github.com/users/Kennnedu/followers","following_url":"https://api.github.com/users/Kennnedu/following{/other_user}","gists_url":"https://api.github.com/users/Kennnedu/gists{/gist_id}","starred_url":"https://api.github.com/users/Kennnedu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kennnedu/subscriptions","organizations_url":"https://api.github.com/users/Kennnedu/orgs","repos_url":"https://api.github.com/users/Kennnedu/repos","events_url":"https://api.github.com/users/Kennnedu/events{/privacy}","received_events_url":"https://api.github.com/users/Kennnedu/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-30T18:09:44Z","updated_at":"2016-10-31T00:08:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1c743c679d11fe84eb7f8c29ebdd40616faf09d6","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Kennnedu/flashcards/pulls/9/commits","review_comments_url":"https://api.github.com/repos/Kennnedu/flashcards/pulls/9/comments","review_comment_url":"https://api.github.com/repos/Kennnedu/flashcards/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Kennnedu/flashcards/issues/9/comments","statuses_url":"https://api.github.com/repos/Kennnedu/flashcards/statuses/64fe527d1f91c7430992b52cfc4b4c8fba477f53","head":{"label":"Kennnedu:ninth-task","ref":"ninth-task","sha":"64fe527d1f91c7430992b52cfc4b4c8fba477f53","user":{"login":"Kennnedu","id":15114167,"avatar_url":"https://avatars.githubusercontent.com/u/15114167?v=3","gravatar_id":"","url":"https://api.github.com/users/Kennnedu","html_url":"https://github.com/Kennnedu","followers_url":"https://api.github.com/users/Kennnedu/followers","following_url":"https://api.github.com/users/Kennnedu/following{/other_user}","gists_url":"https://api.github.com/users/Kennnedu/gists{/gist_id}","starred_url":"https://api.github.com/users/Kennnedu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kennnedu/subscriptions","organizations_url":"https://api.github.com/users/Kennnedu/orgs","repos_url":"https://api.github.com/users/Kennnedu/repos","events_url":"https://api.github.com/users/Kennnedu/events{/privacy}","received_events_url":"https://api.github.com/users/Kennnedu/received_events","type":"User","site_admin":false},"repo":{"id":71234324,"name":"flashcards","full_name":"Kennnedu/flashcards","owner":{"login":"Kennnedu","id":15114167,"avatar_url":"https://avatars.githubusercontent.com/u/15114167?v=3","gravatar_id":"","url":"https://api.github.com/users/Kennnedu","html_url":"https://github.com/Kennnedu","followers_url":"https://api.github.com/users/Kennnedu/followers","following_url":"https://api.github.com/users/Kennnedu/following{/other_user}","gists_url":"https://api.github.com/users/Kennnedu/gists{/gist_id}","starred_url":"https://api.github.com/users/Kennnedu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kennnedu/subscriptions","organizations_url":"https://api.github.com/users/Kennnedu/orgs","repos_url":"https://api.github.com/users/Kennnedu/repos","events_url":"https://api.github.com/users/Kennnedu/events{/privacy}","received_events_url":"https://api.github.com/users/Kennnedu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Kennnedu/flashcards","description":null,"fork":false,"url":"https://api.github.com/repos/Kennnedu/flashcards","forks_url":"https://api.github.com/repos/Kennnedu/flashcards/forks","keys_url":"https://api.github.com/repos/Kennnedu/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Kennnedu/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Kennnedu/flashcards/teams","hooks_url":"https://api.github.com/repos/Kennnedu/flashcards/hooks","issue_events_url":"https://api.github.com/repos/Kennnedu/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/Kennnedu/flashcards/events","assignees_url":"https://api.github.com/repos/Kennnedu/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/Kennnedu/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/Kennnedu/flashcards/tags","blobs_url":"https://api.github.com/repos/Kennnedu/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Kennnedu/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Kennnedu/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/Kennnedu/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Kennnedu/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/Kennnedu/flashcards/languages","stargazers_url":"https://api.github.com/repos/Kennnedu/flashcards/stargazers","contributors_url":"https://api.github.com/repos/Kennnedu/flashcards/contributors","subscribers_url":"https://api.github.com/repos/Kennnedu/flashcards/subscribers","subscription_url":"https://api.github.com/repos/Kennnedu/flashcards/subscription","commits_url":"https://api.github.com/repos/Kennnedu/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/Kennnedu/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/Kennnedu/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/Kennnedu/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/Kennnedu/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/Kennnedu/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Kennnedu/flashcards/merges","archive_url":"https://api.github.com/repos/Kennnedu/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Kennnedu/flashcards/downloads","issues_url":"https://api.github.com/repos/Kennnedu/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/Kennnedu/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/Kennnedu/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/Kennnedu/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Kennnedu/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/Kennnedu/flashcards/releases{/id}","deployments_url":"https://api.github.com/repos/Kennnedu/flashcards/deployments","created_at":"2016-10-18T09:56:39Z","updated_at":"2016-10-18T14:34:37Z","pushed_at":"2016-10-30T23:37:25Z","git_url":"git://github.com/Kennnedu/flashcards.git","ssh_url":"git@github.com:Kennnedu/flashcards.git","clone_url":"https://github.com/Kennnedu/flashcards.git","svn_url":"https://github.com/Kennnedu/flashcards","homepage":null,"size":82,"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":"Kennnedu:master","ref":"master","sha":"1153ab32f4c4b352855f6f9db1990aecd773f6fb","user":{"login":"Kennnedu","id":15114167,"avatar_url":"https://avatars.githubusercontent.com/u/15114167?v=3","gravatar_id":"","url":"https://api.github.com/users/Kennnedu","html_url":"https://github.com/Kennnedu","followers_url":"https://api.github.com/users/Kennnedu/followers","following_url":"https://api.github.com/users/Kennnedu/following{/other_user}","gists_url":"https://api.github.com/users/Kennnedu/gists{/gist_id}","starred_url":"https://api.github.com/users/Kennnedu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kennnedu/subscriptions","organizations_url":"https://api.github.com/users/Kennnedu/orgs","repos_url":"https://api.github.com/users/Kennnedu/repos","events_url":"https://api.github.com/users/Kennnedu/events{/privacy}","received_events_url":"https://api.github.com/users/Kennnedu/received_events","type":"User","site_admin":false},"repo":{"id":71234324,"name":"flashcards","full_name":"Kennnedu/flashcards","owner":{"login":"Kennnedu","id":15114167,"avatar_url":"https://avatars.githubusercontent.com/u/15114167?v=3","gravatar_id":"","url":"https://api.github.com/users/Kennnedu","html_url":"https://github.com/Kennnedu","followers_url":"https://api.github.com/users/Kennnedu/followers","following_url":"https://api.github.com/users/Kennnedu/following{/other_user}","gists_url":"https://api.github.com/users/Kennnedu/gists{/gist_id}","starred_url":"https://api.github.com/users/Kennnedu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kennnedu/subscriptions","organizations_url":"https://api.github.com/users/Kennnedu/orgs","repos_url":"https://api.github.com/users/Kennnedu/repos","events_url":"https://api.github.com/users/Kennnedu/events{/privacy}","received_events_url":"https://api.github.com/users/Kennnedu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Kennnedu/flashcards","description":null,"fork":false,"url":"https://api.github.com/repos/Kennnedu/flashcards","forks_url":"https://api.github.com/repos/Kennnedu/flashcards/forks","keys_url":"https://api.github.com/repos/Kennnedu/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Kennnedu/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Kennnedu/flashcards/teams","hooks_url":"https://api.github.com/repos/Kennnedu/flashcards/hooks","issue_events_url":"https://api.github.com/repos/Kennnedu/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/Kennnedu/flashcards/events","assignees_url":"https://api.github.com/repos/Kennnedu/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/Kennnedu/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/Kennnedu/flashcards/tags","blobs_url":"https://api.github.com/repos/Kennnedu/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Kennnedu/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Kennnedu/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/Kennnedu/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Kennnedu/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/Kennnedu/flashcards/languages","stargazers_url":"https://api.github.com/repos/Kennnedu/flashcards/stargazers","contributors_url":"https://api.github.com/repos/Kennnedu/flashcards/contributors","subscribers_url":"https://api.github.com/repos/Kennnedu/flashcards/subscribers","subscription_url":"https://api.github.com/repos/Kennnedu/flashcards/subscription","commits_url":"https://api.github.com/repos/Kennnedu/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/Kennnedu/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/Kennnedu/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/Kennnedu/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/Kennnedu/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/Kennnedu/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Kennnedu/flashcards/merges","archive_url":"https://api.github.com/repos/Kennnedu/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Kennnedu/flashcards/downloads","issues_url":"https://api.github.com/repos/Kennnedu/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/Kennnedu/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/Kennnedu/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/Kennnedu/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Kennnedu/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/Kennnedu/flashcards/releases{/id}","deployments_url":"https://api.github.com/repos/Kennnedu/flashcards/deployments","created_at":"2016-10-18T09:56:39Z","updated_at":"2016-10-18T14:34:37Z","pushed_at":"2016-10-30T23:37:25Z","git_url":"git://github.com/Kennnedu/flashcards.git","ssh_url":"git@github.com:Kennnedu/flashcards.git","clone_url":"https://github.com/Kennnedu/flashcards.git","svn_url":"https://github.com/Kennnedu/flashcards","homepage":null,"size":82,"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/Kennnedu/flashcards/pulls/9"},"html":{"href":"https://github.com/Kennnedu/flashcards/pull/9"},"issue":{"href":"https://api.github.com/repos/Kennnedu/flashcards/issues/9"},"comments":{"href":"https://api.github.com/repos/Kennnedu/flashcards/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/Kennnedu/flashcards/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/Kennnedu/flashcards/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Kennnedu/flashcards/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/Kennnedu/flashcards/statuses/64fe527d1f91c7430992b52cfc4b4c8fba477f53"}}}}
{"actor":{"display_login":"IvanShamatov"}}