{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/manager_library_02/pulls/comments/102139983","pull_request_review_id":22885373,"id":102139983,"diff_hunk":"@@ -3,6 +3,7 @@ class Publisher < ApplicationRecord\n   has_many :authors\n \n   scope :sort_by_create_at, -> {order created_at: :desc}\n+  scope :search_by_name, -> search{where \"name LIKE ?\", \"%#{search}%\"}","path":"lib_manager/app/models/publisher.rb","position":4,"original_position":4,"commit_id":"a2f97471b2384635e83a762c30b731feb01365e4","original_commit_id":"a2f97471b2384635e83a762c30b731feb01365e4","user":{"login":"dat-hedspi","id":14577773,"avatar_url":"https://avatars.githubusercontent.com/u/14577773?v=3","gravatar_id":"","url":"https://api.github.com/users/dat-hedspi","html_url":"https://github.com/dat-hedspi","followers_url":"https://api.github.com/users/dat-hedspi/followers","following_url":"https://api.github.com/users/dat-hedspi/following{/other_user}","gists_url":"https://api.github.com/users/dat-hedspi/gists{/gist_id}","starred_url":"https://api.github.com/users/dat-hedspi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dat-hedspi/subscriptions","organizations_url":"https://api.github.com/users/dat-hedspi/orgs","repos_url":"https://api.github.com/users/dat-hedspi/repos","events_url":"https://api.github.com/users/dat-hedspi/events{/privacy}","received_events_url":"https://api.github.com/users/dat-hedspi/received_events","type":"User","site_admin":false},"body":"indent 1 space trước {","created_at":"2017-02-21T06:36:38Z","updated_at":"2017-02-21T06:37:01Z","html_url":"https://github.com/framgia/manager_library_02/pull/30#discussion_r102139983","pull_request_url":"https://api.github.com/repos/framgia/manager_library_02/pulls/30","_links":{"self":{"href":"https://api.github.com/repos/framgia/manager_library_02/pulls/comments/102139983"},"html":{"href":"https://github.com/framgia/manager_library_02/pull/30#discussion_r102139983"},"pull_request":{"href":"https://api.github.com/repos/framgia/manager_library_02/pulls/30"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/manager_library_02/pulls/30","id":107124242,"html_url":"https://github.com/framgia/manager_library_02/pull/30","diff_url":"https://github.com/framgia/manager_library_02/pull/30.diff","patch_url":"https://github.com/framgia/manager_library_02/pull/30.patch","issue_url":"https://api.github.com/repos/framgia/manager_library_02/issues/30","number":30,"state":"open","locked":false,"title":"Search/Add relationship","user":{"login":"dungvuit","id":24772575,"avatar_url":"https://avatars.githubusercontent.com/u/24772575?v=3","gravatar_id":"","url":"https://api.github.com/users/dungvuit","html_url":"https://github.com/dungvuit","followers_url":"https://api.github.com/users/dungvuit/followers","following_url":"https://api.github.com/users/dungvuit/following{/other_user}","gists_url":"https://api.github.com/users/dungvuit/gists{/gist_id}","starred_url":"https://api.github.com/users/dungvuit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dungvuit/subscriptions","organizations_url":"https://api.github.com/users/dungvuit/orgs","repos_url":"https://api.github.com/users/dungvuit/repos","events_url":"https://api.github.com/users/dungvuit/events{/privacy}","received_events_url":"https://api.github.com/users/dungvuit/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-02-21T06:28:09Z","updated_at":"2017-02-21T06:37:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"38f1c191b45c4d0b41e431f03fe797192310e2de","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/manager_library_02/pulls/30/commits","review_comments_url":"https://api.github.com/repos/framgia/manager_library_02/pulls/30/comments","review_comment_url":"https://api.github.com/repos/framgia/manager_library_02/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/manager_library_02/issues/30/comments","statuses_url":"https://api.github.com/repos/framgia/manager_library_02/statuses/a2f97471b2384635e83a762c30b731feb01365e4","head":{"label":"dungvuit:search-publisher","ref":"search-publisher","sha":"a2f97471b2384635e83a762c30b731feb01365e4","user":{"login":"dungvuit","id":24772575,"avatar_url":"https://avatars.githubusercontent.com/u/24772575?v=3","gravatar_id":"","url":"https://api.github.com/users/dungvuit","html_url":"https://github.com/dungvuit","followers_url":"https://api.github.com/users/dungvuit/followers","following_url":"https://api.github.com/users/dungvuit/following{/other_user}","gists_url":"https://api.github.com/users/dungvuit/gists{/gist_id}","starred_url":"https://api.github.com/users/dungvuit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dungvuit/subscriptions","organizations_url":"https://api.github.com/users/dungvuit/orgs","repos_url":"https://api.github.com/users/dungvuit/repos","events_url":"https://api.github.com/users/dungvuit/events{/privacy}","received_events_url":"https://api.github.com/users/dungvuit/received_events","type":"User","site_admin":false},"repo":{"id":81304511,"name":"manager_library_02","full_name":"dungvuit/manager_library_02","owner":{"login":"dungvuit","id":24772575,"avatar_url":"https://avatars.githubusercontent.com/u/24772575?v=3","gravatar_id":"","url":"https://api.github.com/users/dungvuit","html_url":"https://github.com/dungvuit","followers_url":"https://api.github.com/users/dungvuit/followers","following_url":"https://api.github.com/users/dungvuit/following{/other_user}","gists_url":"https://api.github.com/users/dungvuit/gists{/gist_id}","starred_url":"https://api.github.com/users/dungvuit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dungvuit/subscriptions","organizations_url":"https://api.github.com/users/dungvuit/orgs","repos_url":"https://api.github.com/users/dungvuit/repos","events_url":"https://api.github.com/users/dungvuit/events{/privacy}","received_events_url":"https://api.github.com/users/dungvuit/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dungvuit/manager_library_02","description":"Manager library","fork":true,"url":"https://api.github.com/repos/dungvuit/manager_library_02","forks_url":"https://api.github.com/repos/dungvuit/manager_library_02/forks","keys_url":"https://api.github.com/repos/dungvuit/manager_library_02/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dungvuit/manager_library_02/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dungvuit/manager_library_02/teams","hooks_url":"https://api.github.com/repos/dungvuit/manager_library_02/hooks","issue_events_url":"https://api.github.com/repos/dungvuit/manager_library_02/issues/events{/number}","events_url":"https://api.github.com/repos/dungvuit/manager_library_02/events","assignees_url":"https://api.github.com/repos/dungvuit/manager_library_02/assignees{/user}","branches_url":"https://api.github.com/repos/dungvuit/manager_library_02/branches{/branch}","tags_url":"https://api.github.com/repos/dungvuit/manager_library_02/tags","blobs_url":"https://api.github.com/repos/dungvuit/manager_library_02/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dungvuit/manager_library_02/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dungvuit/manager_library_02/git/refs{/sha}","trees_url":"https://api.github.com/repos/dungvuit/manager_library_02/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dungvuit/manager_library_02/statuses/{sha}","languages_url":"https://api.github.com/repos/dungvuit/manager_library_02/languages","stargazers_url":"https://api.github.com/repos/dungvuit/manager_library_02/stargazers","contributors_url":"https://api.github.com/repos/dungvuit/manager_library_02/contributors","subscribers_url":"https://api.github.com/repos/dungvuit/manager_library_02/subscribers","subscription_url":"https://api.github.com/repos/dungvuit/manager_library_02/subscription","commits_url":"https://api.github.com/repos/dungvuit/manager_library_02/commits{/sha}","git_commits_url":"https://api.github.com/repos/dungvuit/manager_library_02/git/commits{/sha}","comments_url":"https://api.github.com/repos/dungvuit/manager_library_02/comments{/number}","issue_comment_url":"https://api.github.com/repos/dungvuit/manager_library_02/issues/comments{/number}","contents_url":"https://api.github.com/repos/dungvuit/manager_library_02/contents/{+path}","compare_url":"https://api.github.com/repos/dungvuit/manager_library_02/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dungvuit/manager_library_02/merges","archive_url":"https://api.github.com/repos/dungvuit/manager_library_02/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dungvuit/manager_library_02/downloads","issues_url":"https://api.github.com/repos/dungvuit/manager_library_02/issues{/number}","pulls_url":"https://api.github.com/repos/dungvuit/manager_library_02/pulls{/number}","milestones_url":"https://api.github.com/repos/dungvuit/manager_library_02/milestones{/number}","notifications_url":"https://api.github.com/repos/dungvuit/manager_library_02/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dungvuit/manager_library_02/labels{/name}","releases_url":"https://api.github.com/repos/dungvuit/manager_library_02/releases{/id}","deployments_url":"https://api.github.com/repos/dungvuit/manager_library_02/deployments","created_at":"2017-02-08T08:11:10Z","updated_at":"2017-02-06T01:45:35Z","pushed_at":"2017-02-21T06:26:44Z","git_url":"git://github.com/dungvuit/manager_library_02.git","ssh_url":"git@github.com:dungvuit/manager_library_02.git","clone_url":"https://github.com/dungvuit/manager_library_02.git","svn_url":"https://github.com/dungvuit/manager_library_02","homepage":null,"size":155,"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":"9e75f5c2515b64d8f9caa6ab787ad03692b75ab4","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":81036859,"name":"manager_library_02","full_name":"framgia/manager_library_02","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/manager_library_02","description":"Manager library","fork":false,"url":"https://api.github.com/repos/framgia/manager_library_02","forks_url":"https://api.github.com/repos/framgia/manager_library_02/forks","keys_url":"https://api.github.com/repos/framgia/manager_library_02/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/manager_library_02/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/manager_library_02/teams","hooks_url":"https://api.github.com/repos/framgia/manager_library_02/hooks","issue_events_url":"https://api.github.com/repos/framgia/manager_library_02/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/manager_library_02/events","assignees_url":"https://api.github.com/repos/framgia/manager_library_02/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/manager_library_02/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/manager_library_02/tags","blobs_url":"https://api.github.com/repos/framgia/manager_library_02/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/manager_library_02/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/manager_library_02/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/manager_library_02/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/manager_library_02/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/manager_library_02/languages","stargazers_url":"https://api.github.com/repos/framgia/manager_library_02/stargazers","contributors_url":"https://api.github.com/repos/framgia/manager_library_02/contributors","subscribers_url":"https://api.github.com/repos/framgia/manager_library_02/subscribers","subscription_url":"https://api.github.com/repos/framgia/manager_library_02/subscription","commits_url":"https://api.github.com/repos/framgia/manager_library_02/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/manager_library_02/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/manager_library_02/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/manager_library_02/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/manager_library_02/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/manager_library_02/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/manager_library_02/merges","archive_url":"https://api.github.com/repos/framgia/manager_library_02/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/manager_library_02/downloads","issues_url":"https://api.github.com/repos/framgia/manager_library_02/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/manager_library_02/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/manager_library_02/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/manager_library_02/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/manager_library_02/labels{/name}","releases_url":"https://api.github.com/repos/framgia/manager_library_02/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/manager_library_02/deployments","created_at":"2017-02-06T01:45:35Z","updated_at":"2017-02-06T01:45:35Z","pushed_at":"2017-02-21T06:28:09Z","git_url":"git://github.com/framgia/manager_library_02.git","ssh_url":"git@github.com:framgia/manager_library_02.git","clone_url":"https://github.com/framgia/manager_library_02.git","svn_url":"https://github.com/framgia/manager_library_02","homepage":null,"size":159,"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/manager_library_02/pulls/30"},"html":{"href":"https://github.com/framgia/manager_library_02/pull/30"},"issue":{"href":"https://api.github.com/repos/framgia/manager_library_02/issues/30"},"comments":{"href":"https://api.github.com/repos/framgia/manager_library_02/issues/30/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/manager_library_02/pulls/30/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/manager_library_02/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/manager_library_02/pulls/30/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/manager_library_02/statuses/a2f97471b2384635e83a762c30b731feb01365e4"}}}}
{"actor":{"display_login":"dat-hedspi"}}