{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/brs_61/pulls/comments/152711386","pull_request_review_id":78614019,"id":152711386,"diff_hunk":"@@ -0,0 +1,37 @@\n+class ReadingHistoriesController < ApplicationController\n+  attr_reader :reading_history, :book\n+  load_and_authorize_resource\n+\n+  before_action :authenticate_user!, :find_book\n+\n+  def create\n+    flash.now[:warning] = t \"categories.fail_mark\" unless reading_history.save","path":"app/controllers/reading_histories_controller.rb","position":8,"original_position":8,"commit_id":"bbfc413a2520134f6770f3420e77dd0e63210581","original_commit_id":"bbfc413a2520134f6770f3420e77dd0e63210581","user":{"login":"dat-hedspi","id":14577773,"avatar_url":"https://avatars3.githubusercontent.com/u/14577773?v=4","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":"thế create success ko có flash à? viết bình thường đi","created_at":"2017-11-23T01:23:46Z","updated_at":"2017-11-23T01:27:49Z","html_url":"https://github.com/framgia/brs_61/pull/9#discussion_r152711386","pull_request_url":"https://api.github.com/repos/framgia/brs_61/pulls/9","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/framgia/brs_61/pulls/comments/152711386"},"html":{"href":"https://github.com/framgia/brs_61/pull/9#discussion_r152711386"},"pull_request":{"href":"https://api.github.com/repos/framgia/brs_61/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/brs_61/pulls/9","id":153832003,"html_url":"https://github.com/framgia/brs_61/pull/9","diff_url":"https://github.com/framgia/brs_61/pull/9.diff","patch_url":"https://github.com/framgia/brs_61/pull/9.patch","issue_url":"https://api.github.com/repos/framgia/brs_61/issues/9","number":9,"state":"open","locked":false,"title":"Mark book, show book mark","user":{"login":"ccm2012","id":32444642,"avatar_url":"https://avatars1.githubusercontent.com/u/32444642?v=4","gravatar_id":"","url":"https://api.github.com/users/ccm2012","html_url":"https://github.com/ccm2012","followers_url":"https://api.github.com/users/ccm2012/followers","following_url":"https://api.github.com/users/ccm2012/following{/other_user}","gists_url":"https://api.github.com/users/ccm2012/gists{/gist_id}","starred_url":"https://api.github.com/users/ccm2012/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccm2012/subscriptions","organizations_url":"https://api.github.com/users/ccm2012/orgs","repos_url":"https://api.github.com/users/ccm2012/repos","events_url":"https://api.github.com/users/ccm2012/events{/privacy}","received_events_url":"https://api.github.com/users/ccm2012/received_events","type":"User","site_admin":false},"body":"![ci](https://user-images.githubusercontent.com/32444642/33063660-b1575848-ced5-11e7-8431-d2b825969a31.png)\r\n","created_at":"2017-11-21T09:04:51Z","updated_at":"2017-11-23T01:27:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"462359611ec82bda016ba3e625901e47d055129e","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/brs_61/pulls/9/commits","review_comments_url":"https://api.github.com/repos/framgia/brs_61/pulls/9/comments","review_comment_url":"https://api.github.com/repos/framgia/brs_61/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/brs_61/issues/9/comments","statuses_url":"https://api.github.com/repos/framgia/brs_61/statuses/bbfc413a2520134f6770f3420e77dd0e63210581","head":{"label":"ccm2012:view_and_mark_books_continue","ref":"view_and_mark_books_continue","sha":"bbfc413a2520134f6770f3420e77dd0e63210581","user":{"login":"ccm2012","id":32444642,"avatar_url":"https://avatars1.githubusercontent.com/u/32444642?v=4","gravatar_id":"","url":"https://api.github.com/users/ccm2012","html_url":"https://github.com/ccm2012","followers_url":"https://api.github.com/users/ccm2012/followers","following_url":"https://api.github.com/users/ccm2012/following{/other_user}","gists_url":"https://api.github.com/users/ccm2012/gists{/gist_id}","starred_url":"https://api.github.com/users/ccm2012/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccm2012/subscriptions","organizations_url":"https://api.github.com/users/ccm2012/orgs","repos_url":"https://api.github.com/users/ccm2012/repos","events_url":"https://api.github.com/users/ccm2012/events{/privacy}","received_events_url":"https://api.github.com/users/ccm2012/received_events","type":"User","site_admin":false},"repo":{"id":109648569,"name":"brs_61","full_name":"ccm2012/brs_61","owner":{"login":"ccm2012","id":32444642,"avatar_url":"https://avatars1.githubusercontent.com/u/32444642?v=4","gravatar_id":"","url":"https://api.github.com/users/ccm2012","html_url":"https://github.com/ccm2012","followers_url":"https://api.github.com/users/ccm2012/followers","following_url":"https://api.github.com/users/ccm2012/following{/other_user}","gists_url":"https://api.github.com/users/ccm2012/gists{/gist_id}","starred_url":"https://api.github.com/users/ccm2012/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccm2012/subscriptions","organizations_url":"https://api.github.com/users/ccm2012/orgs","repos_url":"https://api.github.com/users/ccm2012/repos","events_url":"https://api.github.com/users/ccm2012/events{/privacy}","received_events_url":"https://api.github.com/users/ccm2012/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ccm2012/brs_61","description":"Framgia Book Reviewing System (training)","fork":true,"url":"https://api.github.com/repos/ccm2012/brs_61","forks_url":"https://api.github.com/repos/ccm2012/brs_61/forks","keys_url":"https://api.github.com/repos/ccm2012/brs_61/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ccm2012/brs_61/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ccm2012/brs_61/teams","hooks_url":"https://api.github.com/repos/ccm2012/brs_61/hooks","issue_events_url":"https://api.github.com/repos/ccm2012/brs_61/issues/events{/number}","events_url":"https://api.github.com/repos/ccm2012/brs_61/events","assignees_url":"https://api.github.com/repos/ccm2012/brs_61/assignees{/user}","branches_url":"https://api.github.com/repos/ccm2012/brs_61/branches{/branch}","tags_url":"https://api.github.com/repos/ccm2012/brs_61/tags","blobs_url":"https://api.github.com/repos/ccm2012/brs_61/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ccm2012/brs_61/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ccm2012/brs_61/git/refs{/sha}","trees_url":"https://api.github.com/repos/ccm2012/brs_61/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ccm2012/brs_61/statuses/{sha}","languages_url":"https://api.github.com/repos/ccm2012/brs_61/languages","stargazers_url":"https://api.github.com/repos/ccm2012/brs_61/stargazers","contributors_url":"https://api.github.com/repos/ccm2012/brs_61/contributors","subscribers_url":"https://api.github.com/repos/ccm2012/brs_61/subscribers","subscription_url":"https://api.github.com/repos/ccm2012/brs_61/subscription","commits_url":"https://api.github.com/repos/ccm2012/brs_61/commits{/sha}","git_commits_url":"https://api.github.com/repos/ccm2012/brs_61/git/commits{/sha}","comments_url":"https://api.github.com/repos/ccm2012/brs_61/comments{/number}","issue_comment_url":"https://api.github.com/repos/ccm2012/brs_61/issues/comments{/number}","contents_url":"https://api.github.com/repos/ccm2012/brs_61/contents/{+path}","compare_url":"https://api.github.com/repos/ccm2012/brs_61/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ccm2012/brs_61/merges","archive_url":"https://api.github.com/repos/ccm2012/brs_61/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ccm2012/brs_61/downloads","issues_url":"https://api.github.com/repos/ccm2012/brs_61/issues{/number}","pulls_url":"https://api.github.com/repos/ccm2012/brs_61/pulls{/number}","milestones_url":"https://api.github.com/repos/ccm2012/brs_61/milestones{/number}","notifications_url":"https://api.github.com/repos/ccm2012/brs_61/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ccm2012/brs_61/labels{/name}","releases_url":"https://api.github.com/repos/ccm2012/brs_61/releases{/id}","deployments_url":"https://api.github.com/repos/ccm2012/brs_61/deployments","created_at":"2017-11-06T04:41:56Z","updated_at":"2017-11-06T04:51:26Z","pushed_at":"2017-11-23T01:19:31Z","git_url":"git://github.com/ccm2012/brs_61.git","ssh_url":"git@github.com:ccm2012/brs_61.git","clone_url":"https://github.com/ccm2012/brs_61.git","svn_url":"https://github.com/ccm2012/brs_61","homepage":null,"size":89,"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,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"framgia:develop","ref":"develop","sha":"646992dc7b6ed189a58a60d11a3b6c317c8a3bf7","user":{"login":"framgia","id":2322183,"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":109633032,"name":"brs_61","full_name":"framgia/brs_61","owner":{"login":"framgia","id":2322183,"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/brs_61","description":"Framgia Book Reviewing System (training)","fork":false,"url":"https://api.github.com/repos/framgia/brs_61","forks_url":"https://api.github.com/repos/framgia/brs_61/forks","keys_url":"https://api.github.com/repos/framgia/brs_61/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/brs_61/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/brs_61/teams","hooks_url":"https://api.github.com/repos/framgia/brs_61/hooks","issue_events_url":"https://api.github.com/repos/framgia/brs_61/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/brs_61/events","assignees_url":"https://api.github.com/repos/framgia/brs_61/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/brs_61/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/brs_61/tags","blobs_url":"https://api.github.com/repos/framgia/brs_61/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/brs_61/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/brs_61/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/brs_61/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/brs_61/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/brs_61/languages","stargazers_url":"https://api.github.com/repos/framgia/brs_61/stargazers","contributors_url":"https://api.github.com/repos/framgia/brs_61/contributors","subscribers_url":"https://api.github.com/repos/framgia/brs_61/subscribers","subscription_url":"https://api.github.com/repos/framgia/brs_61/subscription","commits_url":"https://api.github.com/repos/framgia/brs_61/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/brs_61/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/brs_61/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/brs_61/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/brs_61/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/brs_61/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/brs_61/merges","archive_url":"https://api.github.com/repos/framgia/brs_61/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/brs_61/downloads","issues_url":"https://api.github.com/repos/framgia/brs_61/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/brs_61/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/brs_61/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/brs_61/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/brs_61/labels{/name}","releases_url":"https://api.github.com/repos/framgia/brs_61/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/brs_61/deployments","created_at":"2017-11-06T01:33:21Z","updated_at":"2017-11-06T01:33:21Z","pushed_at":"2017-11-23T01:19:32Z","git_url":"git://github.com/framgia/brs_61.git","ssh_url":"git@github.com:framgia/brs_61.git","clone_url":"https://github.com/framgia/brs_61.git","svn_url":"https://github.com/framgia/brs_61","homepage":null,"size":85,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/brs_61/pulls/9"},"html":{"href":"https://github.com/framgia/brs_61/pull/9"},"issue":{"href":"https://api.github.com/repos/framgia/brs_61/issues/9"},"comments":{"href":"https://api.github.com/repos/framgia/brs_61/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/brs_61/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/brs_61/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/brs_61/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/brs_61/statuses/bbfc413a2520134f6770f3420e77dd0e63210581"}},"author_association":"NONE"}}
{"actor":{"display_login":"dat-hedspi"}}