{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/tms_11/pulls/comments/24220092","id":24220092,"diff_hunk":"@@ -0,0 +1,82 @@\n+class SubjectsController < ApplicationController\n+  before_action :set_subject, only: [:show, :edit, :update, :destroy]\n+  before_action :check_admin_user, only: [:create, :destroy, :new]\n+\n+  # GET /subjects\n+  # GET /subjects.json\n+  def index\n+    @subjects = Subject.all\n+  end\n+\n+  # GET /subjects/1\n+  # GET /subjects/1.json\n+  def show\n+  end\n+\n+  # GET /subjects/new\n+  def new\n+    @subject = Subject.new\n+  end\n+\n+  # GET /subjects/1/edit\n+  def edit\n+  end\n+\n+  # POST /subjects\n+  # POST /subjects.json\n+  def create\n+    @subject = Subject.new(subject_params)","path":"app/controllers/subjects_controller.rb","position":28,"original_position":28,"commit_id":"33843680c810cfd920869291647774f53f7295f5","original_commit_id":"33843680c810cfd920869291647774f53f7295f5","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":"remove ()","created_at":"2015-02-06T03:09:33Z","updated_at":"2015-02-06T03:09:33Z","html_url":"https://github.com/framgia/tms_11/pull/12#discussion_r24220092","pull_request_url":"https://api.github.com/repos/framgia/tms_11/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/framgia/tms_11/pulls/comments/24220092"},"html":{"href":"https://github.com/framgia/tms_11/pull/12#discussion_r24220092"},"pull_request":{"href":"https://api.github.com/repos/framgia/tms_11/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/tms_11/pulls/12","id":28781737,"html_url":"https://github.com/framgia/tms_11/pull/12","diff_url":"https://github.com/framgia/tms_11/pull/12.diff","patch_url":"https://github.com/framgia/tms_11/pull/12.patch","issue_url":"https://api.github.com/repos/framgia/tms_11/issues/12","number":12,"state":"open","locked":false,"title":"create_edit_show_subjects_whithout_task","user":{"login":"HoangVanTrinh92","id":10461921,"avatar_url":"https://avatars.githubusercontent.com/u/10461921?v=3","gravatar_id":"","url":"https://api.github.com/users/HoangVanTrinh92","html_url":"https://github.com/HoangVanTrinh92","followers_url":"https://api.github.com/users/HoangVanTrinh92/followers","following_url":"https://api.github.com/users/HoangVanTrinh92/following{/other_user}","gists_url":"https://api.github.com/users/HoangVanTrinh92/gists{/gist_id}","starred_url":"https://api.github.com/users/HoangVanTrinh92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HoangVanTrinh92/subscriptions","organizations_url":"https://api.github.com/users/HoangVanTrinh92/orgs","repos_url":"https://api.github.com/users/HoangVanTrinh92/repos","events_url":"https://api.github.com/users/HoangVanTrinh92/events{/privacy}","received_events_url":"https://api.github.com/users/HoangVanTrinh92/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-02-06T02:59:10Z","updated_at":"2015-02-06T03:09:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"019bc6015ba503f89ad9673351cc0d6c22effbab","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/framgia/tms_11/pulls/12/commits","review_comments_url":"https://api.github.com/repos/framgia/tms_11/pulls/12/comments","review_comment_url":"https://api.github.com/repos/framgia/tms_11/pulls/comments/{number}","comments_url":"https://api.github.com/repos/framgia/tms_11/issues/12/comments","statuses_url":"https://api.github.com/repos/framgia/tms_11/statuses/33843680c810cfd920869291647774f53f7295f5","head":{"label":"HoangVanTrinh92:create_edit_show_subjects_whithout_task","ref":"create_edit_show_subjects_whithout_task","sha":"33843680c810cfd920869291647774f53f7295f5","user":{"login":"HoangVanTrinh92","id":10461921,"avatar_url":"https://avatars.githubusercontent.com/u/10461921?v=3","gravatar_id":"","url":"https://api.github.com/users/HoangVanTrinh92","html_url":"https://github.com/HoangVanTrinh92","followers_url":"https://api.github.com/users/HoangVanTrinh92/followers","following_url":"https://api.github.com/users/HoangVanTrinh92/following{/other_user}","gists_url":"https://api.github.com/users/HoangVanTrinh92/gists{/gist_id}","starred_url":"https://api.github.com/users/HoangVanTrinh92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HoangVanTrinh92/subscriptions","organizations_url":"https://api.github.com/users/HoangVanTrinh92/orgs","repos_url":"https://api.github.com/users/HoangVanTrinh92/repos","events_url":"https://api.github.com/users/HoangVanTrinh92/events{/privacy}","received_events_url":"https://api.github.com/users/HoangVanTrinh92/received_events","type":"User","site_admin":false},"repo":{"id":29847727,"name":"tms_11","full_name":"HoangVanTrinh92/tms_11","owner":{"login":"HoangVanTrinh92","id":10461921,"avatar_url":"https://avatars.githubusercontent.com/u/10461921?v=3","gravatar_id":"","url":"https://api.github.com/users/HoangVanTrinh92","html_url":"https://github.com/HoangVanTrinh92","followers_url":"https://api.github.com/users/HoangVanTrinh92/followers","following_url":"https://api.github.com/users/HoangVanTrinh92/following{/other_user}","gists_url":"https://api.github.com/users/HoangVanTrinh92/gists{/gist_id}","starred_url":"https://api.github.com/users/HoangVanTrinh92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HoangVanTrinh92/subscriptions","organizations_url":"https://api.github.com/users/HoangVanTrinh92/orgs","repos_url":"https://api.github.com/users/HoangVanTrinh92/repos","events_url":"https://api.github.com/users/HoangVanTrinh92/events{/privacy}","received_events_url":"https://api.github.com/users/HoangVanTrinh92/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/HoangVanTrinh92/tms_11","description":"Framgia Training Management System (training)","fork":true,"url":"https://api.github.com/repos/HoangVanTrinh92/tms_11","forks_url":"https://api.github.com/repos/HoangVanTrinh92/tms_11/forks","keys_url":"https://api.github.com/repos/HoangVanTrinh92/tms_11/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HoangVanTrinh92/tms_11/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HoangVanTrinh92/tms_11/teams","hooks_url":"https://api.github.com/repos/HoangVanTrinh92/tms_11/hooks","issue_events_url":"https://api.github.com/repos/HoangVanTrinh92/tms_11/issues/events{/number}","events_url":"https://api.github.com/repos/HoangVanTrinh92/tms_11/events","assignees_url":"https://api.github.com/repos/HoangVanTrinh92/tms_11/assignees{/user}","branches_url":"https://api.github.com/repos/HoangVanTrinh92/tms_11/branches{/branch}","tags_url":"https://api.github.com/repos/HoangVanTrinh92/tms_11/tags","blobs_url":"https://api.github.com/repos/HoangVanTrinh92/tms_11/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HoangVanTrinh92/tms_11/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HoangVanTrinh92/tms_11/git/refs{/sha}","trees_url":"https://api.github.com/repos/HoangVanTrinh92/tms_11/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HoangVanTrinh92/tms_11/statuses/{sha}","languages_url":"https://api.github.com/repos/HoangVanTrinh92/tms_11/languages","stargazers_url":"https://api.github.com/repos/HoangVanTrinh92/tms_11/stargazers","contributors_url":"https://api.github.com/repos/HoangVanTrinh92/tms_11/contributors","subscribers_url":"https://api.github.com/repos/HoangVanTrinh92/tms_11/subscribers","subscription_url":"https://api.github.com/repos/HoangVanTrinh92/tms_11/subscription","commits_url":"https://api.github.com/repos/HoangVanTrinh92/tms_11/commits{/sha}","git_commits_url":"https://api.github.com/repos/HoangVanTrinh92/tms_11/git/commits{/sha}","comments_url":"https://api.github.com/repos/HoangVanTrinh92/tms_11/comments{/number}","issue_comment_url":"https://api.github.com/repos/HoangVanTrinh92/tms_11/issues/comments/{number}","contents_url":"https://api.github.com/repos/HoangVanTrinh92/tms_11/contents/{+path}","compare_url":"https://api.github.com/repos/HoangVanTrinh92/tms_11/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HoangVanTrinh92/tms_11/merges","archive_url":"https://api.github.com/repos/HoangVanTrinh92/tms_11/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HoangVanTrinh92/tms_11/downloads","issues_url":"https://api.github.com/repos/HoangVanTrinh92/tms_11/issues{/number}","pulls_url":"https://api.github.com/repos/HoangVanTrinh92/tms_11/pulls{/number}","milestones_url":"https://api.github.com/repos/HoangVanTrinh92/tms_11/milestones{/number}","notifications_url":"https://api.github.com/repos/HoangVanTrinh92/tms_11/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HoangVanTrinh92/tms_11/labels{/name}","releases_url":"https://api.github.com/repos/HoangVanTrinh92/tms_11/releases{/id}","created_at":"2015-01-26T06:16:36Z","updated_at":"2015-01-26T01:57:52Z","pushed_at":"2015-02-06T02:58:36Z","git_url":"git://github.com/HoangVanTrinh92/tms_11.git","ssh_url":"git@github.com:HoangVanTrinh92/tms_11.git","clone_url":"https://github.com/HoangVanTrinh92/tms_11.git","svn_url":"https://github.com/HoangVanTrinh92/tms_11","homepage":null,"size":120,"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":"c649c63453733c9b5f77f6b6389e6cd272ff5b14","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":29840538,"name":"tms_11","full_name":"framgia/tms_11","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_11","description":"Framgia Training Management System (training)","fork":false,"url":"https://api.github.com/repos/framgia/tms_11","forks_url":"https://api.github.com/repos/framgia/tms_11/forks","keys_url":"https://api.github.com/repos/framgia/tms_11/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/tms_11/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/tms_11/teams","hooks_url":"https://api.github.com/repos/framgia/tms_11/hooks","issue_events_url":"https://api.github.com/repos/framgia/tms_11/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/tms_11/events","assignees_url":"https://api.github.com/repos/framgia/tms_11/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/tms_11/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/tms_11/tags","blobs_url":"https://api.github.com/repos/framgia/tms_11/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/tms_11/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/tms_11/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/tms_11/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/tms_11/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/tms_11/languages","stargazers_url":"https://api.github.com/repos/framgia/tms_11/stargazers","contributors_url":"https://api.github.com/repos/framgia/tms_11/contributors","subscribers_url":"https://api.github.com/repos/framgia/tms_11/subscribers","subscription_url":"https://api.github.com/repos/framgia/tms_11/subscription","commits_url":"https://api.github.com/repos/framgia/tms_11/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/tms_11/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/tms_11/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/tms_11/issues/comments/{number}","contents_url":"https://api.github.com/repos/framgia/tms_11/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/tms_11/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/tms_11/merges","archive_url":"https://api.github.com/repos/framgia/tms_11/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/tms_11/downloads","issues_url":"https://api.github.com/repos/framgia/tms_11/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/tms_11/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/tms_11/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/tms_11/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/tms_11/labels{/name}","releases_url":"https://api.github.com/repos/framgia/tms_11/releases{/id}","created_at":"2015-01-26T01:57:52Z","updated_at":"2015-01-26T01:57:52Z","pushed_at":"2015-02-05T02:36:58Z","git_url":"git://github.com/framgia/tms_11.git","ssh_url":"git@github.com:framgia/tms_11.git","clone_url":"https://github.com/framgia/tms_11.git","svn_url":"https://github.com/framgia/tms_11","homepage":null,"size":324,"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/tms_11/pulls/12"},"html":{"href":"https://github.com/framgia/tms_11/pull/12"},"issue":{"href":"https://api.github.com/repos/framgia/tms_11/issues/12"},"comments":{"href":"https://api.github.com/repos/framgia/tms_11/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/tms_11/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/tms_11/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/framgia/tms_11/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/tms_11/statuses/33843680c810cfd920869291647774f53f7295f5"}}}}