{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fels_34/pulls/comments/24225945","id":24225945,"diff_hunk":"@@ -0,0 +1,93 @@\n+class UsersController < ApplicationController\n+  before_action :logged_in_user, only: [:index, :edit, :update, :destroy, \n+                                        :following, :followers]\n+  before_action :correct_user,   only: [:edit, :update]\n+  before_action :admin_user,     only: :destroy\n+  \n+  def index\n+    @users = User.paginate(page: params[:page])\n+  end \n+\n+  def show\n+    @user = User.find(params[:id])","path":"app/controllers/users_controller.rb","position":12,"original_position":12,"commit_id":"1769d405e221a341584bfb470c5490c13b91c05f","original_commit_id":"1769d405e221a341584bfb470c5490c13b91c05f","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":"remove ()","created_at":"2015-02-06T07:20:48Z","updated_at":"2015-02-06T07:20:48Z","html_url":"https://github.com/framgia/fels_34/pull/3#discussion_r24225945","pull_request_url":"https://api.github.com/repos/framgia/fels_34/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_34/pulls/comments/24225945"},"html":{"href":"https://github.com/framgia/fels_34/pull/3#discussion_r24225945"},"pull_request":{"href":"https://api.github.com/repos/framgia/fels_34/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fels_34/pulls/3","id":28784758,"html_url":"https://github.com/framgia/fels_34/pull/3","diff_url":"https://github.com/framgia/fels_34/pull/3.diff","patch_url":"https://github.com/framgia/fels_34/pull/3.patch","issue_url":"https://api.github.com/repos/framgia/fels_34/issues/3","number":3,"state":"open","locked":false,"title":"Finish User model","user":{"login":"nguyenthuyanh","id":10736753,"avatar_url":"https://avatars.githubusercontent.com/u/10736753?v=3","gravatar_id":"","url":"https://api.github.com/users/nguyenthuyanh","html_url":"https://github.com/nguyenthuyanh","followers_url":"https://api.github.com/users/nguyenthuyanh/followers","following_url":"https://api.github.com/users/nguyenthuyanh/following{/other_user}","gists_url":"https://api.github.com/users/nguyenthuyanh/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenthuyanh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenthuyanh/subscriptions","organizations_url":"https://api.github.com/users/nguyenthuyanh/orgs","repos_url":"https://api.github.com/users/nguyenthuyanh/repos","events_url":"https://api.github.com/users/nguyenthuyanh/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenthuyanh/received_events","type":"User","site_admin":false},"body":"Hoàn thành các chức năng của Users \r\n - Login/Logout\r\n - Show, update (user curent), delete (only admin) \r\n - Follow/Unfollow ","created_at":"2015-02-06T04:37:21Z","updated_at":"2015-02-06T07:20:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a9eb661831b3b8e38424cc9d25bf9db8845880c3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fels_34/pulls/3/commits","review_comments_url":"https://api.github.com/repos/framgia/fels_34/pulls/3/comments","review_comment_url":"https://api.github.com/repos/framgia/fels_34/pulls/comments/{number}","comments_url":"https://api.github.com/repos/framgia/fels_34/issues/3/comments","statuses_url":"https://api.github.com/repos/framgia/fels_34/statuses/1769d405e221a341584bfb470c5490c13b91c05f","head":{"label":"nguyenthuyanh:Users-model","ref":"Users-model","sha":"1769d405e221a341584bfb470c5490c13b91c05f","user":{"login":"nguyenthuyanh","id":10736753,"avatar_url":"https://avatars.githubusercontent.com/u/10736753?v=3","gravatar_id":"","url":"https://api.github.com/users/nguyenthuyanh","html_url":"https://github.com/nguyenthuyanh","followers_url":"https://api.github.com/users/nguyenthuyanh/followers","following_url":"https://api.github.com/users/nguyenthuyanh/following{/other_user}","gists_url":"https://api.github.com/users/nguyenthuyanh/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenthuyanh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenthuyanh/subscriptions","organizations_url":"https://api.github.com/users/nguyenthuyanh/orgs","repos_url":"https://api.github.com/users/nguyenthuyanh/repos","events_url":"https://api.github.com/users/nguyenthuyanh/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenthuyanh/received_events","type":"User","site_admin":false},"repo":{"id":30290691,"name":"fels_34","full_name":"nguyenthuyanh/fels_34","owner":{"login":"nguyenthuyanh","id":10736753,"avatar_url":"https://avatars.githubusercontent.com/u/10736753?v=3","gravatar_id":"","url":"https://api.github.com/users/nguyenthuyanh","html_url":"https://github.com/nguyenthuyanh","followers_url":"https://api.github.com/users/nguyenthuyanh/followers","following_url":"https://api.github.com/users/nguyenthuyanh/following{/other_user}","gists_url":"https://api.github.com/users/nguyenthuyanh/gists{/gist_id}","starred_url":"https://api.github.com/users/nguyenthuyanh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nguyenthuyanh/subscriptions","organizations_url":"https://api.github.com/users/nguyenthuyanh/orgs","repos_url":"https://api.github.com/users/nguyenthuyanh/repos","events_url":"https://api.github.com/users/nguyenthuyanh/events{/privacy}","received_events_url":"https://api.github.com/users/nguyenthuyanh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nguyenthuyanh/fels_34","description":"Framgia E-Learning System (training)","fork":true,"url":"https://api.github.com/repos/nguyenthuyanh/fels_34","forks_url":"https://api.github.com/repos/nguyenthuyanh/fels_34/forks","keys_url":"https://api.github.com/repos/nguyenthuyanh/fels_34/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nguyenthuyanh/fels_34/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nguyenthuyanh/fels_34/teams","hooks_url":"https://api.github.com/repos/nguyenthuyanh/fels_34/hooks","issue_events_url":"https://api.github.com/repos/nguyenthuyanh/fels_34/issues/events{/number}","events_url":"https://api.github.com/repos/nguyenthuyanh/fels_34/events","assignees_url":"https://api.github.com/repos/nguyenthuyanh/fels_34/assignees{/user}","branches_url":"https://api.github.com/repos/nguyenthuyanh/fels_34/branches{/branch}","tags_url":"https://api.github.com/repos/nguyenthuyanh/fels_34/tags","blobs_url":"https://api.github.com/repos/nguyenthuyanh/fels_34/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nguyenthuyanh/fels_34/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nguyenthuyanh/fels_34/git/refs{/sha}","trees_url":"https://api.github.com/repos/nguyenthuyanh/fels_34/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nguyenthuyanh/fels_34/statuses/{sha}","languages_url":"https://api.github.com/repos/nguyenthuyanh/fels_34/languages","stargazers_url":"https://api.github.com/repos/nguyenthuyanh/fels_34/stargazers","contributors_url":"https://api.github.com/repos/nguyenthuyanh/fels_34/contributors","subscribers_url":"https://api.github.com/repos/nguyenthuyanh/fels_34/subscribers","subscription_url":"https://api.github.com/repos/nguyenthuyanh/fels_34/subscription","commits_url":"https://api.github.com/repos/nguyenthuyanh/fels_34/commits{/sha}","git_commits_url":"https://api.github.com/repos/nguyenthuyanh/fels_34/git/commits{/sha}","comments_url":"https://api.github.com/repos/nguyenthuyanh/fels_34/comments{/number}","issue_comment_url":"https://api.github.com/repos/nguyenthuyanh/fels_34/issues/comments/{number}","contents_url":"https://api.github.com/repos/nguyenthuyanh/fels_34/contents/{+path}","compare_url":"https://api.github.com/repos/nguyenthuyanh/fels_34/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nguyenthuyanh/fels_34/merges","archive_url":"https://api.github.com/repos/nguyenthuyanh/fels_34/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nguyenthuyanh/fels_34/downloads","issues_url":"https://api.github.com/repos/nguyenthuyanh/fels_34/issues{/number}","pulls_url":"https://api.github.com/repos/nguyenthuyanh/fels_34/pulls{/number}","milestones_url":"https://api.github.com/repos/nguyenthuyanh/fels_34/milestones{/number}","notifications_url":"https://api.github.com/repos/nguyenthuyanh/fels_34/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nguyenthuyanh/fels_34/labels{/name}","releases_url":"https://api.github.com/repos/nguyenthuyanh/fels_34/releases{/id}","created_at":"2015-02-04T09:13:18Z","updated_at":"2015-01-24T12:01:49Z","pushed_at":"2015-02-06T04:30:25Z","git_url":"git://github.com/nguyenthuyanh/fels_34.git","ssh_url":"git@github.com:nguyenthuyanh/fels_34.git","clone_url":"https://github.com/nguyenthuyanh/fels_34.git","svn_url":"https://github.com/nguyenthuyanh/fels_34","homepage":null,"size":148,"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":"ff7e1088589df4d1bb4afe9a1fe616a1bc1e2bbb","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":29775196,"name":"fels_34","full_name":"framgia/fels_34","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_34","description":"Framgia E-Learning System (training)","fork":false,"url":"https://api.github.com/repos/framgia/fels_34","forks_url":"https://api.github.com/repos/framgia/fels_34/forks","keys_url":"https://api.github.com/repos/framgia/fels_34/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fels_34/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fels_34/teams","hooks_url":"https://api.github.com/repos/framgia/fels_34/hooks","issue_events_url":"https://api.github.com/repos/framgia/fels_34/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fels_34/events","assignees_url":"https://api.github.com/repos/framgia/fels_34/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fels_34/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fels_34/tags","blobs_url":"https://api.github.com/repos/framgia/fels_34/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fels_34/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fels_34/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fels_34/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fels_34/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fels_34/languages","stargazers_url":"https://api.github.com/repos/framgia/fels_34/stargazers","contributors_url":"https://api.github.com/repos/framgia/fels_34/contributors","subscribers_url":"https://api.github.com/repos/framgia/fels_34/subscribers","subscription_url":"https://api.github.com/repos/framgia/fels_34/subscription","commits_url":"https://api.github.com/repos/framgia/fels_34/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fels_34/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fels_34/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fels_34/issues/comments/{number}","contents_url":"https://api.github.com/repos/framgia/fels_34/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fels_34/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fels_34/merges","archive_url":"https://api.github.com/repos/framgia/fels_34/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fels_34/downloads","issues_url":"https://api.github.com/repos/framgia/fels_34/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fels_34/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fels_34/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fels_34/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fels_34/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fels_34/releases{/id}","created_at":"2015-01-24T12:01:49Z","updated_at":"2015-01-24T12:01:49Z","pushed_at":"2015-02-06T03:10:17Z","git_url":"git://github.com/framgia/fels_34.git","ssh_url":"git@github.com:framgia/fels_34.git","clone_url":"https://github.com/framgia/fels_34.git","svn_url":"https://github.com/framgia/fels_34","homepage":null,"size":148,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_34/pulls/3"},"html":{"href":"https://github.com/framgia/fels_34/pull/3"},"issue":{"href":"https://api.github.com/repos/framgia/fels_34/issues/3"},"comments":{"href":"https://api.github.com/repos/framgia/fels_34/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fels_34/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fels_34/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/framgia/fels_34/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fels_34/statuses/1769d405e221a341584bfb470c5490c13b91c05f"}}}}