{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fels_92/pulls/comments/45569554","id":45569554,"diff_hunk":"@@ -0,0 +1,21 @@\n+class UsersController < ApplicationController\n+  before_action :set_user, only: [:show, :edit, :update, :destroy]\n+  before_filter :authenticate_user!\n+\n+  # GET /users\n+  # GET /users.json\n+  def index\n+    @users = User.all\n+  end\n+\n+  private\n+    # Use callbacks to share common setup or constraints between actions.\n+    def set_user\n+      @user = User.find(params[:id])","path":"app/controllers/users_controller.rb","position":14,"original_position":14,"commit_id":"5cba5ecc878aeec48f1c471589aa1cfebdfe507d","original_commit_id":"5cba5ecc878aeec48f1c471589aa1cfebdfe507d","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-11-23T02:18:18Z","updated_at":"2015-11-23T02:18:18Z","html_url":"https://github.com/framgia/fels_92/pull/4#discussion_r45569554","pull_request_url":"https://api.github.com/repos/framgia/fels_92/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_92/pulls/comments/45569554"},"html":{"href":"https://github.com/framgia/fels_92/pull/4#discussion_r45569554"},"pull_request":{"href":"https://api.github.com/repos/framgia/fels_92/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fels_92/pulls/4","id":51329672,"html_url":"https://github.com/framgia/fels_92/pull/4","diff_url":"https://github.com/framgia/fels_92/pull/4.diff","patch_url":"https://github.com/framgia/fels_92/pull/4.patch","issue_url":"https://api.github.com/repos/framgia/fels_92/issues/4","number":4,"state":"open","locked":false,"title":"Register, login, logout with facebook & normal user","user":{"login":"danglv","id":15900639,"avatar_url":"https://avatars.githubusercontent.com/u/15900639?v=3","gravatar_id":"","url":"https://api.github.com/users/danglv","html_url":"https://github.com/danglv","followers_url":"https://api.github.com/users/danglv/followers","following_url":"https://api.github.com/users/danglv/following{/other_user}","gists_url":"https://api.github.com/users/danglv/gists{/gist_id}","starred_url":"https://api.github.com/users/danglv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danglv/subscriptions","organizations_url":"https://api.github.com/users/danglv/orgs","repos_url":"https://api.github.com/users/danglv/repos","events_url":"https://api.github.com/users/danglv/events{/privacy}","received_events_url":"https://api.github.com/users/danglv/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-20T08:32:17Z","updated_at":"2015-11-23T02:18:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5abb75233afe7245a0b45055e859a23b8bb24893","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fels_92/pulls/4/commits","review_comments_url":"https://api.github.com/repos/framgia/fels_92/pulls/4/comments","review_comment_url":"https://api.github.com/repos/framgia/fels_92/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fels_92/issues/4/comments","statuses_url":"https://api.github.com/repos/framgia/fels_92/statuses/5cba5ecc878aeec48f1c471589aa1cfebdfe507d","head":{"label":"danglv:task_45640_authenticate","ref":"task_45640_authenticate","sha":"5cba5ecc878aeec48f1c471589aa1cfebdfe507d","user":{"login":"danglv","id":15900639,"avatar_url":"https://avatars.githubusercontent.com/u/15900639?v=3","gravatar_id":"","url":"https://api.github.com/users/danglv","html_url":"https://github.com/danglv","followers_url":"https://api.github.com/users/danglv/followers","following_url":"https://api.github.com/users/danglv/following{/other_user}","gists_url":"https://api.github.com/users/danglv/gists{/gist_id}","starred_url":"https://api.github.com/users/danglv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danglv/subscriptions","organizations_url":"https://api.github.com/users/danglv/orgs","repos_url":"https://api.github.com/users/danglv/repos","events_url":"https://api.github.com/users/danglv/events{/privacy}","received_events_url":"https://api.github.com/users/danglv/received_events","type":"User","site_admin":false},"repo":{"id":46389892,"name":"fels_92","full_name":"danglv/fels_92","owner":{"login":"danglv","id":15900639,"avatar_url":"https://avatars.githubusercontent.com/u/15900639?v=3","gravatar_id":"","url":"https://api.github.com/users/danglv","html_url":"https://github.com/danglv","followers_url":"https://api.github.com/users/danglv/followers","following_url":"https://api.github.com/users/danglv/following{/other_user}","gists_url":"https://api.github.com/users/danglv/gists{/gist_id}","starred_url":"https://api.github.com/users/danglv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danglv/subscriptions","organizations_url":"https://api.github.com/users/danglv/orgs","repos_url":"https://api.github.com/users/danglv/repos","events_url":"https://api.github.com/users/danglv/events{/privacy}","received_events_url":"https://api.github.com/users/danglv/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/danglv/fels_92","description":"Framgia E-Learning System (training)","fork":true,"url":"https://api.github.com/repos/danglv/fels_92","forks_url":"https://api.github.com/repos/danglv/fels_92/forks","keys_url":"https://api.github.com/repos/danglv/fels_92/keys{/key_id}","collaborators_url":"https://api.github.com/repos/danglv/fels_92/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/danglv/fels_92/teams","hooks_url":"https://api.github.com/repos/danglv/fels_92/hooks","issue_events_url":"https://api.github.com/repos/danglv/fels_92/issues/events{/number}","events_url":"https://api.github.com/repos/danglv/fels_92/events","assignees_url":"https://api.github.com/repos/danglv/fels_92/assignees{/user}","branches_url":"https://api.github.com/repos/danglv/fels_92/branches{/branch}","tags_url":"https://api.github.com/repos/danglv/fels_92/tags","blobs_url":"https://api.github.com/repos/danglv/fels_92/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/danglv/fels_92/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/danglv/fels_92/git/refs{/sha}","trees_url":"https://api.github.com/repos/danglv/fels_92/git/trees{/sha}","statuses_url":"https://api.github.com/repos/danglv/fels_92/statuses/{sha}","languages_url":"https://api.github.com/repos/danglv/fels_92/languages","stargazers_url":"https://api.github.com/repos/danglv/fels_92/stargazers","contributors_url":"https://api.github.com/repos/danglv/fels_92/contributors","subscribers_url":"https://api.github.com/repos/danglv/fels_92/subscribers","subscription_url":"https://api.github.com/repos/danglv/fels_92/subscription","commits_url":"https://api.github.com/repos/danglv/fels_92/commits{/sha}","git_commits_url":"https://api.github.com/repos/danglv/fels_92/git/commits{/sha}","comments_url":"https://api.github.com/repos/danglv/fels_92/comments{/number}","issue_comment_url":"https://api.github.com/repos/danglv/fels_92/issues/comments{/number}","contents_url":"https://api.github.com/repos/danglv/fels_92/contents/{+path}","compare_url":"https://api.github.com/repos/danglv/fels_92/compare/{base}...{head}","merges_url":"https://api.github.com/repos/danglv/fels_92/merges","archive_url":"https://api.github.com/repos/danglv/fels_92/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/danglv/fels_92/downloads","issues_url":"https://api.github.com/repos/danglv/fels_92/issues{/number}","pulls_url":"https://api.github.com/repos/danglv/fels_92/pulls{/number}","milestones_url":"https://api.github.com/repos/danglv/fels_92/milestones{/number}","notifications_url":"https://api.github.com/repos/danglv/fels_92/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/danglv/fels_92/labels{/name}","releases_url":"https://api.github.com/repos/danglv/fels_92/releases{/id}","created_at":"2015-11-18T02:31:30Z","updated_at":"2015-11-18T02:18:04Z","pushed_at":"2015-11-20T08:35:39Z","git_url":"git://github.com/danglv/fels_92.git","ssh_url":"git@github.com:danglv/fels_92.git","clone_url":"https://github.com/danglv/fels_92.git","svn_url":"https://github.com/danglv/fels_92","homepage":null,"size":43,"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":"8a04c9cf4333d3ac12a3e4e7ddd943c26400de7d","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":46389203,"name":"fels_92","full_name":"framgia/fels_92","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_92","description":"Framgia E-Learning System (training)","fork":false,"url":"https://api.github.com/repos/framgia/fels_92","forks_url":"https://api.github.com/repos/framgia/fels_92/forks","keys_url":"https://api.github.com/repos/framgia/fels_92/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fels_92/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fels_92/teams","hooks_url":"https://api.github.com/repos/framgia/fels_92/hooks","issue_events_url":"https://api.github.com/repos/framgia/fels_92/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fels_92/events","assignees_url":"https://api.github.com/repos/framgia/fels_92/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fels_92/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fels_92/tags","blobs_url":"https://api.github.com/repos/framgia/fels_92/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fels_92/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fels_92/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fels_92/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fels_92/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fels_92/languages","stargazers_url":"https://api.github.com/repos/framgia/fels_92/stargazers","contributors_url":"https://api.github.com/repos/framgia/fels_92/contributors","subscribers_url":"https://api.github.com/repos/framgia/fels_92/subscribers","subscription_url":"https://api.github.com/repos/framgia/fels_92/subscription","commits_url":"https://api.github.com/repos/framgia/fels_92/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fels_92/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fels_92/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fels_92/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fels_92/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fels_92/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fels_92/merges","archive_url":"https://api.github.com/repos/framgia/fels_92/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fels_92/downloads","issues_url":"https://api.github.com/repos/framgia/fels_92/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fels_92/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fels_92/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fels_92/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fels_92/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fels_92/releases{/id}","created_at":"2015-11-18T02:18:04Z","updated_at":"2015-11-18T02:18:04Z","pushed_at":"2015-11-23T02:17:39Z","git_url":"git://github.com/framgia/fels_92.git","ssh_url":"git@github.com:framgia/fels_92.git","clone_url":"https://github.com/framgia/fels_92.git","svn_url":"https://github.com/framgia/fels_92","homepage":null,"size":49,"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":2,"forks":2,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/fels_92/pulls/4"},"html":{"href":"https://github.com/framgia/fels_92/pull/4"},"issue":{"href":"https://api.github.com/repos/framgia/fels_92/issues/4"},"comments":{"href":"https://api.github.com/repos/framgia/fels_92/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fels_92/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fels_92/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fels_92/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fels_92/statuses/5cba5ecc878aeec48f1c471589aa1cfebdfe507d"}}}}