{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/restaurant_management_08/pulls/comments/202910634","pull_request_review_id":137694835,"id":202910634,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMjkxMDYzNA==","diff_hunk":"@@ -19,6 +19,16 @@ def load_category\n     end\n   end\n \n+  def load_dishes\n+    search = params[:search].delete(\"\\t\\r\\n\").strip\n+    unless search.nil?","path":"app/controllers/static_pages_controller.rb","position":6,"original_position":6,"commit_id":"679d17b247a7cda114ffa7e64dc05e4b0aa22a79","original_commit_id":"679d17b247a7cda114ffa7e64dc05e4b0aa22a79","user":{"login":"hungnh103","id":22311747,"node_id":"MDQ6VXNlcjIyMzExNzQ3","avatar_url":"https://avatars0.githubusercontent.com/u/22311747?v=4","gravatar_id":"","url":"https://api.github.com/users/hungnh103","html_url":"https://github.com/hungnh103","followers_url":"https://api.github.com/users/hungnh103/followers","following_url":"https://api.github.com/users/hungnh103/following{/other_user}","gists_url":"https://api.github.com/users/hungnh103/gists{/gist_id}","starred_url":"https://api.github.com/users/hungnh103/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hungnh103/subscriptions","organizations_url":"https://api.github.com/users/hungnh103/orgs","repos_url":"https://api.github.com/users/hungnh103/repos","events_url":"https://api.github.com/users/hungnh103/events{/privacy}","received_events_url":"https://api.github.com/users/hungnh103/received_events","type":"User","site_admin":false},"body":"sao ko viết cho ngắn gọn và dễ hiểu hơn như này hở em (huhu)\r\n```ruby\r\n@search_dishes = Dish.search_by_name(search) if search.present?\r\n```","created_at":"2018-07-17T06:53:48Z","updated_at":"2018-07-17T07:03:33Z","html_url":"https://github.com/framgia/restaurant_management_08/pull/32#discussion_r202910634","pull_request_url":"https://api.github.com/repos/framgia/restaurant_management_08/pulls/32","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/framgia/restaurant_management_08/pulls/comments/202910634"},"html":{"href":"https://github.com/framgia/restaurant_management_08/pull/32#discussion_r202910634"},"pull_request":{"href":"https://api.github.com/repos/framgia/restaurant_management_08/pulls/32"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/restaurant_management_08/pulls/32","id":201811747,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAxODExNzQ3","html_url":"https://github.com/framgia/restaurant_management_08/pull/32","diff_url":"https://github.com/framgia/restaurant_management_08/pull/32.diff","patch_url":"https://github.com/framgia/restaurant_management_08/pull/32.patch","issue_url":"https://api.github.com/repos/framgia/restaurant_management_08/issues/32","number":32,"state":"open","locked":false,"title":"User search dishes","user":{"login":"nguyenxuanhungfr","id":38747532,"node_id":"MDQ6VXNlcjM4NzQ3NTMy","avatar_url":"https://avatars0.githubusercontent.com/u/38747532?v=4","gravatar_id":"","url":"https://api.github.com/users/nguyenxuanhungfr","html_url":"https://github.com/nguyenxuanhungfr","followers_url":"https://api.github.com/users/nguyenxuanhungfr/followers","following_url":"https://api.github.com/users/nguyenxuanhungfr/following{/other_user}","gists_url":"https://api.github.com/users/nguyenxuanhungfr/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenxuanhungfr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenxuanhungfr/subscriptions","organizations_url":"https://api.github.com/users/nguyenxuanhungfr/orgs","repos_url":"https://api.github.com/users/nguyenxuanhungfr/repos","events_url":"https://api.github.com/users/nguyenxuanhungfr/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenxuanhungfr/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-07-17T02:59:06Z","updated_at":"2018-07-17T07:03:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0258cb4712f9071488f962ad1fbe312289f96393","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/restaurant_management_08/pulls/32/commits","review_comments_url":"https://api.github.com/repos/framgia/restaurant_management_08/pulls/32/comments","review_comment_url":"https://api.github.com/repos/framgia/restaurant_management_08/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/restaurant_management_08/issues/32/comments","statuses_url":"https://api.github.com/repos/framgia/restaurant_management_08/statuses/679d17b247a7cda114ffa7e64dc05e4b0aa22a79","head":{"label":"nguyenxuanhungfr:user_search_dishes","ref":"user_search_dishes","sha":"679d17b247a7cda114ffa7e64dc05e4b0aa22a79","user":{"login":"nguyenxuanhungfr","id":38747532,"node_id":"MDQ6VXNlcjM4NzQ3NTMy","avatar_url":"https://avatars0.githubusercontent.com/u/38747532?v=4","gravatar_id":"","url":"https://api.github.com/users/nguyenxuanhungfr","html_url":"https://github.com/nguyenxuanhungfr","followers_url":"https://api.github.com/users/nguyenxuanhungfr/followers","following_url":"https://api.github.com/users/nguyenxuanhungfr/following{/other_user}","gists_url":"https://api.github.com/users/nguyenxuanhungfr/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenxuanhungfr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenxuanhungfr/subscriptions","organizations_url":"https://api.github.com/users/nguyenxuanhungfr/orgs","repos_url":"https://api.github.com/users/nguyenxuanhungfr/repos","events_url":"https://api.github.com/users/nguyenxuanhungfr/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenxuanhungfr/received_events","type":"User","site_admin":false},"repo":{"id":139525926,"node_id":"MDEwOlJlcG9zaXRvcnkxMzk1MjU5MjY=","name":"restaurant_management_08","full_name":"nguyenxuanhungfr/restaurant_management_08","owner":{"login":"nguyenxuanhungfr","id":38747532,"node_id":"MDQ6VXNlcjM4NzQ3NTMy","avatar_url":"https://avatars0.githubusercontent.com/u/38747532?v=4","gravatar_id":"","url":"https://api.github.com/users/nguyenxuanhungfr","html_url":"https://github.com/nguyenxuanhungfr","followers_url":"https://api.github.com/users/nguyenxuanhungfr/followers","following_url":"https://api.github.com/users/nguyenxuanhungfr/following{/other_user}","gists_url":"https://api.github.com/users/nguyenxuanhungfr/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenxuanhungfr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenxuanhungfr/subscriptions","organizations_url":"https://api.github.com/users/nguyenxuanhungfr/orgs","repos_url":"https://api.github.com/users/nguyenxuanhungfr/repos","events_url":"https://api.github.com/users/nguyenxuanhungfr/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenxuanhungfr/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nguyenxuanhungfr/restaurant_management_08","description":null,"fork":true,"url":"https://api.github.com/repos/nguyenxuanhungfr/restaurant_management_08","forks_url":"https://api.github.com/repos/nguyenxuanhungfr/restaurant_management_08/forks","keys_url":"https://api.github.com/repos/nguyenxuanhungfr/restaurant_management_08/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nguyenxuanhungfr/restaurant_management_08/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nguyenxuanhungfr/restaurant_management_08/teams","hooks_url":"https://api.github.com/repos/nguyenxuanhungfr/restaurant_management_08/hooks","issue_events_url":"https://api.github.com/repos/nguyenxuanhungfr/restaurant_management_08/issues/events{/number}","events_url":"https://api.github.com/repos/nguyenxuanhungfr/restaurant_management_08/events","assignees_url":"https://api.github.com/repos/nguyenxuanhungfr/restaurant_management_08/assignees{/user}","branches_url":"https://api.github.com/repos/nguyenxuanhungfr/restaurant_management_08/branches{/branch}","tags_url":"https://api.github.com/repos/nguyenxuanhungfr/restaurant_management_08/tags","blobs_url":"https://api.github.com/repos/nguyenxuanhungfr/restaurant_management_08/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nguyenxuanhungfr/restaurant_management_08/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nguyenxuanhungfr/restaurant_management_08/git/refs{/sha}","trees_url":"https://api.github.com/repos/nguyenxuanhungfr/restaurant_management_08/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nguyenxuanhungfr/restaurant_management_08/statuses/{sha}","languages_url":"https://api.github.com/repos/nguyenxuanhungfr/restaurant_management_08/languages","stargazers_url":"https://api.github.com/repos/nguyenxuanhungfr/restaurant_management_08/stargazers","contributors_url":"https://api.github.com/repos/nguyenxuanhungfr/restaurant_management_08/contributors","subscribers_url":"https://api.github.com/repos/nguyenxuanhungfr/restaurant_management_08/subscribers","subscription_url":"https://api.github.com/repos/nguyenxuanhungfr/restaurant_management_08/subscription","commits_url":"https://api.github.com/repos/nguyenxuanhungfr/restaurant_management_08/commits{/sha}","git_commits_url":"https://api.github.com/repos/nguyenxuanhungfr/restaurant_management_08/git/commits{/sha}","comments_url":"https://api.github.com/repos/nguyenxuanhungfr/restaurant_management_08/comments{/number}","issue_comment_url":"https://api.github.com/repos/nguyenxuanhungfr/restaurant_management_08/issues/comments{/number}","contents_url":"https://api.github.com/repos/nguyenxuanhungfr/restaurant_management_08/contents/{+path}","compare_url":"https://api.github.com/repos/nguyenxuanhungfr/restaurant_management_08/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nguyenxuanhungfr/restaurant_management_08/merges","archive_url":"https://api.github.com/repos/nguyenxuanhungfr/restaurant_management_08/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nguyenxuanhungfr/restaurant_management_08/downloads","issues_url":"https://api.github.com/repos/nguyenxuanhungfr/restaurant_management_08/issues{/number}","pulls_url":"https://api.github.com/repos/nguyenxuanhungfr/restaurant_management_08/pulls{/number}","milestones_url":"https://api.github.com/repos/nguyenxuanhungfr/restaurant_management_08/milestones{/number}","notifications_url":"https://api.github.com/repos/nguyenxuanhungfr/restaurant_management_08/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nguyenxuanhungfr/restaurant_management_08/labels{/name}","releases_url":"https://api.github.com/repos/nguyenxuanhungfr/restaurant_management_08/releases{/id}","deployments_url":"https://api.github.com/repos/nguyenxuanhungfr/restaurant_management_08/deployments","created_at":"2018-07-03T03:51:03Z","updated_at":"2018-07-03T03:51:05Z","pushed_at":"2018-07-17T06:28:44Z","git_url":"git://github.com/nguyenxuanhungfr/restaurant_management_08.git","ssh_url":"git@github.com:nguyenxuanhungfr/restaurant_management_08.git","clone_url":"https://github.com/nguyenxuanhungfr/restaurant_management_08.git","svn_url":"https://github.com/nguyenxuanhungfr/restaurant_management_08","homepage":null,"size":45771,"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,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"framgia:master","ref":"master","sha":"b9faaf741e3853cee1a407964a51100a4e45cdfc","user":{"login":"framgia","id":2322183,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMjIxODM=","avatar_url":"https://avatars3.githubusercontent.com/u/2322183?v=4","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":139514738,"node_id":"MDEwOlJlcG9zaXRvcnkxMzk1MTQ3Mzg=","name":"restaurant_management_08","full_name":"framgia/restaurant_management_08","owner":{"login":"framgia","id":2322183,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMjIxODM=","avatar_url":"https://avatars3.githubusercontent.com/u/2322183?v=4","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/restaurant_management_08","description":null,"fork":false,"url":"https://api.github.com/repos/framgia/restaurant_management_08","forks_url":"https://api.github.com/repos/framgia/restaurant_management_08/forks","keys_url":"https://api.github.com/repos/framgia/restaurant_management_08/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/restaurant_management_08/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/restaurant_management_08/teams","hooks_url":"https://api.github.com/repos/framgia/restaurant_management_08/hooks","issue_events_url":"https://api.github.com/repos/framgia/restaurant_management_08/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/restaurant_management_08/events","assignees_url":"https://api.github.com/repos/framgia/restaurant_management_08/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/restaurant_management_08/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/restaurant_management_08/tags","blobs_url":"https://api.github.com/repos/framgia/restaurant_management_08/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/restaurant_management_08/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/restaurant_management_08/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/restaurant_management_08/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/restaurant_management_08/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/restaurant_management_08/languages","stargazers_url":"https://api.github.com/repos/framgia/restaurant_management_08/stargazers","contributors_url":"https://api.github.com/repos/framgia/restaurant_management_08/contributors","subscribers_url":"https://api.github.com/repos/framgia/restaurant_management_08/subscribers","subscription_url":"https://api.github.com/repos/framgia/restaurant_management_08/subscription","commits_url":"https://api.github.com/repos/framgia/restaurant_management_08/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/restaurant_management_08/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/restaurant_management_08/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/restaurant_management_08/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/restaurant_management_08/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/restaurant_management_08/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/restaurant_management_08/merges","archive_url":"https://api.github.com/repos/framgia/restaurant_management_08/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/restaurant_management_08/downloads","issues_url":"https://api.github.com/repos/framgia/restaurant_management_08/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/restaurant_management_08/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/restaurant_management_08/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/restaurant_management_08/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/restaurant_management_08/labels{/name}","releases_url":"https://api.github.com/repos/framgia/restaurant_management_08/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/restaurant_management_08/deployments","created_at":"2018-07-03T01:52:46Z","updated_at":"2018-07-17T03:34:05Z","pushed_at":"2018-07-17T06:28:45Z","git_url":"git://github.com/framgia/restaurant_management_08.git","ssh_url":"git@github.com:framgia/restaurant_management_08.git","clone_url":"https://github.com/framgia/restaurant_management_08.git","svn_url":"https://github.com/framgia/restaurant_management_08","homepage":null,"size":45518,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":4,"license":null,"forks":2,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/restaurant_management_08/pulls/32"},"html":{"href":"https://github.com/framgia/restaurant_management_08/pull/32"},"issue":{"href":"https://api.github.com/repos/framgia/restaurant_management_08/issues/32"},"comments":{"href":"https://api.github.com/repos/framgia/restaurant_management_08/issues/32/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/restaurant_management_08/pulls/32/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/restaurant_management_08/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/restaurant_management_08/pulls/32/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/restaurant_management_08/statuses/679d17b247a7cda114ffa7e64dc05e4b0aa22a79"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"hungnh103"}}