{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/tms_36/pulls/comments/43712718","id":43712718,"diff_hunk":"@@ -8,4 +8,21 @@ class Course < ActiveRecord::Base\n   validates :name, presence: true, length: {maximum: 50}\n   validates :description, presence: true, length: {maximum: 1000}\n   validates :status, presence: true\n+\n+  before_save :update_subjects_status\n+\n+  include Status\n+\n+  private\n+  def update_subjects_status","path":"app/models/course.rb","position":10,"original_position":10,"commit_id":"a7f6f0c00273be9495b1cb23ffeab53dcffb6c00","original_commit_id":"a7f6f0c00273be9495b1cb23ffeab53dcffb6c00","user":{"login":"hellovietnam93","id":8023606,"avatar_url":"https://avatars.githubusercontent.com/u/8023606?v=3","gravatar_id":"","url":"https://api.github.com/users/hellovietnam93","html_url":"https://github.com/hellovietnam93","followers_url":"https://api.github.com/users/hellovietnam93/followers","following_url":"https://api.github.com/users/hellovietnam93/following{/other_user}","gists_url":"https://api.github.com/users/hellovietnam93/gists{/gist_id}","starred_url":"https://api.github.com/users/hellovietnam93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hellovietnam93/subscriptions","organizations_url":"https://api.github.com/users/hellovietnam93/orgs","repos_url":"https://api.github.com/users/hellovietnam93/repos","events_url":"https://api.github.com/users/hellovietnam93/events{/privacy}","received_events_url":"https://api.github.com/users/hellovietnam93/received_events","type":"User","site_admin":false},"body":"chỗ này có thể refactor không em\r\n","created_at":"2015-11-03T03:13:09Z","updated_at":"2015-11-03T03:13:09Z","html_url":"https://github.com/framgia/tms_36/pull/30#discussion_r43712718","pull_request_url":"https://api.github.com/repos/framgia/tms_36/pulls/30","_links":{"self":{"href":"https://api.github.com/repos/framgia/tms_36/pulls/comments/43712718"},"html":{"href":"https://github.com/framgia/tms_36/pull/30#discussion_r43712718"},"pull_request":{"href":"https://api.github.com/repos/framgia/tms_36/pulls/30"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/tms_36/pulls/30","id":49514910,"html_url":"https://github.com/framgia/tms_36/pull/30","diff_url":"https://github.com/framgia/tms_36/pull/30.diff","patch_url":"https://github.com/framgia/tms_36/pull/30.patch","issue_url":"https://api.github.com/repos/framgia/tms_36/issues/30","number":30,"state":"open","locked":false,"title":"42562-supervisor-finish-course","user":{"login":"tannm13","id":14290164,"avatar_url":"https://avatars.githubusercontent.com/u/14290164?v=3","gravatar_id":"","url":"https://api.github.com/users/tannm13","html_url":"https://github.com/tannm13","followers_url":"https://api.github.com/users/tannm13/followers","following_url":"https://api.github.com/users/tannm13/following{/other_user}","gists_url":"https://api.github.com/users/tannm13/gists{/gist_id}","starred_url":"https://api.github.com/users/tannm13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tannm13/subscriptions","organizations_url":"https://api.github.com/users/tannm13/orgs","repos_url":"https://api.github.com/users/tannm13/repos","events_url":"https://api.github.com/users/tannm13/events{/privacy}","received_events_url":"https://api.github.com/users/tannm13/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-03T02:59:25Z","updated_at":"2015-11-03T03:13:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"65629186221be2b04b5b0120d8b6b05100412964","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/framgia/tms_36/pulls/30/commits","review_comments_url":"https://api.github.com/repos/framgia/tms_36/pulls/30/comments","review_comment_url":"https://api.github.com/repos/framgia/tms_36/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/tms_36/issues/30/comments","statuses_url":"https://api.github.com/repos/framgia/tms_36/statuses/a7f6f0c00273be9495b1cb23ffeab53dcffb6c00","head":{"label":"tannm13:42562-supervisor-finish-course","ref":"42562-supervisor-finish-course","sha":"a7f6f0c00273be9495b1cb23ffeab53dcffb6c00","user":{"login":"tannm13","id":14290164,"avatar_url":"https://avatars.githubusercontent.com/u/14290164?v=3","gravatar_id":"","url":"https://api.github.com/users/tannm13","html_url":"https://github.com/tannm13","followers_url":"https://api.github.com/users/tannm13/followers","following_url":"https://api.github.com/users/tannm13/following{/other_user}","gists_url":"https://api.github.com/users/tannm13/gists{/gist_id}","starred_url":"https://api.github.com/users/tannm13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tannm13/subscriptions","organizations_url":"https://api.github.com/users/tannm13/orgs","repos_url":"https://api.github.com/users/tannm13/repos","events_url":"https://api.github.com/users/tannm13/events{/privacy}","received_events_url":"https://api.github.com/users/tannm13/received_events","type":"User","site_admin":false},"repo":{"id":44513355,"name":"tms_36","full_name":"tannm13/tms_36","owner":{"login":"tannm13","id":14290164,"avatar_url":"https://avatars.githubusercontent.com/u/14290164?v=3","gravatar_id":"","url":"https://api.github.com/users/tannm13","html_url":"https://github.com/tannm13","followers_url":"https://api.github.com/users/tannm13/followers","following_url":"https://api.github.com/users/tannm13/following{/other_user}","gists_url":"https://api.github.com/users/tannm13/gists{/gist_id}","starred_url":"https://api.github.com/users/tannm13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tannm13/subscriptions","organizations_url":"https://api.github.com/users/tannm13/orgs","repos_url":"https://api.github.com/users/tannm13/repos","events_url":"https://api.github.com/users/tannm13/events{/privacy}","received_events_url":"https://api.github.com/users/tannm13/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tannm13/tms_36","description":"Framgia Training Management System (training)","fork":true,"url":"https://api.github.com/repos/tannm13/tms_36","forks_url":"https://api.github.com/repos/tannm13/tms_36/forks","keys_url":"https://api.github.com/repos/tannm13/tms_36/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tannm13/tms_36/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tannm13/tms_36/teams","hooks_url":"https://api.github.com/repos/tannm13/tms_36/hooks","issue_events_url":"https://api.github.com/repos/tannm13/tms_36/issues/events{/number}","events_url":"https://api.github.com/repos/tannm13/tms_36/events","assignees_url":"https://api.github.com/repos/tannm13/tms_36/assignees{/user}","branches_url":"https://api.github.com/repos/tannm13/tms_36/branches{/branch}","tags_url":"https://api.github.com/repos/tannm13/tms_36/tags","blobs_url":"https://api.github.com/repos/tannm13/tms_36/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tannm13/tms_36/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tannm13/tms_36/git/refs{/sha}","trees_url":"https://api.github.com/repos/tannm13/tms_36/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tannm13/tms_36/statuses/{sha}","languages_url":"https://api.github.com/repos/tannm13/tms_36/languages","stargazers_url":"https://api.github.com/repos/tannm13/tms_36/stargazers","contributors_url":"https://api.github.com/repos/tannm13/tms_36/contributors","subscribers_url":"https://api.github.com/repos/tannm13/tms_36/subscribers","subscription_url":"https://api.github.com/repos/tannm13/tms_36/subscription","commits_url":"https://api.github.com/repos/tannm13/tms_36/commits{/sha}","git_commits_url":"https://api.github.com/repos/tannm13/tms_36/git/commits{/sha}","comments_url":"https://api.github.com/repos/tannm13/tms_36/comments{/number}","issue_comment_url":"https://api.github.com/repos/tannm13/tms_36/issues/comments{/number}","contents_url":"https://api.github.com/repos/tannm13/tms_36/contents/{+path}","compare_url":"https://api.github.com/repos/tannm13/tms_36/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tannm13/tms_36/merges","archive_url":"https://api.github.com/repos/tannm13/tms_36/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tannm13/tms_36/downloads","issues_url":"https://api.github.com/repos/tannm13/tms_36/issues{/number}","pulls_url":"https://api.github.com/repos/tannm13/tms_36/pulls{/number}","milestones_url":"https://api.github.com/repos/tannm13/tms_36/milestones{/number}","notifications_url":"https://api.github.com/repos/tannm13/tms_36/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tannm13/tms_36/labels{/name}","releases_url":"https://api.github.com/repos/tannm13/tms_36/releases{/id}","created_at":"2015-10-19T05:37:14Z","updated_at":"2015-10-14T10:03:12Z","pushed_at":"2015-11-03T02:59:12Z","git_url":"git://github.com/tannm13/tms_36.git","ssh_url":"git@github.com:tannm13/tms_36.git","clone_url":"https://github.com/tannm13/tms_36.git","svn_url":"https://github.com/tannm13/tms_36","homepage":null,"size":195,"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":"f4b40057d54d394afebef34cd74d7986e8219880","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":44239506,"name":"tms_36","full_name":"framgia/tms_36","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/tms_36","description":"Framgia Training Management System (training)","fork":false,"url":"https://api.github.com/repos/framgia/tms_36","forks_url":"https://api.github.com/repos/framgia/tms_36/forks","keys_url":"https://api.github.com/repos/framgia/tms_36/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/tms_36/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/tms_36/teams","hooks_url":"https://api.github.com/repos/framgia/tms_36/hooks","issue_events_url":"https://api.github.com/repos/framgia/tms_36/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/tms_36/events","assignees_url":"https://api.github.com/repos/framgia/tms_36/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/tms_36/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/tms_36/tags","blobs_url":"https://api.github.com/repos/framgia/tms_36/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/tms_36/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/tms_36/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/tms_36/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/tms_36/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/tms_36/languages","stargazers_url":"https://api.github.com/repos/framgia/tms_36/stargazers","contributors_url":"https://api.github.com/repos/framgia/tms_36/contributors","subscribers_url":"https://api.github.com/repos/framgia/tms_36/subscribers","subscription_url":"https://api.github.com/repos/framgia/tms_36/subscription","commits_url":"https://api.github.com/repos/framgia/tms_36/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/tms_36/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/tms_36/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/tms_36/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/tms_36/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/tms_36/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/tms_36/merges","archive_url":"https://api.github.com/repos/framgia/tms_36/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/tms_36/downloads","issues_url":"https://api.github.com/repos/framgia/tms_36/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/tms_36/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/tms_36/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/tms_36/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/tms_36/labels{/name}","releases_url":"https://api.github.com/repos/framgia/tms_36/releases{/id}","created_at":"2015-10-14T10:03:12Z","updated_at":"2015-10-14T10:03:12Z","pushed_at":"2015-11-03T02:59:26Z","git_url":"git://github.com/framgia/tms_36.git","ssh_url":"git@github.com:framgia/tms_36.git","clone_url":"https://github.com/framgia/tms_36.git","svn_url":"https://github.com/framgia/tms_36","homepage":null,"size":487,"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":5,"forks":3,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/tms_36/pulls/30"},"html":{"href":"https://github.com/framgia/tms_36/pull/30"},"issue":{"href":"https://api.github.com/repos/framgia/tms_36/issues/30"},"comments":{"href":"https://api.github.com/repos/framgia/tms_36/issues/30/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/tms_36/pulls/30/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/tms_36/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/tms_36/pulls/30/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/tms_36/statuses/a7f6f0c00273be9495b1cb23ffeab53dcffb6c00"}}}}