{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/brs_30/pulls/comments/75829246","id":75829246,"diff_hunk":"@@ -0,0 +1,35 @@\n+class Admin::RequestsController < ApplicationController\n+  before_action :find_request, only: [:edit, :update]\n+  before_action :load_status, only: :edit\n+\n+  def index\n+    @requests = Request.order_by_time.paginate(\n+      page: params[:page], per_page: Settings.size)\n+  end\n+\n+  def edit\n+  end\n+\n+  def update\n+    if @request.update_attributes request_params\n+      flash[:success] = t \"flash.handle_request_success\"\n+      redirect_to admin_requests_path\n+    else\n+      render :edit","path":"app/controllers/admin/requests_controller.rb","position":18,"original_position":18,"commit_id":"51c216be126c1eb0bcb7c21f14077fa353a8829e","original_commit_id":"51c216be126c1eb0bcb7c21f14077fa353a8829e","user":{"login":"ngtrduc","id":9583026,"avatar_url":"https://avatars.githubusercontent.com/u/9583026?v=3","gravatar_id":"","url":"https://api.github.com/users/ngtrduc","html_url":"https://github.com/ngtrduc","followers_url":"https://api.github.com/users/ngtrduc/followers","following_url":"https://api.github.com/users/ngtrduc/following{/other_user}","gists_url":"https://api.github.com/users/ngtrduc/gists{/gist_id}","starred_url":"https://api.github.com/users/ngtrduc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ngtrduc/subscriptions","organizations_url":"https://api.github.com/users/ngtrduc/orgs","repos_url":"https://api.github.com/users/ngtrduc/repos","events_url":"https://api.github.com/users/ngtrduc/events{/privacy}","received_events_url":"https://api.github.com/users/ngtrduc/received_events","type":"User","site_admin":false},"body":"chỗ này có lỗi nhé","created_at":"2016-08-23T09:19:23Z","updated_at":"2016-08-23T09:19:23Z","html_url":"https://github.com/framgia/brs_30/pull/19#discussion_r75829246","pull_request_url":"https://api.github.com/repos/framgia/brs_30/pulls/19","_links":{"self":{"href":"https://api.github.com/repos/framgia/brs_30/pulls/comments/75829246"},"html":{"href":"https://github.com/framgia/brs_30/pull/19#discussion_r75829246"},"pull_request":{"href":"https://api.github.com/repos/framgia/brs_30/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/brs_30/pulls/19","id":82325820,"html_url":"https://github.com/framgia/brs_30/pull/19","diff_url":"https://github.com/framgia/brs_30/pull/19.diff","patch_url":"https://github.com/framgia/brs_30/pull/19.patch","issue_url":"https://api.github.com/repos/framgia/brs_30/issues/19","number":19,"state":"open","locked":false,"title":"Admin manage request","user":{"login":"leanhtuan-framgia","id":20265241,"avatar_url":"https://avatars.githubusercontent.com/u/20265241?v=3","gravatar_id":"","url":"https://api.github.com/users/leanhtuan-framgia","html_url":"https://github.com/leanhtuan-framgia","followers_url":"https://api.github.com/users/leanhtuan-framgia/followers","following_url":"https://api.github.com/users/leanhtuan-framgia/following{/other_user}","gists_url":"https://api.github.com/users/leanhtuan-framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/leanhtuan-framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leanhtuan-framgia/subscriptions","organizations_url":"https://api.github.com/users/leanhtuan-framgia/orgs","repos_url":"https://api.github.com/users/leanhtuan-framgia/repos","events_url":"https://api.github.com/users/leanhtuan-framgia/events{/privacy}","received_events_url":"https://api.github.com/users/leanhtuan-framgia/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-08-23T08:51:09Z","updated_at":"2016-08-23T09:19:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"87e1582945864615f97f5f71d4412ddac221d180","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/brs_30/pulls/19/commits","review_comments_url":"https://api.github.com/repos/framgia/brs_30/pulls/19/comments","review_comment_url":"https://api.github.com/repos/framgia/brs_30/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/brs_30/issues/19/comments","statuses_url":"https://api.github.com/repos/framgia/brs_30/statuses/51c216be126c1eb0bcb7c21f14077fa353a8829e","head":{"label":"leanhtuan-framgia:admin-handle-request","ref":"admin-handle-request","sha":"51c216be126c1eb0bcb7c21f14077fa353a8829e","user":{"login":"leanhtuan-framgia","id":20265241,"avatar_url":"https://avatars.githubusercontent.com/u/20265241?v=3","gravatar_id":"","url":"https://api.github.com/users/leanhtuan-framgia","html_url":"https://github.com/leanhtuan-framgia","followers_url":"https://api.github.com/users/leanhtuan-framgia/followers","following_url":"https://api.github.com/users/leanhtuan-framgia/following{/other_user}","gists_url":"https://api.github.com/users/leanhtuan-framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/leanhtuan-framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leanhtuan-framgia/subscriptions","organizations_url":"https://api.github.com/users/leanhtuan-framgia/orgs","repos_url":"https://api.github.com/users/leanhtuan-framgia/repos","events_url":"https://api.github.com/users/leanhtuan-framgia/events{/privacy}","received_events_url":"https://api.github.com/users/leanhtuan-framgia/received_events","type":"User","site_admin":false},"repo":{"id":65066465,"name":"brs_30","full_name":"leanhtuan-framgia/brs_30","owner":{"login":"leanhtuan-framgia","id":20265241,"avatar_url":"https://avatars.githubusercontent.com/u/20265241?v=3","gravatar_id":"","url":"https://api.github.com/users/leanhtuan-framgia","html_url":"https://github.com/leanhtuan-framgia","followers_url":"https://api.github.com/users/leanhtuan-framgia/followers","following_url":"https://api.github.com/users/leanhtuan-framgia/following{/other_user}","gists_url":"https://api.github.com/users/leanhtuan-framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/leanhtuan-framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leanhtuan-framgia/subscriptions","organizations_url":"https://api.github.com/users/leanhtuan-framgia/orgs","repos_url":"https://api.github.com/users/leanhtuan-framgia/repos","events_url":"https://api.github.com/users/leanhtuan-framgia/events{/privacy}","received_events_url":"https://api.github.com/users/leanhtuan-framgia/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/leanhtuan-framgia/brs_30","description":"Framgia Book Reviewing System (training)","fork":true,"url":"https://api.github.com/repos/leanhtuan-framgia/brs_30","forks_url":"https://api.github.com/repos/leanhtuan-framgia/brs_30/forks","keys_url":"https://api.github.com/repos/leanhtuan-framgia/brs_30/keys{/key_id}","collaborators_url":"https://api.github.com/repos/leanhtuan-framgia/brs_30/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/leanhtuan-framgia/brs_30/teams","hooks_url":"https://api.github.com/repos/leanhtuan-framgia/brs_30/hooks","issue_events_url":"https://api.github.com/repos/leanhtuan-framgia/brs_30/issues/events{/number}","events_url":"https://api.github.com/repos/leanhtuan-framgia/brs_30/events","assignees_url":"https://api.github.com/repos/leanhtuan-framgia/brs_30/assignees{/user}","branches_url":"https://api.github.com/repos/leanhtuan-framgia/brs_30/branches{/branch}","tags_url":"https://api.github.com/repos/leanhtuan-framgia/brs_30/tags","blobs_url":"https://api.github.com/repos/leanhtuan-framgia/brs_30/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/leanhtuan-framgia/brs_30/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/leanhtuan-framgia/brs_30/git/refs{/sha}","trees_url":"https://api.github.com/repos/leanhtuan-framgia/brs_30/git/trees{/sha}","statuses_url":"https://api.github.com/repos/leanhtuan-framgia/brs_30/statuses/{sha}","languages_url":"https://api.github.com/repos/leanhtuan-framgia/brs_30/languages","stargazers_url":"https://api.github.com/repos/leanhtuan-framgia/brs_30/stargazers","contributors_url":"https://api.github.com/repos/leanhtuan-framgia/brs_30/contributors","subscribers_url":"https://api.github.com/repos/leanhtuan-framgia/brs_30/subscribers","subscription_url":"https://api.github.com/repos/leanhtuan-framgia/brs_30/subscription","commits_url":"https://api.github.com/repos/leanhtuan-framgia/brs_30/commits{/sha}","git_commits_url":"https://api.github.com/repos/leanhtuan-framgia/brs_30/git/commits{/sha}","comments_url":"https://api.github.com/repos/leanhtuan-framgia/brs_30/comments{/number}","issue_comment_url":"https://api.github.com/repos/leanhtuan-framgia/brs_30/issues/comments{/number}","contents_url":"https://api.github.com/repos/leanhtuan-framgia/brs_30/contents/{+path}","compare_url":"https://api.github.com/repos/leanhtuan-framgia/brs_30/compare/{base}...{head}","merges_url":"https://api.github.com/repos/leanhtuan-framgia/brs_30/merges","archive_url":"https://api.github.com/repos/leanhtuan-framgia/brs_30/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/leanhtuan-framgia/brs_30/downloads","issues_url":"https://api.github.com/repos/leanhtuan-framgia/brs_30/issues{/number}","pulls_url":"https://api.github.com/repos/leanhtuan-framgia/brs_30/pulls{/number}","milestones_url":"https://api.github.com/repos/leanhtuan-framgia/brs_30/milestones{/number}","notifications_url":"https://api.github.com/repos/leanhtuan-framgia/brs_30/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/leanhtuan-framgia/brs_30/labels{/name}","releases_url":"https://api.github.com/repos/leanhtuan-framgia/brs_30/releases{/id}","deployments_url":"https://api.github.com/repos/leanhtuan-framgia/brs_30/deployments","created_at":"2016-08-06T05:21:41Z","updated_at":"2016-08-04T06:47:01Z","pushed_at":"2016-08-23T09:10:40Z","git_url":"git://github.com/leanhtuan-framgia/brs_30.git","ssh_url":"git@github.com:leanhtuan-framgia/brs_30.git","clone_url":"https://github.com/leanhtuan-framgia/brs_30.git","svn_url":"https://github.com/leanhtuan-framgia/brs_30","homepage":null,"size":69,"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":"88d453ca4b51ed91bf8e0b995473282e3db65234","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":64909697,"name":"brs_30","full_name":"framgia/brs_30","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/brs_30","description":"Framgia Book Reviewing System (training)","fork":false,"url":"https://api.github.com/repos/framgia/brs_30","forks_url":"https://api.github.com/repos/framgia/brs_30/forks","keys_url":"https://api.github.com/repos/framgia/brs_30/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/brs_30/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/brs_30/teams","hooks_url":"https://api.github.com/repos/framgia/brs_30/hooks","issue_events_url":"https://api.github.com/repos/framgia/brs_30/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/brs_30/events","assignees_url":"https://api.github.com/repos/framgia/brs_30/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/brs_30/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/brs_30/tags","blobs_url":"https://api.github.com/repos/framgia/brs_30/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/brs_30/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/brs_30/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/brs_30/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/brs_30/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/brs_30/languages","stargazers_url":"https://api.github.com/repos/framgia/brs_30/stargazers","contributors_url":"https://api.github.com/repos/framgia/brs_30/contributors","subscribers_url":"https://api.github.com/repos/framgia/brs_30/subscribers","subscription_url":"https://api.github.com/repos/framgia/brs_30/subscription","commits_url":"https://api.github.com/repos/framgia/brs_30/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/brs_30/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/brs_30/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/brs_30/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/brs_30/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/brs_30/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/brs_30/merges","archive_url":"https://api.github.com/repos/framgia/brs_30/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/brs_30/downloads","issues_url":"https://api.github.com/repos/framgia/brs_30/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/brs_30/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/brs_30/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/brs_30/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/brs_30/labels{/name}","releases_url":"https://api.github.com/repos/framgia/brs_30/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/brs_30/deployments","created_at":"2016-08-04T06:47:01Z","updated_at":"2016-08-04T06:47:01Z","pushed_at":"2016-08-23T09:10:40Z","git_url":"git://github.com/framgia/brs_30.git","ssh_url":"git@github.com:framgia/brs_30.git","clone_url":"https://github.com/framgia/brs_30.git","svn_url":"https://github.com/framgia/brs_30","homepage":null,"size":80,"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":3,"forks":2,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/brs_30/pulls/19"},"html":{"href":"https://github.com/framgia/brs_30/pull/19"},"issue":{"href":"https://api.github.com/repos/framgia/brs_30/issues/19"},"comments":{"href":"https://api.github.com/repos/framgia/brs_30/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/brs_30/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/brs_30/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/brs_30/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/brs_30/statuses/51c216be126c1eb0bcb7c21f14077fa353a8829e"}}}}
{"actor":{"display_login":"ngtrduc"}}