{"action":"created","comment":{"url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/pulls/comments/48336445","id":48336445,"diff_hunk":"@@ -0,0 +1,8 @@\n+module InterviewsHelper\n+  def email_user(user_id)\n+    users=User.all\n+    email=''\n+    users.each { |user| email=user.email if user.id==user_id }\n+    user_email=email\n+  end\n+end","path":"app/helpers/interviews_helper.rb","position":8,"original_position":8,"commit_id":"ea252abf3f1bbd4a35b19426621a308b9c6496be","original_commit_id":"ea252abf3f1bbd4a35b19426621a308b9c6496be","user":{"login":"Kmalynss","id":968370,"avatar_url":"https://avatars.githubusercontent.com/u/968370?v=3","gravatar_id":"","url":"https://api.github.com/users/Kmalynss","html_url":"https://github.com/Kmalynss","followers_url":"https://api.github.com/users/Kmalynss/followers","following_url":"https://api.github.com/users/Kmalynss/following{/other_user}","gists_url":"https://api.github.com/users/Kmalynss/gists{/gist_id}","starred_url":"https://api.github.com/users/Kmalynss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kmalynss/subscriptions","organizations_url":"https://api.github.com/users/Kmalynss/orgs","repos_url":"https://api.github.com/users/Kmalynss/repos","events_url":"https://api.github.com/users/Kmalynss/events{/privacy}","received_events_url":"https://api.github.com/users/Kmalynss/received_events","type":"User","site_admin":false},"body":"@vvs79 \r\nThere are 2 things about this helper:\r\n1. It is totally not needed.\r\n2. It is really very and very bad.\r\n\r\nPlease explain both statements.","created_at":"2015-12-23T10:51:06Z","updated_at":"2015-12-23T10:51:06Z","html_url":"https://github.com/if060-webui-RoR/Aid-Interview/pull/67#discussion_r48336445","pull_request_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/pulls/67","_links":{"self":{"href":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/pulls/comments/48336445"},"html":{"href":"https://github.com/if060-webui-RoR/Aid-Interview/pull/67#discussion_r48336445"},"pull_request":{"href":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/pulls/67"}}},"pull_request":{"url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/pulls/67","id":54379988,"html_url":"https://github.com/if060-webui-RoR/Aid-Interview/pull/67","diff_url":"https://github.com/if060-webui-RoR/Aid-Interview/pull/67.diff","patch_url":"https://github.com/if060-webui-RoR/Aid-Interview/pull/67.patch","issue_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/issues/67","number":67,"state":"open","locked":false,"title":"Candidate","user":{"login":"vvs79","id":15619504,"avatar_url":"https://avatars.githubusercontent.com/u/15619504?v=3","gravatar_id":"","url":"https://api.github.com/users/vvs79","html_url":"https://github.com/vvs79","followers_url":"https://api.github.com/users/vvs79/followers","following_url":"https://api.github.com/users/vvs79/following{/other_user}","gists_url":"https://api.github.com/users/vvs79/gists{/gist_id}","starred_url":"https://api.github.com/users/vvs79/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vvs79/subscriptions","organizations_url":"https://api.github.com/users/vvs79/orgs","repos_url":"https://api.github.com/users/vvs79/repos","events_url":"https://api.github.com/users/vvs79/events{/privacy}","received_events_url":"https://api.github.com/users/vvs79/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-22T15:17:01Z","updated_at":"2015-12-23T10:51:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"eb1daf6a093272fba3639ba80c30b4fb212a112a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/pulls/67/commits","review_comments_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/pulls/67/comments","review_comment_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/pulls/comments{/number}","comments_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/issues/67/comments","statuses_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/statuses/ea252abf3f1bbd4a35b19426621a308b9c6496be","head":{"label":"if060-webui-RoR:candidate","ref":"candidate","sha":"ea252abf3f1bbd4a35b19426621a308b9c6496be","user":{"login":"if060-webui-RoR","id":15673325,"avatar_url":"https://avatars.githubusercontent.com/u/15673325?v=3","gravatar_id":"","url":"https://api.github.com/users/if060-webui-RoR","html_url":"https://github.com/if060-webui-RoR","followers_url":"https://api.github.com/users/if060-webui-RoR/followers","following_url":"https://api.github.com/users/if060-webui-RoR/following{/other_user}","gists_url":"https://api.github.com/users/if060-webui-RoR/gists{/gist_id}","starred_url":"https://api.github.com/users/if060-webui-RoR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/if060-webui-RoR/subscriptions","organizations_url":"https://api.github.com/users/if060-webui-RoR/orgs","repos_url":"https://api.github.com/users/if060-webui-RoR/repos","events_url":"https://api.github.com/users/if060-webui-RoR/events{/privacy}","received_events_url":"https://api.github.com/users/if060-webui-RoR/received_events","type":"Organization","site_admin":false},"repo":{"id":46790920,"name":"Aid-Interview","full_name":"if060-webui-RoR/Aid-Interview","owner":{"login":"if060-webui-RoR","id":15673325,"avatar_url":"https://avatars.githubusercontent.com/u/15673325?v=3","gravatar_id":"","url":"https://api.github.com/users/if060-webui-RoR","html_url":"https://github.com/if060-webui-RoR","followers_url":"https://api.github.com/users/if060-webui-RoR/followers","following_url":"https://api.github.com/users/if060-webui-RoR/following{/other_user}","gists_url":"https://api.github.com/users/if060-webui-RoR/gists{/gist_id}","starred_url":"https://api.github.com/users/if060-webui-RoR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/if060-webui-RoR/subscriptions","organizations_url":"https://api.github.com/users/if060-webui-RoR/orgs","repos_url":"https://api.github.com/users/if060-webui-RoR/repos","events_url":"https://api.github.com/users/if060-webui-RoR/events{/privacy}","received_events_url":"https://api.github.com/users/if060-webui-RoR/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/if060-webui-RoR/Aid-Interview","description":"Aid-Interview","fork":false,"url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview","forks_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/forks","keys_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/keys{/key_id}","collaborators_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/teams","hooks_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/hooks","issue_events_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/issues/events{/number}","events_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/events","assignees_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/assignees{/user}","branches_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/branches{/branch}","tags_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/tags","blobs_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/git/refs{/sha}","trees_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/git/trees{/sha}","statuses_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/statuses/{sha}","languages_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/languages","stargazers_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/stargazers","contributors_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/contributors","subscribers_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/subscribers","subscription_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/subscription","commits_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/commits{/sha}","git_commits_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/git/commits{/sha}","comments_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/comments{/number}","issue_comment_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/issues/comments{/number}","contents_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/contents/{+path}","compare_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/compare/{base}...{head}","merges_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/merges","archive_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/downloads","issues_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/issues{/number}","pulls_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/pulls{/number}","milestones_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/milestones{/number}","notifications_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/labels{/name}","releases_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/releases{/id}","created_at":"2015-11-24T12:42:01Z","updated_at":"2015-12-04T21:53:36Z","pushed_at":"2015-12-23T10:34:14Z","git_url":"git://github.com/if060-webui-RoR/Aid-Interview.git","ssh_url":"git@github.com:if060-webui-RoR/Aid-Interview.git","clone_url":"https://github.com/if060-webui-RoR/Aid-Interview.git","svn_url":"https://github.com/if060-webui-RoR/Aid-Interview","homepage":"https://aidinterview.herokuapp.com/","size":1607,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"if060-webui-RoR:master","ref":"master","sha":"186eae1ee172bc4a846e004b67e7519fdad99ceb","user":{"login":"if060-webui-RoR","id":15673325,"avatar_url":"https://avatars.githubusercontent.com/u/15673325?v=3","gravatar_id":"","url":"https://api.github.com/users/if060-webui-RoR","html_url":"https://github.com/if060-webui-RoR","followers_url":"https://api.github.com/users/if060-webui-RoR/followers","following_url":"https://api.github.com/users/if060-webui-RoR/following{/other_user}","gists_url":"https://api.github.com/users/if060-webui-RoR/gists{/gist_id}","starred_url":"https://api.github.com/users/if060-webui-RoR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/if060-webui-RoR/subscriptions","organizations_url":"https://api.github.com/users/if060-webui-RoR/orgs","repos_url":"https://api.github.com/users/if060-webui-RoR/repos","events_url":"https://api.github.com/users/if060-webui-RoR/events{/privacy}","received_events_url":"https://api.github.com/users/if060-webui-RoR/received_events","type":"Organization","site_admin":false},"repo":{"id":46790920,"name":"Aid-Interview","full_name":"if060-webui-RoR/Aid-Interview","owner":{"login":"if060-webui-RoR","id":15673325,"avatar_url":"https://avatars.githubusercontent.com/u/15673325?v=3","gravatar_id":"","url":"https://api.github.com/users/if060-webui-RoR","html_url":"https://github.com/if060-webui-RoR","followers_url":"https://api.github.com/users/if060-webui-RoR/followers","following_url":"https://api.github.com/users/if060-webui-RoR/following{/other_user}","gists_url":"https://api.github.com/users/if060-webui-RoR/gists{/gist_id}","starred_url":"https://api.github.com/users/if060-webui-RoR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/if060-webui-RoR/subscriptions","organizations_url":"https://api.github.com/users/if060-webui-RoR/orgs","repos_url":"https://api.github.com/users/if060-webui-RoR/repos","events_url":"https://api.github.com/users/if060-webui-RoR/events{/privacy}","received_events_url":"https://api.github.com/users/if060-webui-RoR/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/if060-webui-RoR/Aid-Interview","description":"Aid-Interview","fork":false,"url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview","forks_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/forks","keys_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/keys{/key_id}","collaborators_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/teams","hooks_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/hooks","issue_events_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/issues/events{/number}","events_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/events","assignees_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/assignees{/user}","branches_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/branches{/branch}","tags_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/tags","blobs_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/git/refs{/sha}","trees_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/git/trees{/sha}","statuses_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/statuses/{sha}","languages_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/languages","stargazers_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/stargazers","contributors_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/contributors","subscribers_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/subscribers","subscription_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/subscription","commits_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/commits{/sha}","git_commits_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/git/commits{/sha}","comments_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/comments{/number}","issue_comment_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/issues/comments{/number}","contents_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/contents/{+path}","compare_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/compare/{base}...{head}","merges_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/merges","archive_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/downloads","issues_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/issues{/number}","pulls_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/pulls{/number}","milestones_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/milestones{/number}","notifications_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/labels{/name}","releases_url":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/releases{/id}","created_at":"2015-11-24T12:42:01Z","updated_at":"2015-12-04T21:53:36Z","pushed_at":"2015-12-23T10:34:14Z","git_url":"git://github.com/if060-webui-RoR/Aid-Interview.git","ssh_url":"git@github.com:if060-webui-RoR/Aid-Interview.git","clone_url":"https://github.com/if060-webui-RoR/Aid-Interview.git","svn_url":"https://github.com/if060-webui-RoR/Aid-Interview","homepage":"https://aidinterview.herokuapp.com/","size":1607,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/pulls/67"},"html":{"href":"https://github.com/if060-webui-RoR/Aid-Interview/pull/67"},"issue":{"href":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/issues/67"},"comments":{"href":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/issues/67/comments"},"review_comments":{"href":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/pulls/67/comments"},"review_comment":{"href":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/pulls/67/commits"},"statuses":{"href":"https://api.github.com/repos/if060-webui-RoR/Aid-Interview/statuses/ea252abf3f1bbd4a35b19426621a308b9c6496be"}}}}