{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/tms_4/pulls/comments/22447072","id":22447072,"diff_hunk":"@@ -18,6 +18,14 @@ class User < ActiveRecord::Base\n   scope :trainees, -> { where supervisor: false }\n   scope :supervisors, -> { where supervisor: true }\n \n+  def self.current","path":"app/models/user.rb","position":4,"original_position":4,"commit_id":"ec6f37dce69e265c3808bdc4522144c0d062bd73","original_commit_id":"ec6f37dce69e265c3808bdc4522144c0d062bd73","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":"???\r\nyou should use current_user in session_helper","created_at":"2015-01-05T04:03:02Z","updated_at":"2015-01-05T04:03:02Z","html_url":"https://github.com/framgia/tms_4/pull/13#discussion_r22447072","pull_request_url":"https://api.github.com/repos/framgia/tms_4/pulls/13","_links":{"self":{"href":"https://api.github.com/repos/framgia/tms_4/pulls/comments/22447072"},"html":{"href":"https://github.com/framgia/tms_4/pull/13#discussion_r22447072"},"pull_request":{"href":"https://api.github.com/repos/framgia/tms_4/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/tms_4/pulls/13","id":26804517,"html_url":"https://github.com/framgia/tms_4/pull/13","diff_url":"https://github.com/framgia/tms_4/pull/13.diff","patch_url":"https://github.com/framgia/tms_4/pull/13.patch","issue_url":"https://api.github.com/repos/framgia/tms_4/issues/13","number":13,"state":"open","locked":false,"title":"User History-Activity-and-Report","user":{"login":"sreangrathanak","id":6789425,"avatar_url":"https://avatars.githubusercontent.com/u/6789425?v=3","gravatar_id":"","url":"https://api.github.com/users/sreangrathanak","html_url":"https://github.com/sreangrathanak","followers_url":"https://api.github.com/users/sreangrathanak/followers","following_url":"https://api.github.com/users/sreangrathanak/following{/other_user}","gists_url":"https://api.github.com/users/sreangrathanak/gists{/gist_id}","starred_url":"https://api.github.com/users/sreangrathanak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sreangrathanak/subscriptions","organizations_url":"https://api.github.com/users/sreangrathanak/orgs","repos_url":"https://api.github.com/users/sreangrathanak/repos","events_url":"https://api.github.com/users/sreangrathanak/events{/privacy}","received_events_url":"https://api.github.com/users/sreangrathanak/received_events","type":"User","site_admin":false},"body":"This pull is for User History Activity and Their daily report, Please check and review. Thank","created_at":"2015-01-05T03:11:57Z","updated_at":"2015-01-05T04:03:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"37cf81ebab6c7710fbde0c7a9ff607284caf6c21","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/framgia/tms_4/pulls/13/commits","review_comments_url":"https://api.github.com/repos/framgia/tms_4/pulls/13/comments","review_comment_url":"https://api.github.com/repos/framgia/tms_4/pulls/comments/{number}","comments_url":"https://api.github.com/repos/framgia/tms_4/issues/13/comments","statuses_url":"https://api.github.com/repos/framgia/tms_4/statuses/ec6f37dce69e265c3808bdc4522144c0d062bd73","head":{"label":"sreangrathanak:create-user-history-and-activity","ref":"create-user-history-and-activity","sha":"ec6f37dce69e265c3808bdc4522144c0d062bd73","user":{"login":"sreangrathanak","id":6789425,"avatar_url":"https://avatars.githubusercontent.com/u/6789425?v=3","gravatar_id":"","url":"https://api.github.com/users/sreangrathanak","html_url":"https://github.com/sreangrathanak","followers_url":"https://api.github.com/users/sreangrathanak/followers","following_url":"https://api.github.com/users/sreangrathanak/following{/other_user}","gists_url":"https://api.github.com/users/sreangrathanak/gists{/gist_id}","starred_url":"https://api.github.com/users/sreangrathanak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sreangrathanak/subscriptions","organizations_url":"https://api.github.com/users/sreangrathanak/orgs","repos_url":"https://api.github.com/users/sreangrathanak/repos","events_url":"https://api.github.com/users/sreangrathanak/events{/privacy}","received_events_url":"https://api.github.com/users/sreangrathanak/received_events","type":"User","site_admin":false},"repo":{"id":27806695,"name":"tms_4","full_name":"sreangrathanak/tms_4","owner":{"login":"sreangrathanak","id":6789425,"avatar_url":"https://avatars.githubusercontent.com/u/6789425?v=3","gravatar_id":"","url":"https://api.github.com/users/sreangrathanak","html_url":"https://github.com/sreangrathanak","followers_url":"https://api.github.com/users/sreangrathanak/followers","following_url":"https://api.github.com/users/sreangrathanak/following{/other_user}","gists_url":"https://api.github.com/users/sreangrathanak/gists{/gist_id}","starred_url":"https://api.github.com/users/sreangrathanak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sreangrathanak/subscriptions","organizations_url":"https://api.github.com/users/sreangrathanak/orgs","repos_url":"https://api.github.com/users/sreangrathanak/repos","events_url":"https://api.github.com/users/sreangrathanak/events{/privacy}","received_events_url":"https://api.github.com/users/sreangrathanak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sreangrathanak/tms_4","description":"Framgia Training Management System","fork":true,"url":"https://api.github.com/repos/sreangrathanak/tms_4","forks_url":"https://api.github.com/repos/sreangrathanak/tms_4/forks","keys_url":"https://api.github.com/repos/sreangrathanak/tms_4/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sreangrathanak/tms_4/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sreangrathanak/tms_4/teams","hooks_url":"https://api.github.com/repos/sreangrathanak/tms_4/hooks","issue_events_url":"https://api.github.com/repos/sreangrathanak/tms_4/issues/events{/number}","events_url":"https://api.github.com/repos/sreangrathanak/tms_4/events","assignees_url":"https://api.github.com/repos/sreangrathanak/tms_4/assignees{/user}","branches_url":"https://api.github.com/repos/sreangrathanak/tms_4/branches{/branch}","tags_url":"https://api.github.com/repos/sreangrathanak/tms_4/tags","blobs_url":"https://api.github.com/repos/sreangrathanak/tms_4/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sreangrathanak/tms_4/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sreangrathanak/tms_4/git/refs{/sha}","trees_url":"https://api.github.com/repos/sreangrathanak/tms_4/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sreangrathanak/tms_4/statuses/{sha}","languages_url":"https://api.github.com/repos/sreangrathanak/tms_4/languages","stargazers_url":"https://api.github.com/repos/sreangrathanak/tms_4/stargazers","contributors_url":"https://api.github.com/repos/sreangrathanak/tms_4/contributors","subscribers_url":"https://api.github.com/repos/sreangrathanak/tms_4/subscribers","subscription_url":"https://api.github.com/repos/sreangrathanak/tms_4/subscription","commits_url":"https://api.github.com/repos/sreangrathanak/tms_4/commits{/sha}","git_commits_url":"https://api.github.com/repos/sreangrathanak/tms_4/git/commits{/sha}","comments_url":"https://api.github.com/repos/sreangrathanak/tms_4/comments{/number}","issue_comment_url":"https://api.github.com/repos/sreangrathanak/tms_4/issues/comments/{number}","contents_url":"https://api.github.com/repos/sreangrathanak/tms_4/contents/{+path}","compare_url":"https://api.github.com/repos/sreangrathanak/tms_4/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sreangrathanak/tms_4/merges","archive_url":"https://api.github.com/repos/sreangrathanak/tms_4/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sreangrathanak/tms_4/downloads","issues_url":"https://api.github.com/repos/sreangrathanak/tms_4/issues{/number}","pulls_url":"https://api.github.com/repos/sreangrathanak/tms_4/pulls{/number}","milestones_url":"https://api.github.com/repos/sreangrathanak/tms_4/milestones{/number}","notifications_url":"https://api.github.com/repos/sreangrathanak/tms_4/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sreangrathanak/tms_4/labels{/name}","releases_url":"https://api.github.com/repos/sreangrathanak/tms_4/releases{/id}","created_at":"2014-12-10T07:00:29Z","updated_at":"2014-12-08T22:34:03Z","pushed_at":"2015-01-05T03:53:00Z","git_url":"git://github.com/sreangrathanak/tms_4.git","ssh_url":"git@github.com:sreangrathanak/tms_4.git","clone_url":"https://github.com/sreangrathanak/tms_4.git","svn_url":"https://github.com/sreangrathanak/tms_4","homepage":null,"size":215,"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":"7ac69d8a804ac3a6d2f70b02203abcac17a0123c","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":27738563,"name":"tms_4","full_name":"framgia/tms_4","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_4","description":"Framgia Training Management System","fork":false,"url":"https://api.github.com/repos/framgia/tms_4","forks_url":"https://api.github.com/repos/framgia/tms_4/forks","keys_url":"https://api.github.com/repos/framgia/tms_4/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/tms_4/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/tms_4/teams","hooks_url":"https://api.github.com/repos/framgia/tms_4/hooks","issue_events_url":"https://api.github.com/repos/framgia/tms_4/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/tms_4/events","assignees_url":"https://api.github.com/repos/framgia/tms_4/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/tms_4/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/tms_4/tags","blobs_url":"https://api.github.com/repos/framgia/tms_4/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/tms_4/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/tms_4/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/tms_4/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/tms_4/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/tms_4/languages","stargazers_url":"https://api.github.com/repos/framgia/tms_4/stargazers","contributors_url":"https://api.github.com/repos/framgia/tms_4/contributors","subscribers_url":"https://api.github.com/repos/framgia/tms_4/subscribers","subscription_url":"https://api.github.com/repos/framgia/tms_4/subscription","commits_url":"https://api.github.com/repos/framgia/tms_4/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/tms_4/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/tms_4/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/tms_4/issues/comments/{number}","contents_url":"https://api.github.com/repos/framgia/tms_4/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/tms_4/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/tms_4/merges","archive_url":"https://api.github.com/repos/framgia/tms_4/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/tms_4/downloads","issues_url":"https://api.github.com/repos/framgia/tms_4/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/tms_4/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/tms_4/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/tms_4/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/tms_4/labels{/name}","releases_url":"https://api.github.com/repos/framgia/tms_4/releases{/id}","created_at":"2014-12-08T22:34:03Z","updated_at":"2014-12-08T22:34:03Z","pushed_at":"2015-01-05T02:44:43Z","git_url":"git://github.com/framgia/tms_4.git","ssh_url":"git@github.com:framgia/tms_4.git","clone_url":"https://github.com/framgia/tms_4.git","svn_url":"https://github.com/framgia/tms_4","homepage":null,"size":406,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/tms_4/pulls/13"},"html":{"href":"https://github.com/framgia/tms_4/pull/13"},"issue":{"href":"https://api.github.com/repos/framgia/tms_4/issues/13"},"comments":{"href":"https://api.github.com/repos/framgia/tms_4/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/tms_4/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/tms_4/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/framgia/tms_4/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/tms_4/statuses/ec6f37dce69e265c3808bdc4522144c0d062bd73"}}}}