{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fels_71/pulls/comments/35392580","id":35392580,"diff_hunk":"@@ -13,4 +13,27 @@ def user_params\n     params.require(:user).permit :name, :email, :password, :password_confirmation, :avatar\n   end\n \n+  def correct_user\n+    @user = find_object_model User, params[:id]\n+    redirect_to root_url unless current_user = @user\n+  end\n+\n+  def logged_in_user\n+    unless logged_in?\n+      store_location\n+      flash[:danger] = t \"user.pleaselogin\"\n+      redirect_to login_url\n+    end\n+  end\n+\n+  def supervisor","path":"app/controllers/users_controller.rb","position":24,"original_position":24,"commit_id":"30c3b40946334474d89cbe8128564ed989e8d68c","original_commit_id":"30c3b40946334474d89cbe8128564ed989e8d68c","user":{"login":"dieunb","id":2122175,"avatar_url":"https://avatars.githubusercontent.com/u/2122175?v=3","gravatar_id":"","url":"https://api.github.com/users/dieunb","html_url":"https://github.com/dieunb","followers_url":"https://api.github.com/users/dieunb/followers","following_url":"https://api.github.com/users/dieunb/following{/other_user}","gists_url":"https://api.github.com/users/dieunb/gists{/gist_id}","starred_url":"https://api.github.com/users/dieunb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dieunb/subscriptions","organizations_url":"https://api.github.com/users/dieunb/orgs","repos_url":"https://api.github.com/users/dieunb/repos","events_url":"https://api.github.com/users/dieunb/events{/privacy}","received_events_url":"https://api.github.com/users/dieunb/received_events","type":"User","site_admin":false},"body":"function name should `verify_supervisor`","created_at":"2015-07-24T03:06:05Z","updated_at":"2015-07-24T03:06:05Z","html_url":"https://github.com/framgia/fels_71/pull/4#discussion_r35392580","pull_request_url":"https://api.github.com/repos/framgia/fels_71/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_71/pulls/comments/35392580"},"html":{"href":"https://github.com/framgia/fels_71/pull/4#discussion_r35392580"},"pull_request":{"href":"https://api.github.com/repos/framgia/fels_71/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fels_71/pulls/4","id":40637333,"html_url":"https://github.com/framgia/fels_71/pull/4","diff_url":"https://github.com/framgia/fels_71/pull/4.diff","patch_url":"https://github.com/framgia/fels_71/pull/4.patch","issue_url":"https://api.github.com/repos/framgia/fels_71/issues/4","number":4,"state":"open","locked":false,"title":"Add I3-login-logout","user":{"login":"vinhnd2010","id":4114847,"avatar_url":"https://avatars.githubusercontent.com/u/4114847?v=3","gravatar_id":"","url":"https://api.github.com/users/vinhnd2010","html_url":"https://github.com/vinhnd2010","followers_url":"https://api.github.com/users/vinhnd2010/followers","following_url":"https://api.github.com/users/vinhnd2010/following{/other_user}","gists_url":"https://api.github.com/users/vinhnd2010/gists{/gist_id}","starred_url":"https://api.github.com/users/vinhnd2010/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinhnd2010/subscriptions","organizations_url":"https://api.github.com/users/vinhnd2010/orgs","repos_url":"https://api.github.com/users/vinhnd2010/repos","events_url":"https://api.github.com/users/vinhnd2010/events{/privacy}","received_events_url":"https://api.github.com/users/vinhnd2010/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-23T05:03:31Z","updated_at":"2015-07-24T03:06:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4a45fb8ab824bc2f123cc3fc666232fa18f63b0e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fels_71/pulls/4/commits","review_comments_url":"https://api.github.com/repos/framgia/fels_71/pulls/4/comments","review_comment_url":"https://api.github.com/repos/framgia/fels_71/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fels_71/issues/4/comments","statuses_url":"https://api.github.com/repos/framgia/fels_71/statuses/30c3b40946334474d89cbe8128564ed989e8d68c","head":{"label":"vinhnd2010:I3-login-logout","ref":"I3-login-logout","sha":"30c3b40946334474d89cbe8128564ed989e8d68c","user":{"login":"vinhnd2010","id":4114847,"avatar_url":"https://avatars.githubusercontent.com/u/4114847?v=3","gravatar_id":"","url":"https://api.github.com/users/vinhnd2010","html_url":"https://github.com/vinhnd2010","followers_url":"https://api.github.com/users/vinhnd2010/followers","following_url":"https://api.github.com/users/vinhnd2010/following{/other_user}","gists_url":"https://api.github.com/users/vinhnd2010/gists{/gist_id}","starred_url":"https://api.github.com/users/vinhnd2010/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinhnd2010/subscriptions","organizations_url":"https://api.github.com/users/vinhnd2010/orgs","repos_url":"https://api.github.com/users/vinhnd2010/repos","events_url":"https://api.github.com/users/vinhnd2010/events{/privacy}","received_events_url":"https://api.github.com/users/vinhnd2010/received_events","type":"User","site_admin":false},"repo":{"id":39483083,"name":"fels_71","full_name":"vinhnd2010/fels_71","owner":{"login":"vinhnd2010","id":4114847,"avatar_url":"https://avatars.githubusercontent.com/u/4114847?v=3","gravatar_id":"","url":"https://api.github.com/users/vinhnd2010","html_url":"https://github.com/vinhnd2010","followers_url":"https://api.github.com/users/vinhnd2010/followers","following_url":"https://api.github.com/users/vinhnd2010/following{/other_user}","gists_url":"https://api.github.com/users/vinhnd2010/gists{/gist_id}","starred_url":"https://api.github.com/users/vinhnd2010/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinhnd2010/subscriptions","organizations_url":"https://api.github.com/users/vinhnd2010/orgs","repos_url":"https://api.github.com/users/vinhnd2010/repos","events_url":"https://api.github.com/users/vinhnd2010/events{/privacy}","received_events_url":"https://api.github.com/users/vinhnd2010/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vinhnd2010/fels_71","description":"Framgia E-Learning System (training)","fork":true,"url":"https://api.github.com/repos/vinhnd2010/fels_71","forks_url":"https://api.github.com/repos/vinhnd2010/fels_71/forks","keys_url":"https://api.github.com/repos/vinhnd2010/fels_71/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vinhnd2010/fels_71/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vinhnd2010/fels_71/teams","hooks_url":"https://api.github.com/repos/vinhnd2010/fels_71/hooks","issue_events_url":"https://api.github.com/repos/vinhnd2010/fels_71/issues/events{/number}","events_url":"https://api.github.com/repos/vinhnd2010/fels_71/events","assignees_url":"https://api.github.com/repos/vinhnd2010/fels_71/assignees{/user}","branches_url":"https://api.github.com/repos/vinhnd2010/fels_71/branches{/branch}","tags_url":"https://api.github.com/repos/vinhnd2010/fels_71/tags","blobs_url":"https://api.github.com/repos/vinhnd2010/fels_71/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vinhnd2010/fels_71/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vinhnd2010/fels_71/git/refs{/sha}","trees_url":"https://api.github.com/repos/vinhnd2010/fels_71/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vinhnd2010/fels_71/statuses/{sha}","languages_url":"https://api.github.com/repos/vinhnd2010/fels_71/languages","stargazers_url":"https://api.github.com/repos/vinhnd2010/fels_71/stargazers","contributors_url":"https://api.github.com/repos/vinhnd2010/fels_71/contributors","subscribers_url":"https://api.github.com/repos/vinhnd2010/fels_71/subscribers","subscription_url":"https://api.github.com/repos/vinhnd2010/fels_71/subscription","commits_url":"https://api.github.com/repos/vinhnd2010/fels_71/commits{/sha}","git_commits_url":"https://api.github.com/repos/vinhnd2010/fels_71/git/commits{/sha}","comments_url":"https://api.github.com/repos/vinhnd2010/fels_71/comments{/number}","issue_comment_url":"https://api.github.com/repos/vinhnd2010/fels_71/issues/comments{/number}","contents_url":"https://api.github.com/repos/vinhnd2010/fels_71/contents/{+path}","compare_url":"https://api.github.com/repos/vinhnd2010/fels_71/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vinhnd2010/fels_71/merges","archive_url":"https://api.github.com/repos/vinhnd2010/fels_71/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vinhnd2010/fels_71/downloads","issues_url":"https://api.github.com/repos/vinhnd2010/fels_71/issues{/number}","pulls_url":"https://api.github.com/repos/vinhnd2010/fels_71/pulls{/number}","milestones_url":"https://api.github.com/repos/vinhnd2010/fels_71/milestones{/number}","notifications_url":"https://api.github.com/repos/vinhnd2010/fels_71/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vinhnd2010/fels_71/labels{/name}","releases_url":"https://api.github.com/repos/vinhnd2010/fels_71/releases{/id}","created_at":"2015-07-22T03:18:29Z","updated_at":"2015-07-20T03:14:12Z","pushed_at":"2015-07-24T02:59:18Z","git_url":"git://github.com/vinhnd2010/fels_71.git","ssh_url":"git@github.com:vinhnd2010/fels_71.git","clone_url":"https://github.com/vinhnd2010/fels_71.git","svn_url":"https://github.com/vinhnd2010/fels_71","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"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":"framgia:develop","ref":"develop","sha":"d884c4f85bd0eed69ce15673b5f616a30cebcaaa","user":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"repo":{"id":39360683,"name":"fels_71","full_name":"framgia/fels_71","owner":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/framgia/fels_71","description":"Framgia E-Learning System (training)","fork":false,"url":"https://api.github.com/repos/framgia/fels_71","forks_url":"https://api.github.com/repos/framgia/fels_71/forks","keys_url":"https://api.github.com/repos/framgia/fels_71/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fels_71/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fels_71/teams","hooks_url":"https://api.github.com/repos/framgia/fels_71/hooks","issue_events_url":"https://api.github.com/repos/framgia/fels_71/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fels_71/events","assignees_url":"https://api.github.com/repos/framgia/fels_71/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fels_71/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fels_71/tags","blobs_url":"https://api.github.com/repos/framgia/fels_71/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fels_71/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fels_71/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fels_71/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fels_71/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fels_71/languages","stargazers_url":"https://api.github.com/repos/framgia/fels_71/stargazers","contributors_url":"https://api.github.com/repos/framgia/fels_71/contributors","subscribers_url":"https://api.github.com/repos/framgia/fels_71/subscribers","subscription_url":"https://api.github.com/repos/framgia/fels_71/subscription","commits_url":"https://api.github.com/repos/framgia/fels_71/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fels_71/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fels_71/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fels_71/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fels_71/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fels_71/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fels_71/merges","archive_url":"https://api.github.com/repos/framgia/fels_71/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fels_71/downloads","issues_url":"https://api.github.com/repos/framgia/fels_71/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fels_71/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fels_71/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fels_71/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fels_71/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fels_71/releases{/id}","created_at":"2015-07-20T03:14:12Z","updated_at":"2015-07-20T03:14:12Z","pushed_at":"2015-07-24T02:59:19Z","git_url":"git://github.com/framgia/fels_71.git","ssh_url":"git@github.com:framgia/fels_71.git","clone_url":"https://github.com/framgia/fels_71.git","svn_url":"https://github.com/framgia/fels_71","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"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/framgia/fels_71/pulls/4"},"html":{"href":"https://github.com/framgia/fels_71/pull/4"},"issue":{"href":"https://api.github.com/repos/framgia/fels_71/issues/4"},"comments":{"href":"https://api.github.com/repos/framgia/fels_71/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fels_71/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fels_71/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fels_71/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fels_71/statuses/30c3b40946334474d89cbe8128564ed989e8d68c"}}}}