{"action":"created","comment":{"url":"https://api.github.com/repos/sangnuce/FramazingQuiz/pulls/comments/169835524","pull_request_review_id":98426677,"id":169835524,"diff_hunk":"@@ -1,15 +1,24 @@\n class LessonsController < ApplicationController\n   attr_reader :lesson\n \n+  before_action :find_lesson, only: %i(show edit update destroy)\n+","path":"app/controllers/lessons_controller.rb","position":5,"original_position":5,"commit_id":"bf0400cf3fe8add6b8534461ddbe381d0f148cf2","original_commit_id":"bf0400cf3fe8add6b8534461ddbe381d0f148cf2","user":{"login":"khuongnguyenBlue","id":20217519,"avatar_url":"https://avatars3.githubusercontent.com/u/20217519?v=4","gravatar_id":"","url":"https://api.github.com/users/khuongnguyenBlue","html_url":"https://github.com/khuongnguyenBlue","followers_url":"https://api.github.com/users/khuongnguyenBlue/followers","following_url":"https://api.github.com/users/khuongnguyenBlue/following{/other_user}","gists_url":"https://api.github.com/users/khuongnguyenBlue/gists{/gist_id}","starred_url":"https://api.github.com/users/khuongnguyenBlue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khuongnguyenBlue/subscriptions","organizations_url":"https://api.github.com/users/khuongnguyenBlue/orgs","repos_url":"https://api.github.com/users/khuongnguyenBlue/repos","events_url":"https://api.github.com/users/khuongnguyenBlue/events{/privacy}","received_events_url":"https://api.github.com/users/khuongnguyenBlue/received_events","type":"User","site_admin":false},"body":"thêm một before_action only destroy để kiểm tra current_user có phải creator của lesson không","created_at":"2018-02-22T01:55:16Z","updated_at":"2018-02-22T01:55:16Z","html_url":"https://github.com/sangnuce/FramazingQuiz/pull/9#discussion_r169835524","pull_request_url":"https://api.github.com/repos/sangnuce/FramazingQuiz/pulls/9","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/sangnuce/FramazingQuiz/pulls/comments/169835524"},"html":{"href":"https://github.com/sangnuce/FramazingQuiz/pull/9#discussion_r169835524"},"pull_request":{"href":"https://api.github.com/repos/sangnuce/FramazingQuiz/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/sangnuce/FramazingQuiz/pulls/9","id":170635642,"html_url":"https://github.com/sangnuce/FramazingQuiz/pull/9","diff_url":"https://github.com/sangnuce/FramazingQuiz/pull/9.diff","patch_url":"https://github.com/sangnuce/FramazingQuiz/pull/9.patch","issue_url":"https://api.github.com/repos/sangnuce/FramazingQuiz/issues/9","number":9,"state":"open","locked":false,"title":"show & refine lesson","user":{"login":"khuongnguyenBlue","id":20217519,"avatar_url":"https://avatars3.githubusercontent.com/u/20217519?v=4","gravatar_id":"","url":"https://api.github.com/users/khuongnguyenBlue","html_url":"https://github.com/khuongnguyenBlue","followers_url":"https://api.github.com/users/khuongnguyenBlue/followers","following_url":"https://api.github.com/users/khuongnguyenBlue/following{/other_user}","gists_url":"https://api.github.com/users/khuongnguyenBlue/gists{/gist_id}","starred_url":"https://api.github.com/users/khuongnguyenBlue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khuongnguyenBlue/subscriptions","organizations_url":"https://api.github.com/users/khuongnguyenBlue/orgs","repos_url":"https://api.github.com/users/khuongnguyenBlue/repos","events_url":"https://api.github.com/users/khuongnguyenBlue/events{/privacy}","received_events_url":"https://api.github.com/users/khuongnguyenBlue/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-02-22T01:35:12Z","updated_at":"2018-02-22T01:55:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"261a535c82c284bc721e532b15240640b0e80785","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/sangnuce/FramazingQuiz/pulls/9/commits","review_comments_url":"https://api.github.com/repos/sangnuce/FramazingQuiz/pulls/9/comments","review_comment_url":"https://api.github.com/repos/sangnuce/FramazingQuiz/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sangnuce/FramazingQuiz/issues/9/comments","statuses_url":"https://api.github.com/repos/sangnuce/FramazingQuiz/statuses/bf0400cf3fe8add6b8534461ddbe381d0f148cf2","head":{"label":"khuongnguyenBlue:show_lesson","ref":"show_lesson","sha":"bf0400cf3fe8add6b8534461ddbe381d0f148cf2","user":{"login":"khuongnguyenBlue","id":20217519,"avatar_url":"https://avatars3.githubusercontent.com/u/20217519?v=4","gravatar_id":"","url":"https://api.github.com/users/khuongnguyenBlue","html_url":"https://github.com/khuongnguyenBlue","followers_url":"https://api.github.com/users/khuongnguyenBlue/followers","following_url":"https://api.github.com/users/khuongnguyenBlue/following{/other_user}","gists_url":"https://api.github.com/users/khuongnguyenBlue/gists{/gist_id}","starred_url":"https://api.github.com/users/khuongnguyenBlue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khuongnguyenBlue/subscriptions","organizations_url":"https://api.github.com/users/khuongnguyenBlue/orgs","repos_url":"https://api.github.com/users/khuongnguyenBlue/repos","events_url":"https://api.github.com/users/khuongnguyenBlue/events{/privacy}","received_events_url":"https://api.github.com/users/khuongnguyenBlue/received_events","type":"User","site_admin":false},"repo":{"id":121500101,"name":"FramazingQuiz","full_name":"khuongnguyenBlue/FramazingQuiz","owner":{"login":"khuongnguyenBlue","id":20217519,"avatar_url":"https://avatars3.githubusercontent.com/u/20217519?v=4","gravatar_id":"","url":"https://api.github.com/users/khuongnguyenBlue","html_url":"https://github.com/khuongnguyenBlue","followers_url":"https://api.github.com/users/khuongnguyenBlue/followers","following_url":"https://api.github.com/users/khuongnguyenBlue/following{/other_user}","gists_url":"https://api.github.com/users/khuongnguyenBlue/gists{/gist_id}","starred_url":"https://api.github.com/users/khuongnguyenBlue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khuongnguyenBlue/subscriptions","organizations_url":"https://api.github.com/users/khuongnguyenBlue/orgs","repos_url":"https://api.github.com/users/khuongnguyenBlue/repos","events_url":"https://api.github.com/users/khuongnguyenBlue/events{/privacy}","received_events_url":"https://api.github.com/users/khuongnguyenBlue/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/khuongnguyenBlue/FramazingQuiz","description":null,"fork":true,"url":"https://api.github.com/repos/khuongnguyenBlue/FramazingQuiz","forks_url":"https://api.github.com/repos/khuongnguyenBlue/FramazingQuiz/forks","keys_url":"https://api.github.com/repos/khuongnguyenBlue/FramazingQuiz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/khuongnguyenBlue/FramazingQuiz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/khuongnguyenBlue/FramazingQuiz/teams","hooks_url":"https://api.github.com/repos/khuongnguyenBlue/FramazingQuiz/hooks","issue_events_url":"https://api.github.com/repos/khuongnguyenBlue/FramazingQuiz/issues/events{/number}","events_url":"https://api.github.com/repos/khuongnguyenBlue/FramazingQuiz/events","assignees_url":"https://api.github.com/repos/khuongnguyenBlue/FramazingQuiz/assignees{/user}","branches_url":"https://api.github.com/repos/khuongnguyenBlue/FramazingQuiz/branches{/branch}","tags_url":"https://api.github.com/repos/khuongnguyenBlue/FramazingQuiz/tags","blobs_url":"https://api.github.com/repos/khuongnguyenBlue/FramazingQuiz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/khuongnguyenBlue/FramazingQuiz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/khuongnguyenBlue/FramazingQuiz/git/refs{/sha}","trees_url":"https://api.github.com/repos/khuongnguyenBlue/FramazingQuiz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/khuongnguyenBlue/FramazingQuiz/statuses/{sha}","languages_url":"https://api.github.com/repos/khuongnguyenBlue/FramazingQuiz/languages","stargazers_url":"https://api.github.com/repos/khuongnguyenBlue/FramazingQuiz/stargazers","contributors_url":"https://api.github.com/repos/khuongnguyenBlue/FramazingQuiz/contributors","subscribers_url":"https://api.github.com/repos/khuongnguyenBlue/FramazingQuiz/subscribers","subscription_url":"https://api.github.com/repos/khuongnguyenBlue/FramazingQuiz/subscription","commits_url":"https://api.github.com/repos/khuongnguyenBlue/FramazingQuiz/commits{/sha}","git_commits_url":"https://api.github.com/repos/khuongnguyenBlue/FramazingQuiz/git/commits{/sha}","comments_url":"https://api.github.com/repos/khuongnguyenBlue/FramazingQuiz/comments{/number}","issue_comment_url":"https://api.github.com/repos/khuongnguyenBlue/FramazingQuiz/issues/comments{/number}","contents_url":"https://api.github.com/repos/khuongnguyenBlue/FramazingQuiz/contents/{+path}","compare_url":"https://api.github.com/repos/khuongnguyenBlue/FramazingQuiz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/khuongnguyenBlue/FramazingQuiz/merges","archive_url":"https://api.github.com/repos/khuongnguyenBlue/FramazingQuiz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/khuongnguyenBlue/FramazingQuiz/downloads","issues_url":"https://api.github.com/repos/khuongnguyenBlue/FramazingQuiz/issues{/number}","pulls_url":"https://api.github.com/repos/khuongnguyenBlue/FramazingQuiz/pulls{/number}","milestones_url":"https://api.github.com/repos/khuongnguyenBlue/FramazingQuiz/milestones{/number}","notifications_url":"https://api.github.com/repos/khuongnguyenBlue/FramazingQuiz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/khuongnguyenBlue/FramazingQuiz/labels{/name}","releases_url":"https://api.github.com/repos/khuongnguyenBlue/FramazingQuiz/releases{/id}","deployments_url":"https://api.github.com/repos/khuongnguyenBlue/FramazingQuiz/deployments","created_at":"2018-02-14T10:51:52Z","updated_at":"2018-02-14T08:31:45Z","pushed_at":"2018-02-22T01:28:25Z","git_url":"git://github.com/khuongnguyenBlue/FramazingQuiz.git","ssh_url":"git@github.com:khuongnguyenBlue/FramazingQuiz.git","clone_url":"https://github.com/khuongnguyenBlue/FramazingQuiz.git","svn_url":"https://github.com/khuongnguyenBlue/FramazingQuiz","homepage":null,"size":152,"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":"sangnuce:develop","ref":"develop","sha":"da6f72d97fdcb4a81e128c878ecbb114cb67155c","user":{"login":"sangnuce","id":12852873,"avatar_url":"https://avatars3.githubusercontent.com/u/12852873?v=4","gravatar_id":"","url":"https://api.github.com/users/sangnuce","html_url":"https://github.com/sangnuce","followers_url":"https://api.github.com/users/sangnuce/followers","following_url":"https://api.github.com/users/sangnuce/following{/other_user}","gists_url":"https://api.github.com/users/sangnuce/gists{/gist_id}","starred_url":"https://api.github.com/users/sangnuce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sangnuce/subscriptions","organizations_url":"https://api.github.com/users/sangnuce/orgs","repos_url":"https://api.github.com/users/sangnuce/repos","events_url":"https://api.github.com/users/sangnuce/events{/privacy}","received_events_url":"https://api.github.com/users/sangnuce/received_events","type":"User","site_admin":false},"repo":{"id":121487819,"name":"FramazingQuiz","full_name":"sangnuce/FramazingQuiz","owner":{"login":"sangnuce","id":12852873,"avatar_url":"https://avatars3.githubusercontent.com/u/12852873?v=4","gravatar_id":"","url":"https://api.github.com/users/sangnuce","html_url":"https://github.com/sangnuce","followers_url":"https://api.github.com/users/sangnuce/followers","following_url":"https://api.github.com/users/sangnuce/following{/other_user}","gists_url":"https://api.github.com/users/sangnuce/gists{/gist_id}","starred_url":"https://api.github.com/users/sangnuce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sangnuce/subscriptions","organizations_url":"https://api.github.com/users/sangnuce/orgs","repos_url":"https://api.github.com/users/sangnuce/repos","events_url":"https://api.github.com/users/sangnuce/events{/privacy}","received_events_url":"https://api.github.com/users/sangnuce/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sangnuce/FramazingQuiz","description":null,"fork":false,"url":"https://api.github.com/repos/sangnuce/FramazingQuiz","forks_url":"https://api.github.com/repos/sangnuce/FramazingQuiz/forks","keys_url":"https://api.github.com/repos/sangnuce/FramazingQuiz/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sangnuce/FramazingQuiz/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sangnuce/FramazingQuiz/teams","hooks_url":"https://api.github.com/repos/sangnuce/FramazingQuiz/hooks","issue_events_url":"https://api.github.com/repos/sangnuce/FramazingQuiz/issues/events{/number}","events_url":"https://api.github.com/repos/sangnuce/FramazingQuiz/events","assignees_url":"https://api.github.com/repos/sangnuce/FramazingQuiz/assignees{/user}","branches_url":"https://api.github.com/repos/sangnuce/FramazingQuiz/branches{/branch}","tags_url":"https://api.github.com/repos/sangnuce/FramazingQuiz/tags","blobs_url":"https://api.github.com/repos/sangnuce/FramazingQuiz/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sangnuce/FramazingQuiz/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sangnuce/FramazingQuiz/git/refs{/sha}","trees_url":"https://api.github.com/repos/sangnuce/FramazingQuiz/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sangnuce/FramazingQuiz/statuses/{sha}","languages_url":"https://api.github.com/repos/sangnuce/FramazingQuiz/languages","stargazers_url":"https://api.github.com/repos/sangnuce/FramazingQuiz/stargazers","contributors_url":"https://api.github.com/repos/sangnuce/FramazingQuiz/contributors","subscribers_url":"https://api.github.com/repos/sangnuce/FramazingQuiz/subscribers","subscription_url":"https://api.github.com/repos/sangnuce/FramazingQuiz/subscription","commits_url":"https://api.github.com/repos/sangnuce/FramazingQuiz/commits{/sha}","git_commits_url":"https://api.github.com/repos/sangnuce/FramazingQuiz/git/commits{/sha}","comments_url":"https://api.github.com/repos/sangnuce/FramazingQuiz/comments{/number}","issue_comment_url":"https://api.github.com/repos/sangnuce/FramazingQuiz/issues/comments{/number}","contents_url":"https://api.github.com/repos/sangnuce/FramazingQuiz/contents/{+path}","compare_url":"https://api.github.com/repos/sangnuce/FramazingQuiz/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sangnuce/FramazingQuiz/merges","archive_url":"https://api.github.com/repos/sangnuce/FramazingQuiz/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sangnuce/FramazingQuiz/downloads","issues_url":"https://api.github.com/repos/sangnuce/FramazingQuiz/issues{/number}","pulls_url":"https://api.github.com/repos/sangnuce/FramazingQuiz/pulls{/number}","milestones_url":"https://api.github.com/repos/sangnuce/FramazingQuiz/milestones{/number}","notifications_url":"https://api.github.com/repos/sangnuce/FramazingQuiz/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sangnuce/FramazingQuiz/labels{/name}","releases_url":"https://api.github.com/repos/sangnuce/FramazingQuiz/releases{/id}","deployments_url":"https://api.github.com/repos/sangnuce/FramazingQuiz/deployments","created_at":"2018-02-14T08:31:45Z","updated_at":"2018-02-14T08:31:45Z","pushed_at":"2018-02-22T01:35:13Z","git_url":"git://github.com/sangnuce/FramazingQuiz.git","ssh_url":"git@github.com:sangnuce/FramazingQuiz.git","clone_url":"https://github.com/sangnuce/FramazingQuiz.git","svn_url":"https://github.com/sangnuce/FramazingQuiz","homepage":null,"size":154,"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":3,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":3,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sangnuce/FramazingQuiz/pulls/9"},"html":{"href":"https://github.com/sangnuce/FramazingQuiz/pull/9"},"issue":{"href":"https://api.github.com/repos/sangnuce/FramazingQuiz/issues/9"},"comments":{"href":"https://api.github.com/repos/sangnuce/FramazingQuiz/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/sangnuce/FramazingQuiz/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/sangnuce/FramazingQuiz/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sangnuce/FramazingQuiz/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/sangnuce/FramazingQuiz/statuses/bf0400cf3fe8add6b8534461ddbe381d0f148cf2"}},"author_association":"NONE"}}
{"actor":{"display_login":"khuongnguyenBlue"}}