{"action":"created","comment":{"url":"https://api.github.com/repos/Codeminer42/cm42-central/pulls/comments/139490094","pull_request_review_id":63430000,"id":139490094,"diff_hunk":"@@ -3,6 +3,19 @@\n     :time_zone, :authy_enabled, :password, :password_confirmation,\n     :role\n \n+  controller do\n+    def impersonate\n+      user = User.find(params[:id])\n+      impersonate_user(user)\n+      redirect_to root_path\n+    end\n+\n+    def stop_impersonating\n+      stop_impersonating_user","path":"app/admin/user.rb","position":12,"original_position":12,"commit_id":"08e2498e4f17b5e29dfd91abc1c93616bf194b6c","original_commit_id":"08e2498e4f17b5e29dfd91abc1c93616bf194b6c","user":{"login":"andrerpbts","id":402131,"avatar_url":"https://avatars2.githubusercontent.com/u/402131?v=4","gravatar_id":"","url":"https://api.github.com/users/andrerpbts","html_url":"https://github.com/andrerpbts","followers_url":"https://api.github.com/users/andrerpbts/followers","following_url":"https://api.github.com/users/andrerpbts/following{/other_user}","gists_url":"https://api.github.com/users/andrerpbts/gists{/gist_id}","starred_url":"https://api.github.com/users/andrerpbts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrerpbts/subscriptions","organizations_url":"https://api.github.com/users/andrerpbts/orgs","repos_url":"https://api.github.com/users/andrerpbts/repos","events_url":"https://api.github.com/users/andrerpbts/events{/privacy}","received_events_url":"https://api.github.com/users/andrerpbts/received_events","type":"User","site_admin":false},"body":"So, you destroy the session var here.","created_at":"2017-09-18T17:38:31Z","updated_at":"2017-09-18T17:38:31Z","html_url":"https://github.com/Codeminer42/cm42-central/pull/255#discussion_r139490094","pull_request_url":"https://api.github.com/repos/Codeminer42/cm42-central/pulls/255","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/Codeminer42/cm42-central/pulls/comments/139490094"},"html":{"href":"https://github.com/Codeminer42/cm42-central/pull/255#discussion_r139490094"},"pull_request":{"href":"https://api.github.com/repos/Codeminer42/cm42-central/pulls/255"}}},"pull_request":{"url":"https://api.github.com/repos/Codeminer42/cm42-central/pulls/255","id":141659023,"html_url":"https://github.com/Codeminer42/cm42-central/pull/255","diff_url":"https://github.com/Codeminer42/cm42-central/pull/255.diff","patch_url":"https://github.com/Codeminer42/cm42-central/pull/255.patch","issue_url":"https://api.github.com/repos/Codeminer42/cm42-central/issues/255","number":255,"state":"open","locked":false,"title":"[WIP] Add pretender gem","user":{"login":"fladson","id":554507,"avatar_url":"https://avatars1.githubusercontent.com/u/554507?v=4","gravatar_id":"","url":"https://api.github.com/users/fladson","html_url":"https://github.com/fladson","followers_url":"https://api.github.com/users/fladson/followers","following_url":"https://api.github.com/users/fladson/following{/other_user}","gists_url":"https://api.github.com/users/fladson/gists{/gist_id}","starred_url":"https://api.github.com/users/fladson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fladson/subscriptions","organizations_url":"https://api.github.com/users/fladson/orgs","repos_url":"https://api.github.com/users/fladson/repos","events_url":"https://api.github.com/users/fladson/events{/privacy}","received_events_url":"https://api.github.com/users/fladson/received_events","type":"User","site_admin":false},"body":"_Action on active admin_\r\n![screen shot 2017-09-18 at 14 24 35](https://user-images.githubusercontent.com/554507/30555148-22d7b700-9c7d-11e7-83a1-88fe592285f1.png) ","created_at":"2017-09-18T17:24:21Z","updated_at":"2017-09-18T17:39:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"206ea19ca735dd001fd30e1cf13596e9d21c113e","assignee":{"login":"fladson","id":554507,"avatar_url":"https://avatars1.githubusercontent.com/u/554507?v=4","gravatar_id":"","url":"https://api.github.com/users/fladson","html_url":"https://github.com/fladson","followers_url":"https://api.github.com/users/fladson/followers","following_url":"https://api.github.com/users/fladson/following{/other_user}","gists_url":"https://api.github.com/users/fladson/gists{/gist_id}","starred_url":"https://api.github.com/users/fladson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fladson/subscriptions","organizations_url":"https://api.github.com/users/fladson/orgs","repos_url":"https://api.github.com/users/fladson/repos","events_url":"https://api.github.com/users/fladson/events{/privacy}","received_events_url":"https://api.github.com/users/fladson/received_events","type":"User","site_admin":false},"assignees":[{"login":"fladson","id":554507,"avatar_url":"https://avatars1.githubusercontent.com/u/554507?v=4","gravatar_id":"","url":"https://api.github.com/users/fladson","html_url":"https://github.com/fladson","followers_url":"https://api.github.com/users/fladson/followers","following_url":"https://api.github.com/users/fladson/following{/other_user}","gists_url":"https://api.github.com/users/fladson/gists{/gist_id}","starred_url":"https://api.github.com/users/fladson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fladson/subscriptions","organizations_url":"https://api.github.com/users/fladson/orgs","repos_url":"https://api.github.com/users/fladson/repos","events_url":"https://api.github.com/users/fladson/events{/privacy}","received_events_url":"https://api.github.com/users/fladson/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/Codeminer42/cm42-central/pulls/255/commits","review_comments_url":"https://api.github.com/repos/Codeminer42/cm42-central/pulls/255/comments","review_comment_url":"https://api.github.com/repos/Codeminer42/cm42-central/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Codeminer42/cm42-central/issues/255/comments","statuses_url":"https://api.github.com/repos/Codeminer42/cm42-central/statuses/08e2498e4f17b5e29dfd91abc1c93616bf194b6c","head":{"label":"Codeminer42:add_pretender","ref":"add_pretender","sha":"08e2498e4f17b5e29dfd91abc1c93616bf194b6c","user":{"login":"Codeminer42","id":1602924,"avatar_url":"https://avatars1.githubusercontent.com/u/1602924?v=4","gravatar_id":"","url":"https://api.github.com/users/Codeminer42","html_url":"https://github.com/Codeminer42","followers_url":"https://api.github.com/users/Codeminer42/followers","following_url":"https://api.github.com/users/Codeminer42/following{/other_user}","gists_url":"https://api.github.com/users/Codeminer42/gists{/gist_id}","starred_url":"https://api.github.com/users/Codeminer42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Codeminer42/subscriptions","organizations_url":"https://api.github.com/users/Codeminer42/orgs","repos_url":"https://api.github.com/users/Codeminer42/repos","events_url":"https://api.github.com/users/Codeminer42/events{/privacy}","received_events_url":"https://api.github.com/users/Codeminer42/received_events","type":"Organization","site_admin":false},"repo":{"id":65383435,"name":"cm42-central","full_name":"Codeminer42/cm42-central","owner":{"login":"Codeminer42","id":1602924,"avatar_url":"https://avatars1.githubusercontent.com/u/1602924?v=4","gravatar_id":"","url":"https://api.github.com/users/Codeminer42","html_url":"https://github.com/Codeminer42","followers_url":"https://api.github.com/users/Codeminer42/followers","following_url":"https://api.github.com/users/Codeminer42/following{/other_user}","gists_url":"https://api.github.com/users/Codeminer42/gists{/gist_id}","starred_url":"https://api.github.com/users/Codeminer42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Codeminer42/subscriptions","organizations_url":"https://api.github.com/users/Codeminer42/orgs","repos_url":"https://api.github.com/users/Codeminer42/repos","events_url":"https://api.github.com/users/Codeminer42/events{/privacy}","received_events_url":"https://api.github.com/users/Codeminer42/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Codeminer42/cm42-central","description":"Fork and Evolution of the Fulcrum project - An agile project planning tool and Pivotal Tracker drop-in replacement","fork":false,"url":"https://api.github.com/repos/Codeminer42/cm42-central","forks_url":"https://api.github.com/repos/Codeminer42/cm42-central/forks","keys_url":"https://api.github.com/repos/Codeminer42/cm42-central/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Codeminer42/cm42-central/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Codeminer42/cm42-central/teams","hooks_url":"https://api.github.com/repos/Codeminer42/cm42-central/hooks","issue_events_url":"https://api.github.com/repos/Codeminer42/cm42-central/issues/events{/number}","events_url":"https://api.github.com/repos/Codeminer42/cm42-central/events","assignees_url":"https://api.github.com/repos/Codeminer42/cm42-central/assignees{/user}","branches_url":"https://api.github.com/repos/Codeminer42/cm42-central/branches{/branch}","tags_url":"https://api.github.com/repos/Codeminer42/cm42-central/tags","blobs_url":"https://api.github.com/repos/Codeminer42/cm42-central/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Codeminer42/cm42-central/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Codeminer42/cm42-central/git/refs{/sha}","trees_url":"https://api.github.com/repos/Codeminer42/cm42-central/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Codeminer42/cm42-central/statuses/{sha}","languages_url":"https://api.github.com/repos/Codeminer42/cm42-central/languages","stargazers_url":"https://api.github.com/repos/Codeminer42/cm42-central/stargazers","contributors_url":"https://api.github.com/repos/Codeminer42/cm42-central/contributors","subscribers_url":"https://api.github.com/repos/Codeminer42/cm42-central/subscribers","subscription_url":"https://api.github.com/repos/Codeminer42/cm42-central/subscription","commits_url":"https://api.github.com/repos/Codeminer42/cm42-central/commits{/sha}","git_commits_url":"https://api.github.com/repos/Codeminer42/cm42-central/git/commits{/sha}","comments_url":"https://api.github.com/repos/Codeminer42/cm42-central/comments{/number}","issue_comment_url":"https://api.github.com/repos/Codeminer42/cm42-central/issues/comments{/number}","contents_url":"https://api.github.com/repos/Codeminer42/cm42-central/contents/{+path}","compare_url":"https://api.github.com/repos/Codeminer42/cm42-central/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Codeminer42/cm42-central/merges","archive_url":"https://api.github.com/repos/Codeminer42/cm42-central/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Codeminer42/cm42-central/downloads","issues_url":"https://api.github.com/repos/Codeminer42/cm42-central/issues{/number}","pulls_url":"https://api.github.com/repos/Codeminer42/cm42-central/pulls{/number}","milestones_url":"https://api.github.com/repos/Codeminer42/cm42-central/milestones{/number}","notifications_url":"https://api.github.com/repos/Codeminer42/cm42-central/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Codeminer42/cm42-central/labels{/name}","releases_url":"https://api.github.com/repos/Codeminer42/cm42-central/releases{/id}","deployments_url":"https://api.github.com/repos/Codeminer42/cm42-central/deployments","created_at":"2016-08-10T13:09:14Z","updated_at":"2017-09-14T11:47:09Z","pushed_at":"2017-09-18T17:39:59Z","git_url":"git://github.com/Codeminer42/cm42-central.git","ssh_url":"git@github.com:Codeminer42/cm42-central.git","clone_url":"https://github.com/Codeminer42/cm42-central.git","svn_url":"https://github.com/Codeminer42/cm42-central","homepage":"https://central.cm42.io","size":5533,"stargazers_count":167,"watchers_count":167,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":31,"mirror_url":null,"open_issues_count":16,"forks":31,"open_issues":16,"watchers":167,"default_branch":"master"}},"base":{"label":"Codeminer42:master","ref":"master","sha":"3b75a128d6660ddd7111299ffe370b820da723c1","user":{"login":"Codeminer42","id":1602924,"avatar_url":"https://avatars1.githubusercontent.com/u/1602924?v=4","gravatar_id":"","url":"https://api.github.com/users/Codeminer42","html_url":"https://github.com/Codeminer42","followers_url":"https://api.github.com/users/Codeminer42/followers","following_url":"https://api.github.com/users/Codeminer42/following{/other_user}","gists_url":"https://api.github.com/users/Codeminer42/gists{/gist_id}","starred_url":"https://api.github.com/users/Codeminer42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Codeminer42/subscriptions","organizations_url":"https://api.github.com/users/Codeminer42/orgs","repos_url":"https://api.github.com/users/Codeminer42/repos","events_url":"https://api.github.com/users/Codeminer42/events{/privacy}","received_events_url":"https://api.github.com/users/Codeminer42/received_events","type":"Organization","site_admin":false},"repo":{"id":65383435,"name":"cm42-central","full_name":"Codeminer42/cm42-central","owner":{"login":"Codeminer42","id":1602924,"avatar_url":"https://avatars1.githubusercontent.com/u/1602924?v=4","gravatar_id":"","url":"https://api.github.com/users/Codeminer42","html_url":"https://github.com/Codeminer42","followers_url":"https://api.github.com/users/Codeminer42/followers","following_url":"https://api.github.com/users/Codeminer42/following{/other_user}","gists_url":"https://api.github.com/users/Codeminer42/gists{/gist_id}","starred_url":"https://api.github.com/users/Codeminer42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Codeminer42/subscriptions","organizations_url":"https://api.github.com/users/Codeminer42/orgs","repos_url":"https://api.github.com/users/Codeminer42/repos","events_url":"https://api.github.com/users/Codeminer42/events{/privacy}","received_events_url":"https://api.github.com/users/Codeminer42/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Codeminer42/cm42-central","description":"Fork and Evolution of the Fulcrum project - An agile project planning tool and Pivotal Tracker drop-in replacement","fork":false,"url":"https://api.github.com/repos/Codeminer42/cm42-central","forks_url":"https://api.github.com/repos/Codeminer42/cm42-central/forks","keys_url":"https://api.github.com/repos/Codeminer42/cm42-central/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Codeminer42/cm42-central/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Codeminer42/cm42-central/teams","hooks_url":"https://api.github.com/repos/Codeminer42/cm42-central/hooks","issue_events_url":"https://api.github.com/repos/Codeminer42/cm42-central/issues/events{/number}","events_url":"https://api.github.com/repos/Codeminer42/cm42-central/events","assignees_url":"https://api.github.com/repos/Codeminer42/cm42-central/assignees{/user}","branches_url":"https://api.github.com/repos/Codeminer42/cm42-central/branches{/branch}","tags_url":"https://api.github.com/repos/Codeminer42/cm42-central/tags","blobs_url":"https://api.github.com/repos/Codeminer42/cm42-central/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Codeminer42/cm42-central/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Codeminer42/cm42-central/git/refs{/sha}","trees_url":"https://api.github.com/repos/Codeminer42/cm42-central/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Codeminer42/cm42-central/statuses/{sha}","languages_url":"https://api.github.com/repos/Codeminer42/cm42-central/languages","stargazers_url":"https://api.github.com/repos/Codeminer42/cm42-central/stargazers","contributors_url":"https://api.github.com/repos/Codeminer42/cm42-central/contributors","subscribers_url":"https://api.github.com/repos/Codeminer42/cm42-central/subscribers","subscription_url":"https://api.github.com/repos/Codeminer42/cm42-central/subscription","commits_url":"https://api.github.com/repos/Codeminer42/cm42-central/commits{/sha}","git_commits_url":"https://api.github.com/repos/Codeminer42/cm42-central/git/commits{/sha}","comments_url":"https://api.github.com/repos/Codeminer42/cm42-central/comments{/number}","issue_comment_url":"https://api.github.com/repos/Codeminer42/cm42-central/issues/comments{/number}","contents_url":"https://api.github.com/repos/Codeminer42/cm42-central/contents/{+path}","compare_url":"https://api.github.com/repos/Codeminer42/cm42-central/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Codeminer42/cm42-central/merges","archive_url":"https://api.github.com/repos/Codeminer42/cm42-central/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Codeminer42/cm42-central/downloads","issues_url":"https://api.github.com/repos/Codeminer42/cm42-central/issues{/number}","pulls_url":"https://api.github.com/repos/Codeminer42/cm42-central/pulls{/number}","milestones_url":"https://api.github.com/repos/Codeminer42/cm42-central/milestones{/number}","notifications_url":"https://api.github.com/repos/Codeminer42/cm42-central/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Codeminer42/cm42-central/labels{/name}","releases_url":"https://api.github.com/repos/Codeminer42/cm42-central/releases{/id}","deployments_url":"https://api.github.com/repos/Codeminer42/cm42-central/deployments","created_at":"2016-08-10T13:09:14Z","updated_at":"2017-09-14T11:47:09Z","pushed_at":"2017-09-18T17:39:59Z","git_url":"git://github.com/Codeminer42/cm42-central.git","ssh_url":"git@github.com:Codeminer42/cm42-central.git","clone_url":"https://github.com/Codeminer42/cm42-central.git","svn_url":"https://github.com/Codeminer42/cm42-central","homepage":"https://central.cm42.io","size":5533,"stargazers_count":167,"watchers_count":167,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":31,"mirror_url":null,"open_issues_count":16,"forks":31,"open_issues":16,"watchers":167,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Codeminer42/cm42-central/pulls/255"},"html":{"href":"https://github.com/Codeminer42/cm42-central/pull/255"},"issue":{"href":"https://api.github.com/repos/Codeminer42/cm42-central/issues/255"},"comments":{"href":"https://api.github.com/repos/Codeminer42/cm42-central/issues/255/comments"},"review_comments":{"href":"https://api.github.com/repos/Codeminer42/cm42-central/pulls/255/comments"},"review_comment":{"href":"https://api.github.com/repos/Codeminer42/cm42-central/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Codeminer42/cm42-central/pulls/255/commits"},"statuses":{"href":"https://api.github.com/repos/Codeminer42/cm42-central/statuses/08e2498e4f17b5e29dfd91abc1c93616bf194b6c"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"andrerpbts"}}