{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fels_63/pulls/comments/33437186","id":33437186,"diff_hunk":"@@ -1,5 +1,10 @@\n class StaticPagesController < ApplicationController\n   def home\n+    if logged_in?\n+      @lessons = current_user.lesson_status.paginate(page: params[:page],\n+        per_page: Settings.length.page).order created_at: :DESC","path":"app/controllers/static_pages_controller.rb","position":5,"original_position":5,"commit_id":"06a3822d4eb85485d9aedab2f3dbd06c171096dd","original_commit_id":"06a3822d4eb85485d9aedab2f3dbd06c171096dd","user":{"login":"NguyenTanDuc","id":12166369,"avatar_url":"https://avatars.githubusercontent.com/u/12166369?v=3","gravatar_id":"","url":"https://api.github.com/users/NguyenTanDuc","html_url":"https://github.com/NguyenTanDuc","followers_url":"https://api.github.com/users/NguyenTanDuc/followers","following_url":"https://api.github.com/users/NguyenTanDuc/following{/other_user}","gists_url":"https://api.github.com/users/NguyenTanDuc/gists{/gist_id}","starred_url":"https://api.github.com/users/NguyenTanDuc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NguyenTanDuc/subscriptions","organizations_url":"https://api.github.com/users/NguyenTanDuc/orgs","repos_url":"https://api.github.com/users/NguyenTanDuc/repos","events_url":"https://api.github.com/users/NguyenTanDuc/events{/privacy}","received_events_url":"https://api.github.com/users/NguyenTanDuc/received_events","type":"User","site_admin":false},"body":"use scope for order","created_at":"2015-06-29T06:32:51Z","updated_at":"2015-06-29T06:32:51Z","html_url":"https://github.com/framgia/fels_63/pull/21#discussion_r33437186","pull_request_url":"https://api.github.com/repos/framgia/fels_63/pulls/21","_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_63/pulls/comments/33437186"},"html":{"href":"https://github.com/framgia/fels_63/pull/21#discussion_r33437186"},"pull_request":{"href":"https://api.github.com/repos/framgia/fels_63/pulls/21"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fels_63/pulls/21","id":38744876,"html_url":"https://github.com/framgia/fels_63/pull/21","diff_url":"https://github.com/framgia/fels_63/pull/21.diff","patch_url":"https://github.com/framgia/fels_63/pull/21.patch","issue_url":"https://api.github.com/repos/framgia/fels_63/issues/21","number":21,"state":"open","locked":false,"title":"User page","user":{"login":"MichalPlachyFramgia","id":12692498,"avatar_url":"https://avatars.githubusercontent.com/u/12692498?v=3","gravatar_id":"","url":"https://api.github.com/users/MichalPlachyFramgia","html_url":"https://github.com/MichalPlachyFramgia","followers_url":"https://api.github.com/users/MichalPlachyFramgia/followers","following_url":"https://api.github.com/users/MichalPlachyFramgia/following{/other_user}","gists_url":"https://api.github.com/users/MichalPlachyFramgia/gists{/gist_id}","starred_url":"https://api.github.com/users/MichalPlachyFramgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichalPlachyFramgia/subscriptions","organizations_url":"https://api.github.com/users/MichalPlachyFramgia/orgs","repos_url":"https://api.github.com/users/MichalPlachyFramgia/repos","events_url":"https://api.github.com/users/MichalPlachyFramgia/events{/privacy}","received_events_url":"https://api.github.com/users/MichalPlachyFramgia/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-29T06:30:21Z","updated_at":"2015-06-29T06:32:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5f4363d920851419a083ba2462faed9151b5cf7d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fels_63/pulls/21/commits","review_comments_url":"https://api.github.com/repos/framgia/fels_63/pulls/21/comments","review_comment_url":"https://api.github.com/repos/framgia/fels_63/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fels_63/issues/21/comments","statuses_url":"https://api.github.com/repos/framgia/fels_63/statuses/06a3822d4eb85485d9aedab2f3dbd06c171096dd","head":{"label":"MichalPlachyFramgia:home_page_user","ref":"home_page_user","sha":"06a3822d4eb85485d9aedab2f3dbd06c171096dd","user":{"login":"MichalPlachyFramgia","id":12692498,"avatar_url":"https://avatars.githubusercontent.com/u/12692498?v=3","gravatar_id":"","url":"https://api.github.com/users/MichalPlachyFramgia","html_url":"https://github.com/MichalPlachyFramgia","followers_url":"https://api.github.com/users/MichalPlachyFramgia/followers","following_url":"https://api.github.com/users/MichalPlachyFramgia/following{/other_user}","gists_url":"https://api.github.com/users/MichalPlachyFramgia/gists{/gist_id}","starred_url":"https://api.github.com/users/MichalPlachyFramgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichalPlachyFramgia/subscriptions","organizations_url":"https://api.github.com/users/MichalPlachyFramgia/orgs","repos_url":"https://api.github.com/users/MichalPlachyFramgia/repos","events_url":"https://api.github.com/users/MichalPlachyFramgia/events{/privacy}","received_events_url":"https://api.github.com/users/MichalPlachyFramgia/received_events","type":"User","site_admin":false},"repo":{"id":37839609,"name":"fels_63","full_name":"MichalPlachyFramgia/fels_63","owner":{"login":"MichalPlachyFramgia","id":12692498,"avatar_url":"https://avatars.githubusercontent.com/u/12692498?v=3","gravatar_id":"","url":"https://api.github.com/users/MichalPlachyFramgia","html_url":"https://github.com/MichalPlachyFramgia","followers_url":"https://api.github.com/users/MichalPlachyFramgia/followers","following_url":"https://api.github.com/users/MichalPlachyFramgia/following{/other_user}","gists_url":"https://api.github.com/users/MichalPlachyFramgia/gists{/gist_id}","starred_url":"https://api.github.com/users/MichalPlachyFramgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichalPlachyFramgia/subscriptions","organizations_url":"https://api.github.com/users/MichalPlachyFramgia/orgs","repos_url":"https://api.github.com/users/MichalPlachyFramgia/repos","events_url":"https://api.github.com/users/MichalPlachyFramgia/events{/privacy}","received_events_url":"https://api.github.com/users/MichalPlachyFramgia/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MichalPlachyFramgia/fels_63","description":"Framgia E-Learning System (training)","fork":true,"url":"https://api.github.com/repos/MichalPlachyFramgia/fels_63","forks_url":"https://api.github.com/repos/MichalPlachyFramgia/fels_63/forks","keys_url":"https://api.github.com/repos/MichalPlachyFramgia/fels_63/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MichalPlachyFramgia/fels_63/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MichalPlachyFramgia/fels_63/teams","hooks_url":"https://api.github.com/repos/MichalPlachyFramgia/fels_63/hooks","issue_events_url":"https://api.github.com/repos/MichalPlachyFramgia/fels_63/issues/events{/number}","events_url":"https://api.github.com/repos/MichalPlachyFramgia/fels_63/events","assignees_url":"https://api.github.com/repos/MichalPlachyFramgia/fels_63/assignees{/user}","branches_url":"https://api.github.com/repos/MichalPlachyFramgia/fels_63/branches{/branch}","tags_url":"https://api.github.com/repos/MichalPlachyFramgia/fels_63/tags","blobs_url":"https://api.github.com/repos/MichalPlachyFramgia/fels_63/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MichalPlachyFramgia/fels_63/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MichalPlachyFramgia/fels_63/git/refs{/sha}","trees_url":"https://api.github.com/repos/MichalPlachyFramgia/fels_63/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MichalPlachyFramgia/fels_63/statuses/{sha}","languages_url":"https://api.github.com/repos/MichalPlachyFramgia/fels_63/languages","stargazers_url":"https://api.github.com/repos/MichalPlachyFramgia/fels_63/stargazers","contributors_url":"https://api.github.com/repos/MichalPlachyFramgia/fels_63/contributors","subscribers_url":"https://api.github.com/repos/MichalPlachyFramgia/fels_63/subscribers","subscription_url":"https://api.github.com/repos/MichalPlachyFramgia/fels_63/subscription","commits_url":"https://api.github.com/repos/MichalPlachyFramgia/fels_63/commits{/sha}","git_commits_url":"https://api.github.com/repos/MichalPlachyFramgia/fels_63/git/commits{/sha}","comments_url":"https://api.github.com/repos/MichalPlachyFramgia/fels_63/comments{/number}","issue_comment_url":"https://api.github.com/repos/MichalPlachyFramgia/fels_63/issues/comments{/number}","contents_url":"https://api.github.com/repos/MichalPlachyFramgia/fels_63/contents/{+path}","compare_url":"https://api.github.com/repos/MichalPlachyFramgia/fels_63/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MichalPlachyFramgia/fels_63/merges","archive_url":"https://api.github.com/repos/MichalPlachyFramgia/fels_63/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MichalPlachyFramgia/fels_63/downloads","issues_url":"https://api.github.com/repos/MichalPlachyFramgia/fels_63/issues{/number}","pulls_url":"https://api.github.com/repos/MichalPlachyFramgia/fels_63/pulls{/number}","milestones_url":"https://api.github.com/repos/MichalPlachyFramgia/fels_63/milestones{/number}","notifications_url":"https://api.github.com/repos/MichalPlachyFramgia/fels_63/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MichalPlachyFramgia/fels_63/labels{/name}","releases_url":"https://api.github.com/repos/MichalPlachyFramgia/fels_63/releases{/id}","created_at":"2015-06-22T05:54:24Z","updated_at":"2015-06-22T02:50:21Z","pushed_at":"2015-06-29T06:30:01Z","git_url":"git://github.com/MichalPlachyFramgia/fels_63.git","ssh_url":"git@github.com:MichalPlachyFramgia/fels_63.git","clone_url":"https://github.com/MichalPlachyFramgia/fels_63.git","svn_url":"https://github.com/MichalPlachyFramgia/fels_63","homepage":null,"size":218,"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":"7c889ef5c31bef4f0a83731b427792656b2b230e","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":37835012,"name":"fels_63","full_name":"framgia/fels_63","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/fels_63","description":"Framgia E-Learning System (training)","fork":false,"url":"https://api.github.com/repos/framgia/fels_63","forks_url":"https://api.github.com/repos/framgia/fels_63/forks","keys_url":"https://api.github.com/repos/framgia/fels_63/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fels_63/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fels_63/teams","hooks_url":"https://api.github.com/repos/framgia/fels_63/hooks","issue_events_url":"https://api.github.com/repos/framgia/fels_63/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fels_63/events","assignees_url":"https://api.github.com/repos/framgia/fels_63/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fels_63/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fels_63/tags","blobs_url":"https://api.github.com/repos/framgia/fels_63/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fels_63/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fels_63/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fels_63/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fels_63/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fels_63/languages","stargazers_url":"https://api.github.com/repos/framgia/fels_63/stargazers","contributors_url":"https://api.github.com/repos/framgia/fels_63/contributors","subscribers_url":"https://api.github.com/repos/framgia/fels_63/subscribers","subscription_url":"https://api.github.com/repos/framgia/fels_63/subscription","commits_url":"https://api.github.com/repos/framgia/fels_63/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fels_63/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fels_63/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fels_63/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fels_63/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fels_63/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fels_63/merges","archive_url":"https://api.github.com/repos/framgia/fels_63/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fels_63/downloads","issues_url":"https://api.github.com/repos/framgia/fels_63/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fels_63/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fels_63/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fels_63/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fels_63/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fels_63/releases{/id}","created_at":"2015-06-22T02:50:21Z","updated_at":"2015-06-22T02:50:21Z","pushed_at":"2015-06-29T06:30:21Z","git_url":"git://github.com/framgia/fels_63.git","ssh_url":"git@github.com:framgia/fels_63.git","clone_url":"https://github.com/framgia/fels_63.git","svn_url":"https://github.com/framgia/fels_63","homepage":null,"size":658,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":6,"forks":5,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_63/pulls/21"},"html":{"href":"https://github.com/framgia/fels_63/pull/21"},"issue":{"href":"https://api.github.com/repos/framgia/fels_63/issues/21"},"comments":{"href":"https://api.github.com/repos/framgia/fels_63/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fels_63/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fels_63/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fels_63/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fels_63/statuses/06a3822d4eb85485d9aedab2f3dbd06c171096dd"}}}}