{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fels_43/pulls/comments/27939282","id":27939282,"diff_hunk":"@@ -27,4 +27,13 @@ def unfollow other_user\n   def following? other_user\n     following.include? other_user\n   end\n+\n+  def feed\n+    Lesson.where(\"user_id IN (:following_ids) OR user_id = :user_id\",","path":"app/models/user.rb","position":6,"original_position":6,"commit_id":"55382fdcbd38b5ab045e6255a6fc66659c8a779a","original_commit_id":"55382fdcbd38b5ab045e6255a6fc66659c8a779a","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":"move scope","created_at":"2015-04-08T02:51:52Z","updated_at":"2015-04-08T02:51:52Z","html_url":"https://github.com/framgia/fels_43/pull/8#discussion_r27939282","pull_request_url":"https://api.github.com/repos/framgia/fels_43/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_43/pulls/comments/27939282"},"html":{"href":"https://github.com/framgia/fels_43/pull/8#discussion_r27939282"},"pull_request":{"href":"https://api.github.com/repos/framgia/fels_43/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fels_43/pulls/8","id":32750416,"html_url":"https://github.com/framgia/fels_43/pull/8","diff_url":"https://github.com/framgia/fels_43/pull/8.diff","patch_url":"https://github.com/framgia/fels_43/pull/8.patch","issue_url":"https://api.github.com/repos/framgia/fels_43/issues/8","number":8,"state":"open","locked":false,"title":"Show activities","user":{"login":"nguyenduyta","id":11607910,"avatar_url":"https://avatars.githubusercontent.com/u/11607910?v=3","gravatar_id":"","url":"https://api.github.com/users/nguyenduyta","html_url":"https://github.com/nguyenduyta","followers_url":"https://api.github.com/users/nguyenduyta/followers","following_url":"https://api.github.com/users/nguyenduyta/following{/other_user}","gists_url":"https://api.github.com/users/nguyenduyta/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenduyta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenduyta/subscriptions","organizations_url":"https://api.github.com/users/nguyenduyta/orgs","repos_url":"https://api.github.com/users/nguyenduyta/repos","events_url":"https://api.github.com/users/nguyenduyta/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenduyta/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-07T10:16:48Z","updated_at":"2015-04-08T02:51:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e1dad3f6fc3dc0f831f9d183878d583098f6d222","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fels_43/pulls/8/commits","review_comments_url":"https://api.github.com/repos/framgia/fels_43/pulls/8/comments","review_comment_url":"https://api.github.com/repos/framgia/fels_43/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fels_43/issues/8/comments","statuses_url":"https://api.github.com/repos/framgia/fels_43/statuses/55382fdcbd38b5ab045e6255a6fc66659c8a779a","head":{"label":"nguyenduyta:activities","ref":"activities","sha":"55382fdcbd38b5ab045e6255a6fc66659c8a779a","user":{"login":"nguyenduyta","id":11607910,"avatar_url":"https://avatars.githubusercontent.com/u/11607910?v=3","gravatar_id":"","url":"https://api.github.com/users/nguyenduyta","html_url":"https://github.com/nguyenduyta","followers_url":"https://api.github.com/users/nguyenduyta/followers","following_url":"https://api.github.com/users/nguyenduyta/following{/other_user}","gists_url":"https://api.github.com/users/nguyenduyta/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenduyta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenduyta/subscriptions","organizations_url":"https://api.github.com/users/nguyenduyta/orgs","repos_url":"https://api.github.com/users/nguyenduyta/repos","events_url":"https://api.github.com/users/nguyenduyta/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenduyta/received_events","type":"User","site_admin":false},"repo":{"id":33162116,"name":"fels_43","full_name":"nguyenduyta/fels_43","owner":{"login":"nguyenduyta","id":11607910,"avatar_url":"https://avatars.githubusercontent.com/u/11607910?v=3","gravatar_id":"","url":"https://api.github.com/users/nguyenduyta","html_url":"https://github.com/nguyenduyta","followers_url":"https://api.github.com/users/nguyenduyta/followers","following_url":"https://api.github.com/users/nguyenduyta/following{/other_user}","gists_url":"https://api.github.com/users/nguyenduyta/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenduyta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenduyta/subscriptions","organizations_url":"https://api.github.com/users/nguyenduyta/orgs","repos_url":"https://api.github.com/users/nguyenduyta/repos","events_url":"https://api.github.com/users/nguyenduyta/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenduyta/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nguyenduyta/fels_43","description":"Framgia E-Learning System (training)","fork":true,"url":"https://api.github.com/repos/nguyenduyta/fels_43","forks_url":"https://api.github.com/repos/nguyenduyta/fels_43/forks","keys_url":"https://api.github.com/repos/nguyenduyta/fels_43/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nguyenduyta/fels_43/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nguyenduyta/fels_43/teams","hooks_url":"https://api.github.com/repos/nguyenduyta/fels_43/hooks","issue_events_url":"https://api.github.com/repos/nguyenduyta/fels_43/issues/events{/number}","events_url":"https://api.github.com/repos/nguyenduyta/fels_43/events","assignees_url":"https://api.github.com/repos/nguyenduyta/fels_43/assignees{/user}","branches_url":"https://api.github.com/repos/nguyenduyta/fels_43/branches{/branch}","tags_url":"https://api.github.com/repos/nguyenduyta/fels_43/tags","blobs_url":"https://api.github.com/repos/nguyenduyta/fels_43/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nguyenduyta/fels_43/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nguyenduyta/fels_43/git/refs{/sha}","trees_url":"https://api.github.com/repos/nguyenduyta/fels_43/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nguyenduyta/fels_43/statuses/{sha}","languages_url":"https://api.github.com/repos/nguyenduyta/fels_43/languages","stargazers_url":"https://api.github.com/repos/nguyenduyta/fels_43/stargazers","contributors_url":"https://api.github.com/repos/nguyenduyta/fels_43/contributors","subscribers_url":"https://api.github.com/repos/nguyenduyta/fels_43/subscribers","subscription_url":"https://api.github.com/repos/nguyenduyta/fels_43/subscription","commits_url":"https://api.github.com/repos/nguyenduyta/fels_43/commits{/sha}","git_commits_url":"https://api.github.com/repos/nguyenduyta/fels_43/git/commits{/sha}","comments_url":"https://api.github.com/repos/nguyenduyta/fels_43/comments{/number}","issue_comment_url":"https://api.github.com/repos/nguyenduyta/fels_43/issues/comments{/number}","contents_url":"https://api.github.com/repos/nguyenduyta/fels_43/contents/{+path}","compare_url":"https://api.github.com/repos/nguyenduyta/fels_43/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nguyenduyta/fels_43/merges","archive_url":"https://api.github.com/repos/nguyenduyta/fels_43/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nguyenduyta/fels_43/downloads","issues_url":"https://api.github.com/repos/nguyenduyta/fels_43/issues{/number}","pulls_url":"https://api.github.com/repos/nguyenduyta/fels_43/pulls{/number}","milestones_url":"https://api.github.com/repos/nguyenduyta/fels_43/milestones{/number}","notifications_url":"https://api.github.com/repos/nguyenduyta/fels_43/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nguyenduyta/fels_43/labels{/name}","releases_url":"https://api.github.com/repos/nguyenduyta/fels_43/releases{/id}","created_at":"2015-03-31T03:09:49Z","updated_at":"2015-02-04T06:27:13Z","pushed_at":"2015-04-07T10:19:02Z","git_url":"git://github.com/nguyenduyta/fels_43.git","ssh_url":"git@github.com:nguyenduyta/fels_43.git","clone_url":"https://github.com/nguyenduyta/fels_43.git","svn_url":"https://github.com/nguyenduyta/fels_43","homepage":null,"size":198,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"framgia:develop","ref":"develop","sha":"1cb7750157a252248a7b0bc8dabd2841a185140a","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":30284971,"name":"fels_43","full_name":"framgia/fels_43","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_43","description":"Framgia E-Learning System (training)","fork":false,"url":"https://api.github.com/repos/framgia/fels_43","forks_url":"https://api.github.com/repos/framgia/fels_43/forks","keys_url":"https://api.github.com/repos/framgia/fels_43/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fels_43/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fels_43/teams","hooks_url":"https://api.github.com/repos/framgia/fels_43/hooks","issue_events_url":"https://api.github.com/repos/framgia/fels_43/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fels_43/events","assignees_url":"https://api.github.com/repos/framgia/fels_43/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fels_43/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fels_43/tags","blobs_url":"https://api.github.com/repos/framgia/fels_43/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fels_43/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fels_43/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fels_43/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fels_43/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fels_43/languages","stargazers_url":"https://api.github.com/repos/framgia/fels_43/stargazers","contributors_url":"https://api.github.com/repos/framgia/fels_43/contributors","subscribers_url":"https://api.github.com/repos/framgia/fels_43/subscribers","subscription_url":"https://api.github.com/repos/framgia/fels_43/subscription","commits_url":"https://api.github.com/repos/framgia/fels_43/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fels_43/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fels_43/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fels_43/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fels_43/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fels_43/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fels_43/merges","archive_url":"https://api.github.com/repos/framgia/fels_43/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fels_43/downloads","issues_url":"https://api.github.com/repos/framgia/fels_43/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fels_43/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fels_43/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fels_43/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fels_43/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fels_43/releases{/id}","created_at":"2015-02-04T06:27:13Z","updated_at":"2015-02-04T06:27:13Z","pushed_at":"2015-04-07T10:19:03Z","git_url":"git://github.com/framgia/fels_43.git","ssh_url":"git@github.com:framgia/fels_43.git","clone_url":"https://github.com/framgia/fels_43.git","svn_url":"https://github.com/framgia/fels_43","homepage":null,"size":242,"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/fels_43/pulls/8"},"html":{"href":"https://github.com/framgia/fels_43/pull/8"},"issue":{"href":"https://api.github.com/repos/framgia/fels_43/issues/8"},"comments":{"href":"https://api.github.com/repos/framgia/fels_43/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fels_43/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fels_43/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fels_43/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fels_43/statuses/55382fdcbd38b5ab045e6255a6fc66659c8a779a"}}}}