{"action":"created","comment":{"url":"https://api.github.com/repos/sachmem/els6/pulls/comments/72203037","id":72203037,"diff_hunk":"@@ -40,4 +44,16 @@ def user_params\n     params.require(:user).permit(:name, :email, :password,\n       :password_confirmation)\n   end\n+\n+  def logged_in_user\n+    unless logged_in?\n+      flash[:danger] = t(\"request\")\n+      redirect_to login_url\n+    end\n+  end\n+\n+  def correct_user\n+      @user = User.find_by(id: params[:id])","path":"app/controllers/users_controller.rb","position":32,"original_position":32,"commit_id":"d0d1c8a41d37fefa87a2c3bd0bbbbe4bcc370e86","original_commit_id":"d0d1c8a41d37fefa87a2c3bd0bbbbe4bcc370e86","user":{"login":"trantube94","id":13098920,"avatar_url":"https://avatars.githubusercontent.com/u/13098920?v=3","gravatar_id":"","url":"https://api.github.com/users/trantube94","html_url":"https://github.com/trantube94","followers_url":"https://api.github.com/users/trantube94/followers","following_url":"https://api.github.com/users/trantube94/following{/other_user}","gists_url":"https://api.github.com/users/trantube94/gists{/gist_id}","starred_url":"https://api.github.com/users/trantube94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trantube94/subscriptions","organizations_url":"https://api.github.com/users/trantube94/orgs","repos_url":"https://api.github.com/users/trantube94/repos","events_url":"https://api.github.com/users/trantube94/events{/privacy}","received_events_url":"https://api.github.com/users/trantube94/received_events","type":"User","site_admin":false},"body":"?","created_at":"2016-07-26T07:50:35Z","updated_at":"2016-07-26T07:50:35Z","html_url":"https://github.com/sachmem/els6/pull/17#discussion_r72203037","pull_request_url":"https://api.github.com/repos/sachmem/els6/pulls/17","_links":{"self":{"href":"https://api.github.com/repos/sachmem/els6/pulls/comments/72203037"},"html":{"href":"https://github.com/sachmem/els6/pull/17#discussion_r72203037"},"pull_request":{"href":"https://api.github.com/repos/sachmem/els6/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/sachmem/els6/pulls/17","id":78788897,"html_url":"https://github.com/sachmem/els6/pull/17","diff_url":"https://github.com/sachmem/els6/pull/17.diff","patch_url":"https://github.com/sachmem/els6/pull/17.patch","issue_url":"https://api.github.com/repos/sachmem/els6/issues/17","number":17,"state":"open","locked":false,"title":"Categories-show","user":{"login":"phonga3cvp","id":16151030,"avatar_url":"https://avatars.githubusercontent.com/u/16151030?v=3","gravatar_id":"","url":"https://api.github.com/users/phonga3cvp","html_url":"https://github.com/phonga3cvp","followers_url":"https://api.github.com/users/phonga3cvp/followers","following_url":"https://api.github.com/users/phonga3cvp/following{/other_user}","gists_url":"https://api.github.com/users/phonga3cvp/gists{/gist_id}","starred_url":"https://api.github.com/users/phonga3cvp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phonga3cvp/subscriptions","organizations_url":"https://api.github.com/users/phonga3cvp/orgs","repos_url":"https://api.github.com/users/phonga3cvp/repos","events_url":"https://api.github.com/users/phonga3cvp/events{/privacy}","received_events_url":"https://api.github.com/users/phonga3cvp/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-26T04:08:33Z","updated_at":"2016-07-26T07:50:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"24e24713021a9ccc265a5fdc0860c0c6034aead3","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/sachmem/els6/pulls/17/commits","review_comments_url":"https://api.github.com/repos/sachmem/els6/pulls/17/comments","review_comment_url":"https://api.github.com/repos/sachmem/els6/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sachmem/els6/issues/17/comments","statuses_url":"https://api.github.com/repos/sachmem/els6/statuses/d0d1c8a41d37fefa87a2c3bd0bbbbe4bcc370e86","head":{"label":"phonga3cvp:categories-show","ref":"categories-show","sha":"d0d1c8a41d37fefa87a2c3bd0bbbbe4bcc370e86","user":{"login":"phonga3cvp","id":16151030,"avatar_url":"https://avatars.githubusercontent.com/u/16151030?v=3","gravatar_id":"","url":"https://api.github.com/users/phonga3cvp","html_url":"https://github.com/phonga3cvp","followers_url":"https://api.github.com/users/phonga3cvp/followers","following_url":"https://api.github.com/users/phonga3cvp/following{/other_user}","gists_url":"https://api.github.com/users/phonga3cvp/gists{/gist_id}","starred_url":"https://api.github.com/users/phonga3cvp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phonga3cvp/subscriptions","organizations_url":"https://api.github.com/users/phonga3cvp/orgs","repos_url":"https://api.github.com/users/phonga3cvp/repos","events_url":"https://api.github.com/users/phonga3cvp/events{/privacy}","received_events_url":"https://api.github.com/users/phonga3cvp/received_events","type":"User","site_admin":false},"repo":{"id":63656506,"name":"els6","full_name":"phonga3cvp/els6","owner":{"login":"phonga3cvp","id":16151030,"avatar_url":"https://avatars.githubusercontent.com/u/16151030?v=3","gravatar_id":"","url":"https://api.github.com/users/phonga3cvp","html_url":"https://github.com/phonga3cvp","followers_url":"https://api.github.com/users/phonga3cvp/followers","following_url":"https://api.github.com/users/phonga3cvp/following{/other_user}","gists_url":"https://api.github.com/users/phonga3cvp/gists{/gist_id}","starred_url":"https://api.github.com/users/phonga3cvp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phonga3cvp/subscriptions","organizations_url":"https://api.github.com/users/phonga3cvp/orgs","repos_url":"https://api.github.com/users/phonga3cvp/repos","events_url":"https://api.github.com/users/phonga3cvp/events{/privacy}","received_events_url":"https://api.github.com/users/phonga3cvp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/phonga3cvp/els6","description":null,"fork":true,"url":"https://api.github.com/repos/phonga3cvp/els6","forks_url":"https://api.github.com/repos/phonga3cvp/els6/forks","keys_url":"https://api.github.com/repos/phonga3cvp/els6/keys{/key_id}","collaborators_url":"https://api.github.com/repos/phonga3cvp/els6/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/phonga3cvp/els6/teams","hooks_url":"https://api.github.com/repos/phonga3cvp/els6/hooks","issue_events_url":"https://api.github.com/repos/phonga3cvp/els6/issues/events{/number}","events_url":"https://api.github.com/repos/phonga3cvp/els6/events","assignees_url":"https://api.github.com/repos/phonga3cvp/els6/assignees{/user}","branches_url":"https://api.github.com/repos/phonga3cvp/els6/branches{/branch}","tags_url":"https://api.github.com/repos/phonga3cvp/els6/tags","blobs_url":"https://api.github.com/repos/phonga3cvp/els6/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/phonga3cvp/els6/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/phonga3cvp/els6/git/refs{/sha}","trees_url":"https://api.github.com/repos/phonga3cvp/els6/git/trees{/sha}","statuses_url":"https://api.github.com/repos/phonga3cvp/els6/statuses/{sha}","languages_url":"https://api.github.com/repos/phonga3cvp/els6/languages","stargazers_url":"https://api.github.com/repos/phonga3cvp/els6/stargazers","contributors_url":"https://api.github.com/repos/phonga3cvp/els6/contributors","subscribers_url":"https://api.github.com/repos/phonga3cvp/els6/subscribers","subscription_url":"https://api.github.com/repos/phonga3cvp/els6/subscription","commits_url":"https://api.github.com/repos/phonga3cvp/els6/commits{/sha}","git_commits_url":"https://api.github.com/repos/phonga3cvp/els6/git/commits{/sha}","comments_url":"https://api.github.com/repos/phonga3cvp/els6/comments{/number}","issue_comment_url":"https://api.github.com/repos/phonga3cvp/els6/issues/comments{/number}","contents_url":"https://api.github.com/repos/phonga3cvp/els6/contents/{+path}","compare_url":"https://api.github.com/repos/phonga3cvp/els6/compare/{base}...{head}","merges_url":"https://api.github.com/repos/phonga3cvp/els6/merges","archive_url":"https://api.github.com/repos/phonga3cvp/els6/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/phonga3cvp/els6/downloads","issues_url":"https://api.github.com/repos/phonga3cvp/els6/issues{/number}","pulls_url":"https://api.github.com/repos/phonga3cvp/els6/pulls{/number}","milestones_url":"https://api.github.com/repos/phonga3cvp/els6/milestones{/number}","notifications_url":"https://api.github.com/repos/phonga3cvp/els6/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/phonga3cvp/els6/labels{/name}","releases_url":"https://api.github.com/repos/phonga3cvp/els6/releases{/id}","deployments_url":"https://api.github.com/repos/phonga3cvp/els6/deployments","created_at":"2016-07-19T03:20:53Z","updated_at":"2016-07-19T03:20:54Z","pushed_at":"2016-07-26T07:23:04Z","git_url":"git://github.com/phonga3cvp/els6.git","ssh_url":"git@github.com:phonga3cvp/els6.git","clone_url":"https://github.com/phonga3cvp/els6.git","svn_url":"https://github.com/phonga3cvp/els6","homepage":null,"size":36,"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":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"sachmem:development","ref":"development","sha":"3da41a9ff57a47962af1412356fcd74025a3bdaa","user":{"login":"sachmem","id":20066220,"avatar_url":"https://avatars.githubusercontent.com/u/20066220?v=3","gravatar_id":"","url":"https://api.github.com/users/sachmem","html_url":"https://github.com/sachmem","followers_url":"https://api.github.com/users/sachmem/followers","following_url":"https://api.github.com/users/sachmem/following{/other_user}","gists_url":"https://api.github.com/users/sachmem/gists{/gist_id}","starred_url":"https://api.github.com/users/sachmem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sachmem/subscriptions","organizations_url":"https://api.github.com/users/sachmem/orgs","repos_url":"https://api.github.com/users/sachmem/repos","events_url":"https://api.github.com/users/sachmem/events{/privacy}","received_events_url":"https://api.github.com/users/sachmem/received_events","type":"Organization","site_admin":false},"repo":{"id":63654794,"name":"els6","full_name":"sachmem/els6","owner":{"login":"sachmem","id":20066220,"avatar_url":"https://avatars.githubusercontent.com/u/20066220?v=3","gravatar_id":"","url":"https://api.github.com/users/sachmem","html_url":"https://github.com/sachmem","followers_url":"https://api.github.com/users/sachmem/followers","following_url":"https://api.github.com/users/sachmem/following{/other_user}","gists_url":"https://api.github.com/users/sachmem/gists{/gist_id}","starred_url":"https://api.github.com/users/sachmem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sachmem/subscriptions","organizations_url":"https://api.github.com/users/sachmem/orgs","repos_url":"https://api.github.com/users/sachmem/repos","events_url":"https://api.github.com/users/sachmem/events{/privacy}","received_events_url":"https://api.github.com/users/sachmem/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sachmem/els6","description":null,"fork":false,"url":"https://api.github.com/repos/sachmem/els6","forks_url":"https://api.github.com/repos/sachmem/els6/forks","keys_url":"https://api.github.com/repos/sachmem/els6/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sachmem/els6/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sachmem/els6/teams","hooks_url":"https://api.github.com/repos/sachmem/els6/hooks","issue_events_url":"https://api.github.com/repos/sachmem/els6/issues/events{/number}","events_url":"https://api.github.com/repos/sachmem/els6/events","assignees_url":"https://api.github.com/repos/sachmem/els6/assignees{/user}","branches_url":"https://api.github.com/repos/sachmem/els6/branches{/branch}","tags_url":"https://api.github.com/repos/sachmem/els6/tags","blobs_url":"https://api.github.com/repos/sachmem/els6/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sachmem/els6/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sachmem/els6/git/refs{/sha}","trees_url":"https://api.github.com/repos/sachmem/els6/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sachmem/els6/statuses/{sha}","languages_url":"https://api.github.com/repos/sachmem/els6/languages","stargazers_url":"https://api.github.com/repos/sachmem/els6/stargazers","contributors_url":"https://api.github.com/repos/sachmem/els6/contributors","subscribers_url":"https://api.github.com/repos/sachmem/els6/subscribers","subscription_url":"https://api.github.com/repos/sachmem/els6/subscription","commits_url":"https://api.github.com/repos/sachmem/els6/commits{/sha}","git_commits_url":"https://api.github.com/repos/sachmem/els6/git/commits{/sha}","comments_url":"https://api.github.com/repos/sachmem/els6/comments{/number}","issue_comment_url":"https://api.github.com/repos/sachmem/els6/issues/comments{/number}","contents_url":"https://api.github.com/repos/sachmem/els6/contents/{+path}","compare_url":"https://api.github.com/repos/sachmem/els6/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sachmem/els6/merges","archive_url":"https://api.github.com/repos/sachmem/els6/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sachmem/els6/downloads","issues_url":"https://api.github.com/repos/sachmem/els6/issues{/number}","pulls_url":"https://api.github.com/repos/sachmem/els6/pulls{/number}","milestones_url":"https://api.github.com/repos/sachmem/els6/milestones{/number}","notifications_url":"https://api.github.com/repos/sachmem/els6/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sachmem/els6/labels{/name}","releases_url":"https://api.github.com/repos/sachmem/els6/releases{/id}","deployments_url":"https://api.github.com/repos/sachmem/els6/deployments","created_at":"2016-07-19T02:55:33Z","updated_at":"2016-07-19T02:57:07Z","pushed_at":"2016-07-26T07:23:05Z","git_url":"git://github.com/sachmem/els6.git","ssh_url":"git@github.com:sachmem/els6.git","clone_url":"https://github.com/sachmem/els6.git","svn_url":"https://github.com/sachmem/els6","homepage":null,"size":63,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sachmem/els6/pulls/17"},"html":{"href":"https://github.com/sachmem/els6/pull/17"},"issue":{"href":"https://api.github.com/repos/sachmem/els6/issues/17"},"comments":{"href":"https://api.github.com/repos/sachmem/els6/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/sachmem/els6/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/sachmem/els6/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sachmem/els6/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/sachmem/els6/statuses/d0d1c8a41d37fefa87a2c3bd0bbbbe4bcc370e86"}}}}
{"actor":{"display_login":"trantube94"}}