{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fels_148/pulls/comments/121895570","pull_request_review_id":43959527,"id":121895570,"diff_hunk":"@@ -21,6 +21,9 @@ class User < ApplicationRecord\n \n   has_secure_password\n \n+  scope :search, ->search{where \"name LIKE ? OR email LIKE ?\",","path":"app/models/user.rb","position":4,"original_position":4,"commit_id":"3b385e8742b388d7515cc492a1f61a37e2705ff1","original_commit_id":"3b385e8742b388d7515cc492a1f61a37e2705ff1","user":{"login":"huongnguyenmta","id":18224922,"avatar_url":"https://avatars0.githubusercontent.com/u/18224922?v=3","gravatar_id":"","url":"https://api.github.com/users/huongnguyenmta","html_url":"https://github.com/huongnguyenmta","followers_url":"https://api.github.com/users/huongnguyenmta/followers","following_url":"https://api.github.com/users/huongnguyenmta/following{/other_user}","gists_url":"https://api.github.com/users/huongnguyenmta/gists{/gist_id}","starred_url":"https://api.github.com/users/huongnguyenmta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huongnguyenmta/subscriptions","organizations_url":"https://api.github.com/users/huongnguyenmta/orgs","repos_url":"https://api.github.com/users/huongnguyenmta/repos","events_url":"https://api.github.com/users/huongnguyenmta/events{/privacy}","received_events_url":"https://api.github.com/users/huongnguyenmta/received_events","type":"User","site_admin":false},"body":"scope này em cho viết thành block nhé","created_at":"2017-06-14T09:14:46Z","updated_at":"2017-06-14T09:19:07Z","html_url":"https://github.com/framgia/fels_148/pull/10#discussion_r121895570","pull_request_url":"https://api.github.com/repos/framgia/fels_148/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_148/pulls/comments/121895570"},"html":{"href":"https://github.com/framgia/fels_148/pull/10#discussion_r121895570"},"pull_request":{"href":"https://api.github.com/repos/framgia/fels_148/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fels_148/pulls/10","id":125526906,"html_url":"https://github.com/framgia/fels_148/pull/10","diff_url":"https://github.com/framgia/fels_148/pull/10.diff","patch_url":"https://github.com/framgia/fels_148/pull/10.patch","issue_url":"https://api.github.com/repos/framgia/fels_148/issues/10","number":10,"state":"open","locked":false,"title":"[Admin] Manage all list users + search user","user":{"login":"nguyen-thanh-hai","id":25264763,"avatar_url":"https://avatars0.githubusercontent.com/u/25264763?v=3","gravatar_id":"","url":"https://api.github.com/users/nguyen-thanh-hai","html_url":"https://github.com/nguyen-thanh-hai","followers_url":"https://api.github.com/users/nguyen-thanh-hai/followers","following_url":"https://api.github.com/users/nguyen-thanh-hai/following{/other_user}","gists_url":"https://api.github.com/users/nguyen-thanh-hai/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyen-thanh-hai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyen-thanh-hai/subscriptions","organizations_url":"https://api.github.com/users/nguyen-thanh-hai/orgs","repos_url":"https://api.github.com/users/nguyen-thanh-hai/repos","events_url":"https://api.github.com/users/nguyen-thanh-hai/events{/privacy}","received_events_url":"https://api.github.com/users/nguyen-thanh-hai/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-06-14T07:24:16Z","updated_at":"2017-06-14T09:19:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"50a0f67cebfdad13567018c73f8780d7e7ccb894","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fels_148/pulls/10/commits","review_comments_url":"https://api.github.com/repos/framgia/fels_148/pulls/10/comments","review_comment_url":"https://api.github.com/repos/framgia/fels_148/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fels_148/issues/10/comments","statuses_url":"https://api.github.com/repos/framgia/fels_148/statuses/3b385e8742b388d7515cc492a1f61a37e2705ff1","head":{"label":"nguyen-thanh-hai:admin_user_curd","ref":"admin_user_curd","sha":"3b385e8742b388d7515cc492a1f61a37e2705ff1","user":{"login":"nguyen-thanh-hai","id":25264763,"avatar_url":"https://avatars0.githubusercontent.com/u/25264763?v=3","gravatar_id":"","url":"https://api.github.com/users/nguyen-thanh-hai","html_url":"https://github.com/nguyen-thanh-hai","followers_url":"https://api.github.com/users/nguyen-thanh-hai/followers","following_url":"https://api.github.com/users/nguyen-thanh-hai/following{/other_user}","gists_url":"https://api.github.com/users/nguyen-thanh-hai/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyen-thanh-hai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyen-thanh-hai/subscriptions","organizations_url":"https://api.github.com/users/nguyen-thanh-hai/orgs","repos_url":"https://api.github.com/users/nguyen-thanh-hai/repos","events_url":"https://api.github.com/users/nguyen-thanh-hai/events{/privacy}","received_events_url":"https://api.github.com/users/nguyen-thanh-hai/received_events","type":"User","site_admin":false},"repo":{"id":93766551,"name":"fels_148","full_name":"nguyen-thanh-hai/fels_148","owner":{"login":"nguyen-thanh-hai","id":25264763,"avatar_url":"https://avatars0.githubusercontent.com/u/25264763?v=3","gravatar_id":"","url":"https://api.github.com/users/nguyen-thanh-hai","html_url":"https://github.com/nguyen-thanh-hai","followers_url":"https://api.github.com/users/nguyen-thanh-hai/followers","following_url":"https://api.github.com/users/nguyen-thanh-hai/following{/other_user}","gists_url":"https://api.github.com/users/nguyen-thanh-hai/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyen-thanh-hai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyen-thanh-hai/subscriptions","organizations_url":"https://api.github.com/users/nguyen-thanh-hai/orgs","repos_url":"https://api.github.com/users/nguyen-thanh-hai/repos","events_url":"https://api.github.com/users/nguyen-thanh-hai/events{/privacy}","received_events_url":"https://api.github.com/users/nguyen-thanh-hai/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nguyen-thanh-hai/fels_148","description":"E Learning System","fork":true,"url":"https://api.github.com/repos/nguyen-thanh-hai/fels_148","forks_url":"https://api.github.com/repos/nguyen-thanh-hai/fels_148/forks","keys_url":"https://api.github.com/repos/nguyen-thanh-hai/fels_148/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nguyen-thanh-hai/fels_148/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nguyen-thanh-hai/fels_148/teams","hooks_url":"https://api.github.com/repos/nguyen-thanh-hai/fels_148/hooks","issue_events_url":"https://api.github.com/repos/nguyen-thanh-hai/fels_148/issues/events{/number}","events_url":"https://api.github.com/repos/nguyen-thanh-hai/fels_148/events","assignees_url":"https://api.github.com/repos/nguyen-thanh-hai/fels_148/assignees{/user}","branches_url":"https://api.github.com/repos/nguyen-thanh-hai/fels_148/branches{/branch}","tags_url":"https://api.github.com/repos/nguyen-thanh-hai/fels_148/tags","blobs_url":"https://api.github.com/repos/nguyen-thanh-hai/fels_148/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nguyen-thanh-hai/fels_148/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nguyen-thanh-hai/fels_148/git/refs{/sha}","trees_url":"https://api.github.com/repos/nguyen-thanh-hai/fels_148/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nguyen-thanh-hai/fels_148/statuses/{sha}","languages_url":"https://api.github.com/repos/nguyen-thanh-hai/fels_148/languages","stargazers_url":"https://api.github.com/repos/nguyen-thanh-hai/fels_148/stargazers","contributors_url":"https://api.github.com/repos/nguyen-thanh-hai/fels_148/contributors","subscribers_url":"https://api.github.com/repos/nguyen-thanh-hai/fels_148/subscribers","subscription_url":"https://api.github.com/repos/nguyen-thanh-hai/fels_148/subscription","commits_url":"https://api.github.com/repos/nguyen-thanh-hai/fels_148/commits{/sha}","git_commits_url":"https://api.github.com/repos/nguyen-thanh-hai/fels_148/git/commits{/sha}","comments_url":"https://api.github.com/repos/nguyen-thanh-hai/fels_148/comments{/number}","issue_comment_url":"https://api.github.com/repos/nguyen-thanh-hai/fels_148/issues/comments{/number}","contents_url":"https://api.github.com/repos/nguyen-thanh-hai/fels_148/contents/{+path}","compare_url":"https://api.github.com/repos/nguyen-thanh-hai/fels_148/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nguyen-thanh-hai/fels_148/merges","archive_url":"https://api.github.com/repos/nguyen-thanh-hai/fels_148/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nguyen-thanh-hai/fels_148/downloads","issues_url":"https://api.github.com/repos/nguyen-thanh-hai/fels_148/issues{/number}","pulls_url":"https://api.github.com/repos/nguyen-thanh-hai/fels_148/pulls{/number}","milestones_url":"https://api.github.com/repos/nguyen-thanh-hai/fels_148/milestones{/number}","notifications_url":"https://api.github.com/repos/nguyen-thanh-hai/fels_148/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nguyen-thanh-hai/fels_148/labels{/name}","releases_url":"https://api.github.com/repos/nguyen-thanh-hai/fels_148/releases{/id}","deployments_url":"https://api.github.com/repos/nguyen-thanh-hai/fels_148/deployments","created_at":"2017-06-08T15:44:47Z","updated_at":"2017-06-06T11:01:41Z","pushed_at":"2017-06-14T08:08:27Z","git_url":"git://github.com/nguyen-thanh-hai/fels_148.git","ssh_url":"git@github.com:nguyen-thanh-hai/fels_148.git","clone_url":"https://github.com/nguyen-thanh-hai/fels_148.git","svn_url":"https://github.com/nguyen-thanh-hai/fels_148","homepage":null,"size":141,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"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":"cfcbc269aeb9e784a6eb958f4b0741bbacbb6ca3","user":{"login":"framgia","id":2322183,"avatar_url":"https://avatars0.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":93499849,"name":"fels_148","full_name":"framgia/fels_148","owner":{"login":"framgia","id":2322183,"avatar_url":"https://avatars0.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_148","description":"E Learning System","fork":false,"url":"https://api.github.com/repos/framgia/fels_148","forks_url":"https://api.github.com/repos/framgia/fels_148/forks","keys_url":"https://api.github.com/repos/framgia/fels_148/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fels_148/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fels_148/teams","hooks_url":"https://api.github.com/repos/framgia/fels_148/hooks","issue_events_url":"https://api.github.com/repos/framgia/fels_148/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fels_148/events","assignees_url":"https://api.github.com/repos/framgia/fels_148/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fels_148/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fels_148/tags","blobs_url":"https://api.github.com/repos/framgia/fels_148/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fels_148/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fels_148/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fels_148/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fels_148/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fels_148/languages","stargazers_url":"https://api.github.com/repos/framgia/fels_148/stargazers","contributors_url":"https://api.github.com/repos/framgia/fels_148/contributors","subscribers_url":"https://api.github.com/repos/framgia/fels_148/subscribers","subscription_url":"https://api.github.com/repos/framgia/fels_148/subscription","commits_url":"https://api.github.com/repos/framgia/fels_148/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fels_148/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fels_148/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fels_148/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fels_148/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fels_148/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fels_148/merges","archive_url":"https://api.github.com/repos/framgia/fels_148/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fels_148/downloads","issues_url":"https://api.github.com/repos/framgia/fels_148/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fels_148/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fels_148/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fels_148/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fels_148/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fels_148/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/fels_148/deployments","created_at":"2017-06-06T09:20:14Z","updated_at":"2017-06-06T11:01:41Z","pushed_at":"2017-06-14T08:08:29Z","git_url":"git://github.com/framgia/fels_148.git","ssh_url":"git@github.com:framgia/fels_148.git","clone_url":"https://github.com/framgia/fels_148.git","svn_url":"https://github.com/framgia/fels_148","homepage":null,"size":96,"stargazers_count":1,"watchers_count":1,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_148/pulls/10"},"html":{"href":"https://github.com/framgia/fels_148/pull/10"},"issue":{"href":"https://api.github.com/repos/framgia/fels_148/issues/10"},"comments":{"href":"https://api.github.com/repos/framgia/fels_148/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fels_148/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fels_148/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fels_148/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fels_148/statuses/3b385e8742b388d7515cc492a1f61a37e2705ff1"}}}}
{"actor":{"display_login":"huongnguyenmta"}}