{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/brs_9/pulls/comments/26822020","id":26822020,"diff_hunk":"@@ -4,4 +4,5 @@ class Review < ActiveRecord::Base\n   has_many :comments\n   \n   validates :content, :rate, presence: true\n+  scope :load_review_of_user, ->(user, book){where user: user, book: book}","path":"app/models/review.rb","position":4,"original_position":4,"commit_id":"da68a9cfabadd6c1db5ca63e9bffca446d41e727","original_commit_id":"da68a9cfabadd6c1db5ca63e9bffca446d41e727","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":"add new white line above this scope","created_at":"2015-03-20T07:06:51Z","updated_at":"2015-03-20T07:06:51Z","html_url":"https://github.com/framgia/brs_9/pull/12#discussion_r26822020","pull_request_url":"https://api.github.com/repos/framgia/brs_9/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/framgia/brs_9/pulls/comments/26822020"},"html":{"href":"https://github.com/framgia/brs_9/pull/12#discussion_r26822020"},"pull_request":{"href":"https://api.github.com/repos/framgia/brs_9/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/brs_9/pulls/12","id":31588090,"html_url":"https://github.com/framgia/brs_9/pull/12","diff_url":"https://github.com/framgia/brs_9/pull/12.diff","patch_url":"https://github.com/framgia/brs_9/pull/12.patch","issue_url":"https://api.github.com/repos/framgia/brs_9/issues/12","number":12,"state":"open","locked":false,"title":"create show book, create review and comments","user":{"login":"HungSonSN","id":10495436,"avatar_url":"https://avatars.githubusercontent.com/u/10495436?v=3","gravatar_id":"","url":"https://api.github.com/users/HungSonSN","html_url":"https://github.com/HungSonSN","followers_url":"https://api.github.com/users/HungSonSN/followers","following_url":"https://api.github.com/users/HungSonSN/following{/other_user}","gists_url":"https://api.github.com/users/HungSonSN/gists{/gist_id}","starred_url":"https://api.github.com/users/HungSonSN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HungSonSN/subscriptions","organizations_url":"https://api.github.com/users/HungSonSN/orgs","repos_url":"https://api.github.com/users/HungSonSN/repos","events_url":"https://api.github.com/users/HungSonSN/events{/privacy}","received_events_url":"https://api.github.com/users/HungSonSN/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-03-20T04:45:19Z","updated_at":"2015-03-20T07:06:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"35b227c81113ffba4645eb3f58ce8728f08fb3a1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/framgia/brs_9/pulls/12/commits","review_comments_url":"https://api.github.com/repos/framgia/brs_9/pulls/12/comments","review_comment_url":"https://api.github.com/repos/framgia/brs_9/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/brs_9/issues/12/comments","statuses_url":"https://api.github.com/repos/framgia/brs_9/statuses/da68a9cfabadd6c1db5ca63e9bffca446d41e727","head":{"label":"HungSonSN:create_show_book_and_review_comment","ref":"create_show_book_and_review_comment","sha":"da68a9cfabadd6c1db5ca63e9bffca446d41e727","user":{"login":"HungSonSN","id":10495436,"avatar_url":"https://avatars.githubusercontent.com/u/10495436?v=3","gravatar_id":"","url":"https://api.github.com/users/HungSonSN","html_url":"https://github.com/HungSonSN","followers_url":"https://api.github.com/users/HungSonSN/followers","following_url":"https://api.github.com/users/HungSonSN/following{/other_user}","gists_url":"https://api.github.com/users/HungSonSN/gists{/gist_id}","starred_url":"https://api.github.com/users/HungSonSN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HungSonSN/subscriptions","organizations_url":"https://api.github.com/users/HungSonSN/orgs","repos_url":"https://api.github.com/users/HungSonSN/repos","events_url":"https://api.github.com/users/HungSonSN/events{/privacy}","received_events_url":"https://api.github.com/users/HungSonSN/received_events","type":"User","site_admin":false},"repo":{"id":32453738,"name":"brs_9","full_name":"HungSonSN/brs_9","owner":{"login":"HungSonSN","id":10495436,"avatar_url":"https://avatars.githubusercontent.com/u/10495436?v=3","gravatar_id":"","url":"https://api.github.com/users/HungSonSN","html_url":"https://github.com/HungSonSN","followers_url":"https://api.github.com/users/HungSonSN/followers","following_url":"https://api.github.com/users/HungSonSN/following{/other_user}","gists_url":"https://api.github.com/users/HungSonSN/gists{/gist_id}","starred_url":"https://api.github.com/users/HungSonSN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HungSonSN/subscriptions","organizations_url":"https://api.github.com/users/HungSonSN/orgs","repos_url":"https://api.github.com/users/HungSonSN/repos","events_url":"https://api.github.com/users/HungSonSN/events{/privacy}","received_events_url":"https://api.github.com/users/HungSonSN/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/HungSonSN/brs_9","description":"Book Reviewing System (training)","fork":true,"url":"https://api.github.com/repos/HungSonSN/brs_9","forks_url":"https://api.github.com/repos/HungSonSN/brs_9/forks","keys_url":"https://api.github.com/repos/HungSonSN/brs_9/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HungSonSN/brs_9/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HungSonSN/brs_9/teams","hooks_url":"https://api.github.com/repos/HungSonSN/brs_9/hooks","issue_events_url":"https://api.github.com/repos/HungSonSN/brs_9/issues/events{/number}","events_url":"https://api.github.com/repos/HungSonSN/brs_9/events","assignees_url":"https://api.github.com/repos/HungSonSN/brs_9/assignees{/user}","branches_url":"https://api.github.com/repos/HungSonSN/brs_9/branches{/branch}","tags_url":"https://api.github.com/repos/HungSonSN/brs_9/tags","blobs_url":"https://api.github.com/repos/HungSonSN/brs_9/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HungSonSN/brs_9/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HungSonSN/brs_9/git/refs{/sha}","trees_url":"https://api.github.com/repos/HungSonSN/brs_9/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HungSonSN/brs_9/statuses/{sha}","languages_url":"https://api.github.com/repos/HungSonSN/brs_9/languages","stargazers_url":"https://api.github.com/repos/HungSonSN/brs_9/stargazers","contributors_url":"https://api.github.com/repos/HungSonSN/brs_9/contributors","subscribers_url":"https://api.github.com/repos/HungSonSN/brs_9/subscribers","subscription_url":"https://api.github.com/repos/HungSonSN/brs_9/subscription","commits_url":"https://api.github.com/repos/HungSonSN/brs_9/commits{/sha}","git_commits_url":"https://api.github.com/repos/HungSonSN/brs_9/git/commits{/sha}","comments_url":"https://api.github.com/repos/HungSonSN/brs_9/comments{/number}","issue_comment_url":"https://api.github.com/repos/HungSonSN/brs_9/issues/comments{/number}","contents_url":"https://api.github.com/repos/HungSonSN/brs_9/contents/{+path}","compare_url":"https://api.github.com/repos/HungSonSN/brs_9/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HungSonSN/brs_9/merges","archive_url":"https://api.github.com/repos/HungSonSN/brs_9/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HungSonSN/brs_9/downloads","issues_url":"https://api.github.com/repos/HungSonSN/brs_9/issues{/number}","pulls_url":"https://api.github.com/repos/HungSonSN/brs_9/pulls{/number}","milestones_url":"https://api.github.com/repos/HungSonSN/brs_9/milestones{/number}","notifications_url":"https://api.github.com/repos/HungSonSN/brs_9/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HungSonSN/brs_9/labels{/name}","releases_url":"https://api.github.com/repos/HungSonSN/brs_9/releases{/id}","created_at":"2015-03-18T11:00:20Z","updated_at":"2015-03-13T09:35:56Z","pushed_at":"2015-03-20T04:23:19Z","git_url":"git://github.com/HungSonSN/brs_9.git","ssh_url":"git@github.com:HungSonSN/brs_9.git","clone_url":"https://github.com/HungSonSN/brs_9.git","svn_url":"https://github.com/HungSonSN/brs_9","homepage":null,"size":102,"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":"186943a845846ac8642d0f6b361e023184ba867c","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":32147556,"name":"brs_9","full_name":"framgia/brs_9","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/brs_9","description":"Book Reviewing System (training)","fork":false,"url":"https://api.github.com/repos/framgia/brs_9","forks_url":"https://api.github.com/repos/framgia/brs_9/forks","keys_url":"https://api.github.com/repos/framgia/brs_9/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/brs_9/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/brs_9/teams","hooks_url":"https://api.github.com/repos/framgia/brs_9/hooks","issue_events_url":"https://api.github.com/repos/framgia/brs_9/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/brs_9/events","assignees_url":"https://api.github.com/repos/framgia/brs_9/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/brs_9/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/brs_9/tags","blobs_url":"https://api.github.com/repos/framgia/brs_9/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/brs_9/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/brs_9/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/brs_9/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/brs_9/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/brs_9/languages","stargazers_url":"https://api.github.com/repos/framgia/brs_9/stargazers","contributors_url":"https://api.github.com/repos/framgia/brs_9/contributors","subscribers_url":"https://api.github.com/repos/framgia/brs_9/subscribers","subscription_url":"https://api.github.com/repos/framgia/brs_9/subscription","commits_url":"https://api.github.com/repos/framgia/brs_9/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/brs_9/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/brs_9/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/brs_9/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/brs_9/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/brs_9/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/brs_9/merges","archive_url":"https://api.github.com/repos/framgia/brs_9/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/brs_9/downloads","issues_url":"https://api.github.com/repos/framgia/brs_9/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/brs_9/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/brs_9/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/brs_9/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/brs_9/labels{/name}","releases_url":"https://api.github.com/repos/framgia/brs_9/releases{/id}","created_at":"2015-03-13T09:35:56Z","updated_at":"2015-03-13T09:35:56Z","pushed_at":"2015-03-20T04:45:19Z","git_url":"git://github.com/framgia/brs_9.git","ssh_url":"git@github.com:framgia/brs_9.git","clone_url":"https://github.com/framgia/brs_9.git","svn_url":"https://github.com/framgia/brs_9","homepage":null,"size":458,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":2,"forks":3,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/brs_9/pulls/12"},"html":{"href":"https://github.com/framgia/brs_9/pull/12"},"issue":{"href":"https://api.github.com/repos/framgia/brs_9/issues/12"},"comments":{"href":"https://api.github.com/repos/framgia/brs_9/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/brs_9/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/brs_9/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/brs_9/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/brs_9/statuses/da68a9cfabadd6c1db5ca63e9bffca446d41e727"}}}}