{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/tms_29/pulls/comments/35292150","id":35292150,"diff_hunk":"@@ -0,0 +1,27 @@\n+class Admin::CourseSubjectsController < ApplicationController\n+  before_action :init_course_subject, only: [:update]\n+\n+  def update\n+    if @course_subject.update_attributes course_subject_params\n+      if @course_subject.status == Settings.course_subjects.status.start\n+        @course_subject.subject.send(:init_user_course_subject, @course_subject.course)   ","path":"app/controllers/admin/course_subjects_controller.rb","position":7,"original_position":7,"commit_id":"f49ddcc5447e820c36dba8bd4e57cc4f9ba30185","original_commit_id":"f49ddcc5447e820c36dba8bd4e57cc4f9ba30185","user":{"login":"chuanhtuan","id":5590771,"avatar_url":"https://avatars.githubusercontent.com/u/5590771?v=3","gravatar_id":"","url":"https://api.github.com/users/chuanhtuan","html_url":"https://github.com/chuanhtuan","followers_url":"https://api.github.com/users/chuanhtuan/followers","following_url":"https://api.github.com/users/chuanhtuan/following{/other_user}","gists_url":"https://api.github.com/users/chuanhtuan/gists{/gist_id}","starred_url":"https://api.github.com/users/chuanhtuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chuanhtuan/subscriptions","organizations_url":"https://api.github.com/users/chuanhtuan/orgs","repos_url":"https://api.github.com/users/chuanhtuan/repos","events_url":"https://api.github.com/users/chuanhtuan/events{/privacy}","received_events_url":"https://api.github.com/users/chuanhtuan/received_events","type":"User","site_admin":false},"body":"em làm đoạn này để làm gì\r\nlogic là gì","created_at":"2015-07-23T06:03:40Z","updated_at":"2015-07-23T06:03:40Z","html_url":"https://github.com/framgia/tms_29/pull/18#discussion_r35292150","pull_request_url":"https://api.github.com/repos/framgia/tms_29/pulls/18","_links":{"self":{"href":"https://api.github.com/repos/framgia/tms_29/pulls/comments/35292150"},"html":{"href":"https://github.com/framgia/tms_29/pull/18#discussion_r35292150"},"pull_request":{"href":"https://api.github.com/repos/framgia/tms_29/pulls/18"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/tms_29/pulls/18","id":40521253,"html_url":"https://github.com/framgia/tms_29/pull/18","diff_url":"https://github.com/framgia/tms_29/pull/18.diff","patch_url":"https://github.com/framgia/tms_29/pull/18.patch","issue_url":"https://api.github.com/repos/framgia/tms_29/issues/18","number":18,"state":"open","locked":false,"title":"supervisor start subject","user":{"login":"VuongLong","id":5051736,"avatar_url":"https://avatars.githubusercontent.com/u/5051736?v=3","gravatar_id":"","url":"https://api.github.com/users/VuongLong","html_url":"https://github.com/VuongLong","followers_url":"https://api.github.com/users/VuongLong/followers","following_url":"https://api.github.com/users/VuongLong/following{/other_user}","gists_url":"https://api.github.com/users/VuongLong/gists{/gist_id}","starred_url":"https://api.github.com/users/VuongLong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VuongLong/subscriptions","organizations_url":"https://api.github.com/users/VuongLong/orgs","repos_url":"https://api.github.com/users/VuongLong/repos","events_url":"https://api.github.com/users/VuongLong/events{/privacy}","received_events_url":"https://api.github.com/users/VuongLong/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-22T01:02:32Z","updated_at":"2015-07-23T06:03:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2ce0a98e115124263747aa106030b8bbbaab145a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/framgia/tms_29/pulls/18/commits","review_comments_url":"https://api.github.com/repos/framgia/tms_29/pulls/18/comments","review_comment_url":"https://api.github.com/repos/framgia/tms_29/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/tms_29/issues/18/comments","statuses_url":"https://api.github.com/repos/framgia/tms_29/statuses/f49ddcc5447e820c36dba8bd4e57cc4f9ba30185","head":{"label":"VuongLong:supervior_start_subject","ref":"supervior_start_subject","sha":"f49ddcc5447e820c36dba8bd4e57cc4f9ba30185","user":{"login":"VuongLong","id":5051736,"avatar_url":"https://avatars.githubusercontent.com/u/5051736?v=3","gravatar_id":"","url":"https://api.github.com/users/VuongLong","html_url":"https://github.com/VuongLong","followers_url":"https://api.github.com/users/VuongLong/followers","following_url":"https://api.github.com/users/VuongLong/following{/other_user}","gists_url":"https://api.github.com/users/VuongLong/gists{/gist_id}","starred_url":"https://api.github.com/users/VuongLong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VuongLong/subscriptions","organizations_url":"https://api.github.com/users/VuongLong/orgs","repos_url":"https://api.github.com/users/VuongLong/repos","events_url":"https://api.github.com/users/VuongLong/events{/privacy}","received_events_url":"https://api.github.com/users/VuongLong/received_events","type":"User","site_admin":false},"repo":{"id":39168509,"name":"tms_29","full_name":"VuongLong/tms_29","owner":{"login":"VuongLong","id":5051736,"avatar_url":"https://avatars.githubusercontent.com/u/5051736?v=3","gravatar_id":"","url":"https://api.github.com/users/VuongLong","html_url":"https://github.com/VuongLong","followers_url":"https://api.github.com/users/VuongLong/followers","following_url":"https://api.github.com/users/VuongLong/following{/other_user}","gists_url":"https://api.github.com/users/VuongLong/gists{/gist_id}","starred_url":"https://api.github.com/users/VuongLong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VuongLong/subscriptions","organizations_url":"https://api.github.com/users/VuongLong/orgs","repos_url":"https://api.github.com/users/VuongLong/repos","events_url":"https://api.github.com/users/VuongLong/events{/privacy}","received_events_url":"https://api.github.com/users/VuongLong/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/VuongLong/tms_29","description":"Framgia Training Management System (training)","fork":true,"url":"https://api.github.com/repos/VuongLong/tms_29","forks_url":"https://api.github.com/repos/VuongLong/tms_29/forks","keys_url":"https://api.github.com/repos/VuongLong/tms_29/keys{/key_id}","collaborators_url":"https://api.github.com/repos/VuongLong/tms_29/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/VuongLong/tms_29/teams","hooks_url":"https://api.github.com/repos/VuongLong/tms_29/hooks","issue_events_url":"https://api.github.com/repos/VuongLong/tms_29/issues/events{/number}","events_url":"https://api.github.com/repos/VuongLong/tms_29/events","assignees_url":"https://api.github.com/repos/VuongLong/tms_29/assignees{/user}","branches_url":"https://api.github.com/repos/VuongLong/tms_29/branches{/branch}","tags_url":"https://api.github.com/repos/VuongLong/tms_29/tags","blobs_url":"https://api.github.com/repos/VuongLong/tms_29/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/VuongLong/tms_29/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/VuongLong/tms_29/git/refs{/sha}","trees_url":"https://api.github.com/repos/VuongLong/tms_29/git/trees{/sha}","statuses_url":"https://api.github.com/repos/VuongLong/tms_29/statuses/{sha}","languages_url":"https://api.github.com/repos/VuongLong/tms_29/languages","stargazers_url":"https://api.github.com/repos/VuongLong/tms_29/stargazers","contributors_url":"https://api.github.com/repos/VuongLong/tms_29/contributors","subscribers_url":"https://api.github.com/repos/VuongLong/tms_29/subscribers","subscription_url":"https://api.github.com/repos/VuongLong/tms_29/subscription","commits_url":"https://api.github.com/repos/VuongLong/tms_29/commits{/sha}","git_commits_url":"https://api.github.com/repos/VuongLong/tms_29/git/commits{/sha}","comments_url":"https://api.github.com/repos/VuongLong/tms_29/comments{/number}","issue_comment_url":"https://api.github.com/repos/VuongLong/tms_29/issues/comments{/number}","contents_url":"https://api.github.com/repos/VuongLong/tms_29/contents/{+path}","compare_url":"https://api.github.com/repos/VuongLong/tms_29/compare/{base}...{head}","merges_url":"https://api.github.com/repos/VuongLong/tms_29/merges","archive_url":"https://api.github.com/repos/VuongLong/tms_29/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/VuongLong/tms_29/downloads","issues_url":"https://api.github.com/repos/VuongLong/tms_29/issues{/number}","pulls_url":"https://api.github.com/repos/VuongLong/tms_29/pulls{/number}","milestones_url":"https://api.github.com/repos/VuongLong/tms_29/milestones{/number}","notifications_url":"https://api.github.com/repos/VuongLong/tms_29/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/VuongLong/tms_29/labels{/name}","releases_url":"https://api.github.com/repos/VuongLong/tms_29/releases{/id}","created_at":"2015-07-16T00:49:37Z","updated_at":"2015-07-15T06:23:46Z","pushed_at":"2015-07-22T16:57:22Z","git_url":"git://github.com/VuongLong/tms_29.git","ssh_url":"git@github.com:VuongLong/tms_29.git","clone_url":"https://github.com/VuongLong/tms_29.git","svn_url":"https://github.com/VuongLong/tms_29","homepage":null,"size":1524,"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":"9eb358e4c3be1c32dc031eb191f3a4e68d7d1080","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":39120102,"name":"tms_29","full_name":"framgia/tms_29","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_29","description":"Framgia Training Management System (training)","fork":false,"url":"https://api.github.com/repos/framgia/tms_29","forks_url":"https://api.github.com/repos/framgia/tms_29/forks","keys_url":"https://api.github.com/repos/framgia/tms_29/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/tms_29/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/tms_29/teams","hooks_url":"https://api.github.com/repos/framgia/tms_29/hooks","issue_events_url":"https://api.github.com/repos/framgia/tms_29/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/tms_29/events","assignees_url":"https://api.github.com/repos/framgia/tms_29/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/tms_29/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/tms_29/tags","blobs_url":"https://api.github.com/repos/framgia/tms_29/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/tms_29/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/tms_29/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/tms_29/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/tms_29/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/tms_29/languages","stargazers_url":"https://api.github.com/repos/framgia/tms_29/stargazers","contributors_url":"https://api.github.com/repos/framgia/tms_29/contributors","subscribers_url":"https://api.github.com/repos/framgia/tms_29/subscribers","subscription_url":"https://api.github.com/repos/framgia/tms_29/subscription","commits_url":"https://api.github.com/repos/framgia/tms_29/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/tms_29/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/tms_29/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/tms_29/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/tms_29/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/tms_29/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/tms_29/merges","archive_url":"https://api.github.com/repos/framgia/tms_29/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/tms_29/downloads","issues_url":"https://api.github.com/repos/framgia/tms_29/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/tms_29/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/tms_29/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/tms_29/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/tms_29/labels{/name}","releases_url":"https://api.github.com/repos/framgia/tms_29/releases{/id}","created_at":"2015-07-15T06:23:46Z","updated_at":"2015-07-15T06:23:46Z","pushed_at":"2015-07-22T16:57:23Z","git_url":"git://github.com/framgia/tms_29.git","ssh_url":"git@github.com:framgia/tms_29.git","clone_url":"https://github.com/framgia/tms_29.git","svn_url":"https://github.com/framgia/tms_29","homepage":null,"size":1758,"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":4,"forks":3,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/tms_29/pulls/18"},"html":{"href":"https://github.com/framgia/tms_29/pull/18"},"issue":{"href":"https://api.github.com/repos/framgia/tms_29/issues/18"},"comments":{"href":"https://api.github.com/repos/framgia/tms_29/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/tms_29/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/tms_29/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/tms_29/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/tms_29/statuses/f49ddcc5447e820c36dba8bd4e57cc4f9ba30185"}}}}