{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fdf_21/pulls/comments/86279046","pull_request_review_id":6944249,"id":86279046,"diff_hunk":"@@ -0,0 +1,73 @@\n+class Admin::UsersController < ApplicationController\n+  before_action :logged_in_user\n+  before_action :verify_admin\n+  before_action :find_user, except: [:index, :new, :create]\n+  before_action :valid_user, only: [:destroy]\n+\n+  def index\n+    @users = if user_name = params[:name]\n+      User.name_like(user_name)","path":"app/controllers/admin/users_controller.rb","position":9,"original_position":9,"commit_id":"db3bf70ae76c43d19da53620e4155d31717ee15c","original_commit_id":"27f89e12fc337b62c7588905862913be7e402fde","user":{"login":"yeunuthongminh","id":20291773,"avatar_url":"https://avatars.githubusercontent.com/u/20291773?v=3","gravatar_id":"","url":"https://api.github.com/users/yeunuthongminh","html_url":"https://github.com/yeunuthongminh","followers_url":"https://api.github.com/users/yeunuthongminh/followers","following_url":"https://api.github.com/users/yeunuthongminh/following{/other_user}","gists_url":"https://api.github.com/users/yeunuthongminh/gists{/gist_id}","starred_url":"https://api.github.com/users/yeunuthongminh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yeunuthongminh/subscriptions","organizations_url":"https://api.github.com/users/yeunuthongminh/orgs","repos_url":"https://api.github.com/users/yeunuthongminh/repos","events_url":"https://api.github.com/users/yeunuthongminh/events{/privacy}","received_events_url":"https://api.github.com/users/yeunuthongminh/received_events","type":"User","site_admin":false},"body":"indent\r\n","created_at":"2016-11-03T02:22:53Z","updated_at":"2016-11-03T02:26:12Z","html_url":"https://github.com/framgia/fdf_21/pull/10#discussion_r86279046","pull_request_url":"https://api.github.com/repos/framgia/fdf_21/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/framgia/fdf_21/pulls/comments/86279046"},"html":{"href":"https://github.com/framgia/fdf_21/pull/10#discussion_r86279046"},"pull_request":{"href":"https://api.github.com/repos/framgia/fdf_21/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fdf_21/pulls/10","id":91918685,"html_url":"https://github.com/framgia/fdf_21/pull/10","diff_url":"https://github.com/framgia/fdf_21/pull/10.diff","patch_url":"https://github.com/framgia/fdf_21/pull/10.patch","issue_url":"https://api.github.com/repos/framgia/fdf_21/issues/10","number":10,"state":"open","locked":false,"title":"User management","user":{"login":"nguyenhuyen712","id":22762503,"avatar_url":"https://avatars.githubusercontent.com/u/22762503?v=3","gravatar_id":"","url":"https://api.github.com/users/nguyenhuyen712","html_url":"https://github.com/nguyenhuyen712","followers_url":"https://api.github.com/users/nguyenhuyen712/followers","following_url":"https://api.github.com/users/nguyenhuyen712/following{/other_user}","gists_url":"https://api.github.com/users/nguyenhuyen712/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenhuyen712/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenhuyen712/subscriptions","organizations_url":"https://api.github.com/users/nguyenhuyen712/orgs","repos_url":"https://api.github.com/users/nguyenhuyen712/repos","events_url":"https://api.github.com/users/nguyenhuyen712/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenhuyen712/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-02T07:07:54Z","updated_at":"2016-11-03T02:26:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5053bc6bfe232542ee2360f1c4c40e18dd707c4f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fdf_21/pulls/10/commits","review_comments_url":"https://api.github.com/repos/framgia/fdf_21/pulls/10/comments","review_comment_url":"https://api.github.com/repos/framgia/fdf_21/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fdf_21/issues/10/comments","statuses_url":"https://api.github.com/repos/framgia/fdf_21/statuses/db3bf70ae76c43d19da53620e4155d31717ee15c","head":{"label":"nguyenhuyen712:user-management","ref":"user-management","sha":"db3bf70ae76c43d19da53620e4155d31717ee15c","user":{"login":"nguyenhuyen712","id":22762503,"avatar_url":"https://avatars.githubusercontent.com/u/22762503?v=3","gravatar_id":"","url":"https://api.github.com/users/nguyenhuyen712","html_url":"https://github.com/nguyenhuyen712","followers_url":"https://api.github.com/users/nguyenhuyen712/followers","following_url":"https://api.github.com/users/nguyenhuyen712/following{/other_user}","gists_url":"https://api.github.com/users/nguyenhuyen712/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenhuyen712/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenhuyen712/subscriptions","organizations_url":"https://api.github.com/users/nguyenhuyen712/orgs","repos_url":"https://api.github.com/users/nguyenhuyen712/repos","events_url":"https://api.github.com/users/nguyenhuyen712/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenhuyen712/received_events","type":"User","site_admin":false},"repo":{"id":72161527,"name":"fdf_21","full_name":"nguyenhuyen712/fdf_21","owner":{"login":"nguyenhuyen712","id":22762503,"avatar_url":"https://avatars.githubusercontent.com/u/22762503?v=3","gravatar_id":"","url":"https://api.github.com/users/nguyenhuyen712","html_url":"https://github.com/nguyenhuyen712","followers_url":"https://api.github.com/users/nguyenhuyen712/followers","following_url":"https://api.github.com/users/nguyenhuyen712/following{/other_user}","gists_url":"https://api.github.com/users/nguyenhuyen712/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenhuyen712/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenhuyen712/subscriptions","organizations_url":"https://api.github.com/users/nguyenhuyen712/orgs","repos_url":"https://api.github.com/users/nguyenhuyen712/repos","events_url":"https://api.github.com/users/nguyenhuyen712/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenhuyen712/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nguyenhuyen712/fdf_21","description":"Foods & Drinks (training)","fork":true,"url":"https://api.github.com/repos/nguyenhuyen712/fdf_21","forks_url":"https://api.github.com/repos/nguyenhuyen712/fdf_21/forks","keys_url":"https://api.github.com/repos/nguyenhuyen712/fdf_21/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nguyenhuyen712/fdf_21/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nguyenhuyen712/fdf_21/teams","hooks_url":"https://api.github.com/repos/nguyenhuyen712/fdf_21/hooks","issue_events_url":"https://api.github.com/repos/nguyenhuyen712/fdf_21/issues/events{/number}","events_url":"https://api.github.com/repos/nguyenhuyen712/fdf_21/events","assignees_url":"https://api.github.com/repos/nguyenhuyen712/fdf_21/assignees{/user}","branches_url":"https://api.github.com/repos/nguyenhuyen712/fdf_21/branches{/branch}","tags_url":"https://api.github.com/repos/nguyenhuyen712/fdf_21/tags","blobs_url":"https://api.github.com/repos/nguyenhuyen712/fdf_21/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nguyenhuyen712/fdf_21/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nguyenhuyen712/fdf_21/git/refs{/sha}","trees_url":"https://api.github.com/repos/nguyenhuyen712/fdf_21/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nguyenhuyen712/fdf_21/statuses/{sha}","languages_url":"https://api.github.com/repos/nguyenhuyen712/fdf_21/languages","stargazers_url":"https://api.github.com/repos/nguyenhuyen712/fdf_21/stargazers","contributors_url":"https://api.github.com/repos/nguyenhuyen712/fdf_21/contributors","subscribers_url":"https://api.github.com/repos/nguyenhuyen712/fdf_21/subscribers","subscription_url":"https://api.github.com/repos/nguyenhuyen712/fdf_21/subscription","commits_url":"https://api.github.com/repos/nguyenhuyen712/fdf_21/commits{/sha}","git_commits_url":"https://api.github.com/repos/nguyenhuyen712/fdf_21/git/commits{/sha}","comments_url":"https://api.github.com/repos/nguyenhuyen712/fdf_21/comments{/number}","issue_comment_url":"https://api.github.com/repos/nguyenhuyen712/fdf_21/issues/comments{/number}","contents_url":"https://api.github.com/repos/nguyenhuyen712/fdf_21/contents/{+path}","compare_url":"https://api.github.com/repos/nguyenhuyen712/fdf_21/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nguyenhuyen712/fdf_21/merges","archive_url":"https://api.github.com/repos/nguyenhuyen712/fdf_21/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nguyenhuyen712/fdf_21/downloads","issues_url":"https://api.github.com/repos/nguyenhuyen712/fdf_21/issues{/number}","pulls_url":"https://api.github.com/repos/nguyenhuyen712/fdf_21/pulls{/number}","milestones_url":"https://api.github.com/repos/nguyenhuyen712/fdf_21/milestones{/number}","notifications_url":"https://api.github.com/repos/nguyenhuyen712/fdf_21/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nguyenhuyen712/fdf_21/labels{/name}","releases_url":"https://api.github.com/repos/nguyenhuyen712/fdf_21/releases{/id}","deployments_url":"https://api.github.com/repos/nguyenhuyen712/fdf_21/deployments","created_at":"2016-10-28T01:10:11Z","updated_at":"2016-10-26T03:45:10Z","pushed_at":"2016-11-03T02:25:35Z","git_url":"git://github.com/nguyenhuyen712/fdf_21.git","ssh_url":"git@github.com:nguyenhuyen712/fdf_21.git","clone_url":"https://github.com/nguyenhuyen712/fdf_21.git","svn_url":"https://github.com/nguyenhuyen712/fdf_21","homepage":null,"size":73,"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":"475b937b0d51d1c0757c2428fb060ef90fdfe2bc","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":71963884,"name":"fdf_21","full_name":"framgia/fdf_21","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/fdf_21","description":"Foods & Drinks (training)","fork":false,"url":"https://api.github.com/repos/framgia/fdf_21","forks_url":"https://api.github.com/repos/framgia/fdf_21/forks","keys_url":"https://api.github.com/repos/framgia/fdf_21/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fdf_21/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fdf_21/teams","hooks_url":"https://api.github.com/repos/framgia/fdf_21/hooks","issue_events_url":"https://api.github.com/repos/framgia/fdf_21/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fdf_21/events","assignees_url":"https://api.github.com/repos/framgia/fdf_21/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fdf_21/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fdf_21/tags","blobs_url":"https://api.github.com/repos/framgia/fdf_21/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fdf_21/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fdf_21/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fdf_21/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fdf_21/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fdf_21/languages","stargazers_url":"https://api.github.com/repos/framgia/fdf_21/stargazers","contributors_url":"https://api.github.com/repos/framgia/fdf_21/contributors","subscribers_url":"https://api.github.com/repos/framgia/fdf_21/subscribers","subscription_url":"https://api.github.com/repos/framgia/fdf_21/subscription","commits_url":"https://api.github.com/repos/framgia/fdf_21/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fdf_21/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fdf_21/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fdf_21/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fdf_21/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fdf_21/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fdf_21/merges","archive_url":"https://api.github.com/repos/framgia/fdf_21/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fdf_21/downloads","issues_url":"https://api.github.com/repos/framgia/fdf_21/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fdf_21/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fdf_21/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fdf_21/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fdf_21/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fdf_21/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/fdf_21/deployments","created_at":"2016-10-26T03:45:10Z","updated_at":"2016-10-26T03:45:10Z","pushed_at":"2016-11-03T02:25:35Z","git_url":"git://github.com/framgia/fdf_21.git","ssh_url":"git@github.com:framgia/fdf_21.git","clone_url":"https://github.com/framgia/fdf_21.git","svn_url":"https://github.com/framgia/fdf_21","homepage":null,"size":70,"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":2,"forks":2,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/fdf_21/pulls/10"},"html":{"href":"https://github.com/framgia/fdf_21/pull/10"},"issue":{"href":"https://api.github.com/repos/framgia/fdf_21/issues/10"},"comments":{"href":"https://api.github.com/repos/framgia/fdf_21/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fdf_21/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fdf_21/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fdf_21/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fdf_21/statuses/db3bf70ae76c43d19da53620e4155d31717ee15c"}}}}
{"actor":{"display_login":"yeunuthongminh"}}