{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fdf_12/pulls/comments/94112199","pull_request_review_id":14641915,"id":94112199,"diff_hunk":"@@ -0,0 +1,44 @@\n+class UserDomainsController < ApplicationController\n+  before_action :load_params\n+  def new\n+    @domain = Domain.find_by id: params[:id]\n+    @users = User.by_active.page(params[:page]).per Settings.common.per_page\n+  end\n+\n+  def create\n+    user_domain = UserDomain.create user_id: @user.id, domain_id: @domain.id\n+    @products.each do |product|","path":"app/controllers/user_domains_controller.rb","position":10,"original_position":10,"commit_id":"266706b4757a21c13f9766702f2e782ae06b5735","original_commit_id":"266706b4757a21c13f9766702f2e782ae06b5735","user":{"login":"nvtanh","id":5591946,"avatar_url":"https://avatars.githubusercontent.com/u/5591946?v=3","gravatar_id":"","url":"https://api.github.com/users/nvtanh","html_url":"https://github.com/nvtanh","followers_url":"https://api.github.com/users/nvtanh/followers","following_url":"https://api.github.com/users/nvtanh/following{/other_user}","gists_url":"https://api.github.com/users/nvtanh/gists{/gist_id}","starred_url":"https://api.github.com/users/nvtanh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nvtanh/subscriptions","organizations_url":"https://api.github.com/users/nvtanh/orgs","repos_url":"https://api.github.com/users/nvtanh/repos","events_url":"https://api.github.com/users/nvtanh/events{/privacy}","received_events_url":"https://api.github.com/users/nvtanh/received_events","type":"User","site_admin":false},"body":"lặp code phần này nhiều quá","created_at":"2016-12-29T08:38:07Z","updated_at":"2016-12-29T08:45:44Z","html_url":"https://github.com/framgia/fdf_12/pull/163#discussion_r94112199","pull_request_url":"https://api.github.com/repos/framgia/fdf_12/pulls/163","_links":{"self":{"href":"https://api.github.com/repos/framgia/fdf_12/pulls/comments/94112199"},"html":{"href":"https://github.com/framgia/fdf_12/pull/163#discussion_r94112199"},"pull_request":{"href":"https://api.github.com/repos/framgia/fdf_12/pulls/163"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fdf_12/pulls/163","id":99610163,"html_url":"https://github.com/framgia/fdf_12/pull/163","diff_url":"https://github.com/framgia/fdf_12/pull/163.diff","patch_url":"https://github.com/framgia/fdf_12/pull/163.patch","issue_url":"https://api.github.com/repos/framgia/fdf_12/issues/163","number":163,"state":"open","locked":false,"title":"namespace","user":{"login":"XuanVuPham","id":20946787,"avatar_url":"https://avatars.githubusercontent.com/u/20946787?v=3","gravatar_id":"","url":"https://api.github.com/users/XuanVuPham","html_url":"https://github.com/XuanVuPham","followers_url":"https://api.github.com/users/XuanVuPham/followers","following_url":"https://api.github.com/users/XuanVuPham/following{/other_user}","gists_url":"https://api.github.com/users/XuanVuPham/gists{/gist_id}","starred_url":"https://api.github.com/users/XuanVuPham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XuanVuPham/subscriptions","organizations_url":"https://api.github.com/users/XuanVuPham/orgs","repos_url":"https://api.github.com/users/XuanVuPham/repos","events_url":"https://api.github.com/users/XuanVuPham/events{/privacy}","received_events_url":"https://api.github.com/users/XuanVuPham/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-12-29T01:43:15Z","updated_at":"2016-12-29T08:45:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f56042e0925739ce851db0cc6fb1e0c63678d35b","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fdf_12/pulls/163/commits","review_comments_url":"https://api.github.com/repos/framgia/fdf_12/pulls/163/comments","review_comment_url":"https://api.github.com/repos/framgia/fdf_12/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fdf_12/issues/163/comments","statuses_url":"https://api.github.com/repos/framgia/fdf_12/statuses/266706b4757a21c13f9766702f2e782ae06b5735","head":{"label":"XuanVuPham:namespace","ref":"namespace","sha":"266706b4757a21c13f9766702f2e782ae06b5735","user":{"login":"XuanVuPham","id":20946787,"avatar_url":"https://avatars.githubusercontent.com/u/20946787?v=3","gravatar_id":"","url":"https://api.github.com/users/XuanVuPham","html_url":"https://github.com/XuanVuPham","followers_url":"https://api.github.com/users/XuanVuPham/followers","following_url":"https://api.github.com/users/XuanVuPham/following{/other_user}","gists_url":"https://api.github.com/users/XuanVuPham/gists{/gist_id}","starred_url":"https://api.github.com/users/XuanVuPham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XuanVuPham/subscriptions","organizations_url":"https://api.github.com/users/XuanVuPham/orgs","repos_url":"https://api.github.com/users/XuanVuPham/repos","events_url":"https://api.github.com/users/XuanVuPham/events{/privacy}","received_events_url":"https://api.github.com/users/XuanVuPham/received_events","type":"User","site_admin":false},"repo":{"id":71959420,"name":"fdf_12","full_name":"XuanVuPham/fdf_12","owner":{"login":"XuanVuPham","id":20946787,"avatar_url":"https://avatars.githubusercontent.com/u/20946787?v=3","gravatar_id":"","url":"https://api.github.com/users/XuanVuPham","html_url":"https://github.com/XuanVuPham","followers_url":"https://api.github.com/users/XuanVuPham/followers","following_url":"https://api.github.com/users/XuanVuPham/following{/other_user}","gists_url":"https://api.github.com/users/XuanVuPham/gists{/gist_id}","starred_url":"https://api.github.com/users/XuanVuPham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XuanVuPham/subscriptions","organizations_url":"https://api.github.com/users/XuanVuPham/orgs","repos_url":"https://api.github.com/users/XuanVuPham/repos","events_url":"https://api.github.com/users/XuanVuPham/events{/privacy}","received_events_url":"https://api.github.com/users/XuanVuPham/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/XuanVuPham/fdf_12","description":"[DN] Food & Drink Ordering Web app. Production project after finishing the training.","fork":true,"url":"https://api.github.com/repos/XuanVuPham/fdf_12","forks_url":"https://api.github.com/repos/XuanVuPham/fdf_12/forks","keys_url":"https://api.github.com/repos/XuanVuPham/fdf_12/keys{/key_id}","collaborators_url":"https://api.github.com/repos/XuanVuPham/fdf_12/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/XuanVuPham/fdf_12/teams","hooks_url":"https://api.github.com/repos/XuanVuPham/fdf_12/hooks","issue_events_url":"https://api.github.com/repos/XuanVuPham/fdf_12/issues/events{/number}","events_url":"https://api.github.com/repos/XuanVuPham/fdf_12/events","assignees_url":"https://api.github.com/repos/XuanVuPham/fdf_12/assignees{/user}","branches_url":"https://api.github.com/repos/XuanVuPham/fdf_12/branches{/branch}","tags_url":"https://api.github.com/repos/XuanVuPham/fdf_12/tags","blobs_url":"https://api.github.com/repos/XuanVuPham/fdf_12/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/XuanVuPham/fdf_12/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/XuanVuPham/fdf_12/git/refs{/sha}","trees_url":"https://api.github.com/repos/XuanVuPham/fdf_12/git/trees{/sha}","statuses_url":"https://api.github.com/repos/XuanVuPham/fdf_12/statuses/{sha}","languages_url":"https://api.github.com/repos/XuanVuPham/fdf_12/languages","stargazers_url":"https://api.github.com/repos/XuanVuPham/fdf_12/stargazers","contributors_url":"https://api.github.com/repos/XuanVuPham/fdf_12/contributors","subscribers_url":"https://api.github.com/repos/XuanVuPham/fdf_12/subscribers","subscription_url":"https://api.github.com/repos/XuanVuPham/fdf_12/subscription","commits_url":"https://api.github.com/repos/XuanVuPham/fdf_12/commits{/sha}","git_commits_url":"https://api.github.com/repos/XuanVuPham/fdf_12/git/commits{/sha}","comments_url":"https://api.github.com/repos/XuanVuPham/fdf_12/comments{/number}","issue_comment_url":"https://api.github.com/repos/XuanVuPham/fdf_12/issues/comments{/number}","contents_url":"https://api.github.com/repos/XuanVuPham/fdf_12/contents/{+path}","compare_url":"https://api.github.com/repos/XuanVuPham/fdf_12/compare/{base}...{head}","merges_url":"https://api.github.com/repos/XuanVuPham/fdf_12/merges","archive_url":"https://api.github.com/repos/XuanVuPham/fdf_12/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/XuanVuPham/fdf_12/downloads","issues_url":"https://api.github.com/repos/XuanVuPham/fdf_12/issues{/number}","pulls_url":"https://api.github.com/repos/XuanVuPham/fdf_12/pulls{/number}","milestones_url":"https://api.github.com/repos/XuanVuPham/fdf_12/milestones{/number}","notifications_url":"https://api.github.com/repos/XuanVuPham/fdf_12/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/XuanVuPham/fdf_12/labels{/name}","releases_url":"https://api.github.com/repos/XuanVuPham/fdf_12/releases{/id}","deployments_url":"https://api.github.com/repos/XuanVuPham/fdf_12/deployments","created_at":"2016-10-26T02:46:23Z","updated_at":"2016-09-13T08:32:53Z","pushed_at":"2016-12-29T07:37:38Z","git_url":"git://github.com/XuanVuPham/fdf_12.git","ssh_url":"git@github.com:XuanVuPham/fdf_12.git","clone_url":"https://github.com/XuanVuPham/fdf_12.git","svn_url":"https://github.com/XuanVuPham/fdf_12","homepage":null,"size":14039,"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":"d71964add5b8a8b213ce1e6a358c90cfbfd85438","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":68090103,"name":"fdf_12","full_name":"framgia/fdf_12","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/fdf_12","description":"[DN] Food & Drink Ordering Web app. Production project after finishing the training.","fork":false,"url":"https://api.github.com/repos/framgia/fdf_12","forks_url":"https://api.github.com/repos/framgia/fdf_12/forks","keys_url":"https://api.github.com/repos/framgia/fdf_12/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fdf_12/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fdf_12/teams","hooks_url":"https://api.github.com/repos/framgia/fdf_12/hooks","issue_events_url":"https://api.github.com/repos/framgia/fdf_12/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fdf_12/events","assignees_url":"https://api.github.com/repos/framgia/fdf_12/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fdf_12/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fdf_12/tags","blobs_url":"https://api.github.com/repos/framgia/fdf_12/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fdf_12/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fdf_12/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fdf_12/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fdf_12/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fdf_12/languages","stargazers_url":"https://api.github.com/repos/framgia/fdf_12/stargazers","contributors_url":"https://api.github.com/repos/framgia/fdf_12/contributors","subscribers_url":"https://api.github.com/repos/framgia/fdf_12/subscribers","subscription_url":"https://api.github.com/repos/framgia/fdf_12/subscription","commits_url":"https://api.github.com/repos/framgia/fdf_12/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fdf_12/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fdf_12/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fdf_12/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fdf_12/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fdf_12/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fdf_12/merges","archive_url":"https://api.github.com/repos/framgia/fdf_12/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fdf_12/downloads","issues_url":"https://api.github.com/repos/framgia/fdf_12/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fdf_12/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fdf_12/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fdf_12/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fdf_12/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fdf_12/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/fdf_12/deployments","created_at":"2016-09-13T08:32:53Z","updated_at":"2016-09-13T08:32:53Z","pushed_at":"2016-12-29T07:37:40Z","git_url":"git://github.com/framgia/fdf_12.git","ssh_url":"git@github.com:framgia/fdf_12.git","clone_url":"https://github.com/framgia/fdf_12.git","svn_url":"https://github.com/framgia/fdf_12","homepage":null,"size":14003,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":7,"forks":16,"open_issues":7,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/fdf_12/pulls/163"},"html":{"href":"https://github.com/framgia/fdf_12/pull/163"},"issue":{"href":"https://api.github.com/repos/framgia/fdf_12/issues/163"},"comments":{"href":"https://api.github.com/repos/framgia/fdf_12/issues/163/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fdf_12/pulls/163/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fdf_12/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fdf_12/pulls/163/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fdf_12/statuses/266706b4757a21c13f9766702f2e782ae06b5735"}}}}
{"actor":{"display_login":"nvtanh"}}