{"action":"created","comment":{"url":"https://api.github.com/repos/kodamayutaro/protospace/pulls/comments/66361007","id":66361007,"diff_hunk":"@@ -2,4 +2,25 @@ class UsersController < ApplicationController\n \tdef show\n \t\t@user = User.find(params[:id])\n \tend\n+\n+\tdef edit\n+\t\t@user = User.find(params[:id])\n+\tend\n+\n+\tdef update\n+\t\t@user = User.find(params[:id])\n+\t\tresult = if current_user.id == @user.id\n+\t\t\t@user.update(update_params)\n+\t\tend\n+\n+\t\tif result\n+\t\t\tsign_in(@user, bypass: true) if current_user.id == @user.id","path":"app/controllers/users_controller.rb","position":16,"original_position":16,"commit_id":"1152c678291313ea23a2263dfd2c6c50872e6ae1","original_commit_id":"1152c678291313ea23a2263dfd2c6c50872e6ae1","user":{"login":"yusukeyamane","id":9315114,"avatar_url":"https://avatars.githubusercontent.com/u/9315114?v=3","gravatar_id":"","url":"https://api.github.com/users/yusukeyamane","html_url":"https://github.com/yusukeyamane","followers_url":"https://api.github.com/users/yusukeyamane/followers","following_url":"https://api.github.com/users/yusukeyamane/following{/other_user}","gists_url":"https://api.github.com/users/yusukeyamane/gists{/gist_id}","starred_url":"https://api.github.com/users/yusukeyamane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yusukeyamane/subscriptions","organizations_url":"https://api.github.com/users/yusukeyamane/orgs","repos_url":"https://api.github.com/users/yusukeyamane/repos","events_url":"https://api.github.com/users/yusukeyamane/events{/privacy}","received_events_url":"https://api.github.com/users/yusukeyamane/received_events","type":"User","site_admin":false},"body":"これ頑張ったね！ログアウトしちゃうからもう1回ログインさせてるんだよね？これ、ストロングパラメーターにパスワードを含めなければ解決できるはず！","created_at":"2016-06-08T23:43:03Z","updated_at":"2016-06-08T23:43:03Z","html_url":"https://github.com/kodamayutaro/protospace/pull/8#discussion_r66361007","pull_request_url":"https://api.github.com/repos/kodamayutaro/protospace/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/kodamayutaro/protospace/pulls/comments/66361007"},"html":{"href":"https://github.com/kodamayutaro/protospace/pull/8#discussion_r66361007"},"pull_request":{"href":"https://api.github.com/repos/kodamayutaro/protospace/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/kodamayutaro/protospace/pulls/8","id":73064589,"html_url":"https://github.com/kodamayutaro/protospace/pull/8","diff_url":"https://github.com/kodamayutaro/protospace/pull/8.diff","patch_url":"https://github.com/kodamayutaro/protospace/pull/8.patch","issue_url":"https://api.github.com/repos/kodamayutaro/protospace/issues/8","number":8,"state":"open","locked":false,"title":"[WIP]add_edit_function","user":{"login":"kodamayutaro","id":16716677,"avatar_url":"https://avatars.githubusercontent.com/u/16716677?v=3","gravatar_id":"","url":"https://api.github.com/users/kodamayutaro","html_url":"https://github.com/kodamayutaro","followers_url":"https://api.github.com/users/kodamayutaro/followers","following_url":"https://api.github.com/users/kodamayutaro/following{/other_user}","gists_url":"https://api.github.com/users/kodamayutaro/gists{/gist_id}","starred_url":"https://api.github.com/users/kodamayutaro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kodamayutaro/subscriptions","organizations_url":"https://api.github.com/users/kodamayutaro/orgs","repos_url":"https://api.github.com/users/kodamayutaro/repos","events_url":"https://api.github.com/users/kodamayutaro/events{/privacy}","received_events_url":"https://api.github.com/users/kodamayutaro/received_events","type":"User","site_admin":false},"body":"## What \r\n* ユーザー情報編集機能の追加\r\n\r\n## Why \r\n* ユーザー情報の編集をできるようにするため","created_at":"2016-06-08T15:09:42Z","updated_at":"2016-06-08T23:43:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f353c651534728148815ed9d166acdb065aaebd4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kodamayutaro/protospace/pulls/8/commits","review_comments_url":"https://api.github.com/repos/kodamayutaro/protospace/pulls/8/comments","review_comment_url":"https://api.github.com/repos/kodamayutaro/protospace/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kodamayutaro/protospace/issues/8/comments","statuses_url":"https://api.github.com/repos/kodamayutaro/protospace/statuses/1152c678291313ea23a2263dfd2c6c50872e6ae1","head":{"label":"kodamayutaro:add_edit_function","ref":"add_edit_function","sha":"1152c678291313ea23a2263dfd2c6c50872e6ae1","user":{"login":"kodamayutaro","id":16716677,"avatar_url":"https://avatars.githubusercontent.com/u/16716677?v=3","gravatar_id":"","url":"https://api.github.com/users/kodamayutaro","html_url":"https://github.com/kodamayutaro","followers_url":"https://api.github.com/users/kodamayutaro/followers","following_url":"https://api.github.com/users/kodamayutaro/following{/other_user}","gists_url":"https://api.github.com/users/kodamayutaro/gists{/gist_id}","starred_url":"https://api.github.com/users/kodamayutaro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kodamayutaro/subscriptions","organizations_url":"https://api.github.com/users/kodamayutaro/orgs","repos_url":"https://api.github.com/users/kodamayutaro/repos","events_url":"https://api.github.com/users/kodamayutaro/events{/privacy}","received_events_url":"https://api.github.com/users/kodamayutaro/received_events","type":"User","site_admin":false},"repo":{"id":59089691,"name":"protospace","full_name":"kodamayutaro/protospace","owner":{"login":"kodamayutaro","id":16716677,"avatar_url":"https://avatars.githubusercontent.com/u/16716677?v=3","gravatar_id":"","url":"https://api.github.com/users/kodamayutaro","html_url":"https://github.com/kodamayutaro","followers_url":"https://api.github.com/users/kodamayutaro/followers","following_url":"https://api.github.com/users/kodamayutaro/following{/other_user}","gists_url":"https://api.github.com/users/kodamayutaro/gists{/gist_id}","starred_url":"https://api.github.com/users/kodamayutaro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kodamayutaro/subscriptions","organizations_url":"https://api.github.com/users/kodamayutaro/orgs","repos_url":"https://api.github.com/users/kodamayutaro/repos","events_url":"https://api.github.com/users/kodamayutaro/events{/privacy}","received_events_url":"https://api.github.com/users/kodamayutaro/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kodamayutaro/protospace","description":"","fork":false,"url":"https://api.github.com/repos/kodamayutaro/protospace","forks_url":"https://api.github.com/repos/kodamayutaro/protospace/forks","keys_url":"https://api.github.com/repos/kodamayutaro/protospace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kodamayutaro/protospace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kodamayutaro/protospace/teams","hooks_url":"https://api.github.com/repos/kodamayutaro/protospace/hooks","issue_events_url":"https://api.github.com/repos/kodamayutaro/protospace/issues/events{/number}","events_url":"https://api.github.com/repos/kodamayutaro/protospace/events","assignees_url":"https://api.github.com/repos/kodamayutaro/protospace/assignees{/user}","branches_url":"https://api.github.com/repos/kodamayutaro/protospace/branches{/branch}","tags_url":"https://api.github.com/repos/kodamayutaro/protospace/tags","blobs_url":"https://api.github.com/repos/kodamayutaro/protospace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kodamayutaro/protospace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kodamayutaro/protospace/git/refs{/sha}","trees_url":"https://api.github.com/repos/kodamayutaro/protospace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kodamayutaro/protospace/statuses/{sha}","languages_url":"https://api.github.com/repos/kodamayutaro/protospace/languages","stargazers_url":"https://api.github.com/repos/kodamayutaro/protospace/stargazers","contributors_url":"https://api.github.com/repos/kodamayutaro/protospace/contributors","subscribers_url":"https://api.github.com/repos/kodamayutaro/protospace/subscribers","subscription_url":"https://api.github.com/repos/kodamayutaro/protospace/subscription","commits_url":"https://api.github.com/repos/kodamayutaro/protospace/commits{/sha}","git_commits_url":"https://api.github.com/repos/kodamayutaro/protospace/git/commits{/sha}","comments_url":"https://api.github.com/repos/kodamayutaro/protospace/comments{/number}","issue_comment_url":"https://api.github.com/repos/kodamayutaro/protospace/issues/comments{/number}","contents_url":"https://api.github.com/repos/kodamayutaro/protospace/contents/{+path}","compare_url":"https://api.github.com/repos/kodamayutaro/protospace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kodamayutaro/protospace/merges","archive_url":"https://api.github.com/repos/kodamayutaro/protospace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kodamayutaro/protospace/downloads","issues_url":"https://api.github.com/repos/kodamayutaro/protospace/issues{/number}","pulls_url":"https://api.github.com/repos/kodamayutaro/protospace/pulls{/number}","milestones_url":"https://api.github.com/repos/kodamayutaro/protospace/milestones{/number}","notifications_url":"https://api.github.com/repos/kodamayutaro/protospace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kodamayutaro/protospace/labels{/name}","releases_url":"https://api.github.com/repos/kodamayutaro/protospace/releases{/id}","deployments_url":"https://api.github.com/repos/kodamayutaro/protospace/deployments","created_at":"2016-05-18T06:52:48Z","updated_at":"2016-05-21T02:10:37Z","pushed_at":"2016-06-08T15:11:28Z","git_url":"git://github.com/kodamayutaro/protospace.git","ssh_url":"git@github.com:kodamayutaro/protospace.git","clone_url":"https://github.com/kodamayutaro/protospace.git","svn_url":"https://github.com/kodamayutaro/protospace","homepage":"","size":561,"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":"kodamayutaro:master","ref":"master","sha":"6183393af8aadf77d0086f3a622450536e37d5ca","user":{"login":"kodamayutaro","id":16716677,"avatar_url":"https://avatars.githubusercontent.com/u/16716677?v=3","gravatar_id":"","url":"https://api.github.com/users/kodamayutaro","html_url":"https://github.com/kodamayutaro","followers_url":"https://api.github.com/users/kodamayutaro/followers","following_url":"https://api.github.com/users/kodamayutaro/following{/other_user}","gists_url":"https://api.github.com/users/kodamayutaro/gists{/gist_id}","starred_url":"https://api.github.com/users/kodamayutaro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kodamayutaro/subscriptions","organizations_url":"https://api.github.com/users/kodamayutaro/orgs","repos_url":"https://api.github.com/users/kodamayutaro/repos","events_url":"https://api.github.com/users/kodamayutaro/events{/privacy}","received_events_url":"https://api.github.com/users/kodamayutaro/received_events","type":"User","site_admin":false},"repo":{"id":59089691,"name":"protospace","full_name":"kodamayutaro/protospace","owner":{"login":"kodamayutaro","id":16716677,"avatar_url":"https://avatars.githubusercontent.com/u/16716677?v=3","gravatar_id":"","url":"https://api.github.com/users/kodamayutaro","html_url":"https://github.com/kodamayutaro","followers_url":"https://api.github.com/users/kodamayutaro/followers","following_url":"https://api.github.com/users/kodamayutaro/following{/other_user}","gists_url":"https://api.github.com/users/kodamayutaro/gists{/gist_id}","starred_url":"https://api.github.com/users/kodamayutaro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kodamayutaro/subscriptions","organizations_url":"https://api.github.com/users/kodamayutaro/orgs","repos_url":"https://api.github.com/users/kodamayutaro/repos","events_url":"https://api.github.com/users/kodamayutaro/events{/privacy}","received_events_url":"https://api.github.com/users/kodamayutaro/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kodamayutaro/protospace","description":"","fork":false,"url":"https://api.github.com/repos/kodamayutaro/protospace","forks_url":"https://api.github.com/repos/kodamayutaro/protospace/forks","keys_url":"https://api.github.com/repos/kodamayutaro/protospace/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kodamayutaro/protospace/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kodamayutaro/protospace/teams","hooks_url":"https://api.github.com/repos/kodamayutaro/protospace/hooks","issue_events_url":"https://api.github.com/repos/kodamayutaro/protospace/issues/events{/number}","events_url":"https://api.github.com/repos/kodamayutaro/protospace/events","assignees_url":"https://api.github.com/repos/kodamayutaro/protospace/assignees{/user}","branches_url":"https://api.github.com/repos/kodamayutaro/protospace/branches{/branch}","tags_url":"https://api.github.com/repos/kodamayutaro/protospace/tags","blobs_url":"https://api.github.com/repos/kodamayutaro/protospace/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kodamayutaro/protospace/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kodamayutaro/protospace/git/refs{/sha}","trees_url":"https://api.github.com/repos/kodamayutaro/protospace/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kodamayutaro/protospace/statuses/{sha}","languages_url":"https://api.github.com/repos/kodamayutaro/protospace/languages","stargazers_url":"https://api.github.com/repos/kodamayutaro/protospace/stargazers","contributors_url":"https://api.github.com/repos/kodamayutaro/protospace/contributors","subscribers_url":"https://api.github.com/repos/kodamayutaro/protospace/subscribers","subscription_url":"https://api.github.com/repos/kodamayutaro/protospace/subscription","commits_url":"https://api.github.com/repos/kodamayutaro/protospace/commits{/sha}","git_commits_url":"https://api.github.com/repos/kodamayutaro/protospace/git/commits{/sha}","comments_url":"https://api.github.com/repos/kodamayutaro/protospace/comments{/number}","issue_comment_url":"https://api.github.com/repos/kodamayutaro/protospace/issues/comments{/number}","contents_url":"https://api.github.com/repos/kodamayutaro/protospace/contents/{+path}","compare_url":"https://api.github.com/repos/kodamayutaro/protospace/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kodamayutaro/protospace/merges","archive_url":"https://api.github.com/repos/kodamayutaro/protospace/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kodamayutaro/protospace/downloads","issues_url":"https://api.github.com/repos/kodamayutaro/protospace/issues{/number}","pulls_url":"https://api.github.com/repos/kodamayutaro/protospace/pulls{/number}","milestones_url":"https://api.github.com/repos/kodamayutaro/protospace/milestones{/number}","notifications_url":"https://api.github.com/repos/kodamayutaro/protospace/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kodamayutaro/protospace/labels{/name}","releases_url":"https://api.github.com/repos/kodamayutaro/protospace/releases{/id}","deployments_url":"https://api.github.com/repos/kodamayutaro/protospace/deployments","created_at":"2016-05-18T06:52:48Z","updated_at":"2016-05-21T02:10:37Z","pushed_at":"2016-06-08T15:11:28Z","git_url":"git://github.com/kodamayutaro/protospace.git","ssh_url":"git@github.com:kodamayutaro/protospace.git","clone_url":"https://github.com/kodamayutaro/protospace.git","svn_url":"https://github.com/kodamayutaro/protospace","homepage":"","size":561,"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/kodamayutaro/protospace/pulls/8"},"html":{"href":"https://github.com/kodamayutaro/protospace/pull/8"},"issue":{"href":"https://api.github.com/repos/kodamayutaro/protospace/issues/8"},"comments":{"href":"https://api.github.com/repos/kodamayutaro/protospace/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/kodamayutaro/protospace/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/kodamayutaro/protospace/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kodamayutaro/protospace/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/kodamayutaro/protospace/statuses/1152c678291313ea23a2263dfd2c6c50872e6ae1"}}}}
{"actor":{"display_login":"yusukeyamane"}}