{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/ecommerce_52/pulls/comments/218311445","pull_request_review_id":156218195,"id":218311445,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxODMxMTQ0NQ==","diff_hunk":"@@ -17,17 +19,35 @@ def not_found?\n \n   private\n \n-  def logged_in_user\n-    return if logged_in?\n-    flash[:danger] = t \"application.please_login\"\n-    redirect_to login_path\n-  end\n+  # def logged_in_user\n+  #   return if logged_in?\n+  #   flash[:danger] = t \"application.please_login\"\n+  #   redirect_to login_path\n+  # end\n \n-  def admin_user?\n-    redirect_to root_path unless current_user.admin?\n+  def after_sign_in_path_for resource\n+    return backend_path if resource.admin?\n+    return root_path unless resource.admin?\n   end\n \n+  # def admin_user?\n+  #   redirect_to root_path unless current_user.admin?\n+  # end\n+\n   def category_all\n     @categories = Category.all\n   end\n+\n+  protected\n+\n+  def configure_permitted_parameters\n+    devise_parameter_sanitizer.permit(:sign_up) do |user_params|","path":"app/controllers/application_controller.rb","position":40,"original_position":40,"commit_id":"4b49959f4c6825922ea0fa46813fd3417642fffb","original_commit_id":"4b49959f4c6825922ea0fa46813fd3417642fffb","user":{"login":"hhhhuy112","id":17910318,"node_id":"MDQ6VXNlcjE3OTEwMzE4","avatar_url":"https://avatars0.githubusercontent.com/u/17910318?v=4","gravatar_id":"","url":"https://api.github.com/users/hhhhuy112","html_url":"https://github.com/hhhhuy112","followers_url":"https://api.github.com/users/hhhhuy112/followers","following_url":"https://api.github.com/users/hhhhuy112/following{/other_user}","gists_url":"https://api.github.com/users/hhhhuy112/gists{/gist_id}","starred_url":"https://api.github.com/users/hhhhuy112/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hhhhuy112/subscriptions","organizations_url":"https://api.github.com/users/hhhhuy112/orgs","repos_url":"https://api.github.com/users/hhhhuy112/repos","events_url":"https://api.github.com/users/hhhhuy112/events{/privacy}","received_events_url":"https://api.github.com/users/hhhhuy112/received_events","type":"User","site_admin":false},"body":" devise_parameter_sanitizer.permit(:sign_up, keys: User::USER_PARAMS)\r\nUSER_PARAMS = [:name, :address, :phone, :email, :password,\r\n        :password_confirmation, :current_password] em gán biến này trong user model nhé  \r\n","created_at":"2018-09-18T06:30:36Z","updated_at":"2018-09-18T06:31:08Z","html_url":"https://github.com/framgia/ecommerce_52/pull/50#discussion_r218311445","pull_request_url":"https://api.github.com/repos/framgia/ecommerce_52/pulls/50","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/framgia/ecommerce_52/pulls/comments/218311445"},"html":{"href":"https://github.com/framgia/ecommerce_52/pull/50#discussion_r218311445"},"pull_request":{"href":"https://api.github.com/repos/framgia/ecommerce_52/pulls/50"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/ecommerce_52/pulls/50","id":216155119,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE2MTU1MTE5","html_url":"https://github.com/framgia/ecommerce_52/pull/50","diff_url":"https://github.com/framgia/ecommerce_52/pull/50.diff","patch_url":"https://github.com/framgia/ecommerce_52/pull/50.patch","issue_url":"https://api.github.com/repos/framgia/ecommerce_52/issues/50","number":50,"state":"open","locked":false,"title":"add_gem_devise","user":{"login":"haphuoctuyen1997","id":32394426,"node_id":"MDQ6VXNlcjMyMzk0NDI2","avatar_url":"https://avatars3.githubusercontent.com/u/32394426?v=4","gravatar_id":"","url":"https://api.github.com/users/haphuoctuyen1997","html_url":"https://github.com/haphuoctuyen1997","followers_url":"https://api.github.com/users/haphuoctuyen1997/followers","following_url":"https://api.github.com/users/haphuoctuyen1997/following{/other_user}","gists_url":"https://api.github.com/users/haphuoctuyen1997/gists{/gist_id}","starred_url":"https://api.github.com/users/haphuoctuyen1997/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haphuoctuyen1997/subscriptions","organizations_url":"https://api.github.com/users/haphuoctuyen1997/orgs","repos_url":"https://api.github.com/users/haphuoctuyen1997/repos","events_url":"https://api.github.com/users/haphuoctuyen1997/events{/privacy}","received_events_url":"https://api.github.com/users/haphuoctuyen1997/received_events","type":"User","site_admin":false},"body":"![add_gem_devise](https://user-images.githubusercontent.com/32394426/45658375-d1e73580-bb18-11e8-9a83-0788aec9b0cb.png)\r\n","created_at":"2018-09-18T01:00:06Z","updated_at":"2018-09-18T06:31:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d7b3087a7f54234b83f14d57e89c831d07c1e525","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/ecommerce_52/pulls/50/commits","review_comments_url":"https://api.github.com/repos/framgia/ecommerce_52/pulls/50/comments","review_comment_url":"https://api.github.com/repos/framgia/ecommerce_52/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/ecommerce_52/issues/50/comments","statuses_url":"https://api.github.com/repos/framgia/ecommerce_52/statuses/4b49959f4c6825922ea0fa46813fd3417642fffb","head":{"label":"haphuoctuyen1997:add_gem_devise_user","ref":"add_gem_devise_user","sha":"4b49959f4c6825922ea0fa46813fd3417642fffb","user":{"login":"haphuoctuyen1997","id":32394426,"node_id":"MDQ6VXNlcjMyMzk0NDI2","avatar_url":"https://avatars3.githubusercontent.com/u/32394426?v=4","gravatar_id":"","url":"https://api.github.com/users/haphuoctuyen1997","html_url":"https://github.com/haphuoctuyen1997","followers_url":"https://api.github.com/users/haphuoctuyen1997/followers","following_url":"https://api.github.com/users/haphuoctuyen1997/following{/other_user}","gists_url":"https://api.github.com/users/haphuoctuyen1997/gists{/gist_id}","starred_url":"https://api.github.com/users/haphuoctuyen1997/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haphuoctuyen1997/subscriptions","organizations_url":"https://api.github.com/users/haphuoctuyen1997/orgs","repos_url":"https://api.github.com/users/haphuoctuyen1997/repos","events_url":"https://api.github.com/users/haphuoctuyen1997/events{/privacy}","received_events_url":"https://api.github.com/users/haphuoctuyen1997/received_events","type":"User","site_admin":false},"repo":{"id":146140213,"node_id":"MDEwOlJlcG9zaXRvcnkxNDYxNDAyMTM=","name":"ecommerce_52","full_name":"haphuoctuyen1997/ecommerce_52","private":false,"owner":{"login":"haphuoctuyen1997","id":32394426,"node_id":"MDQ6VXNlcjMyMzk0NDI2","avatar_url":"https://avatars3.githubusercontent.com/u/32394426?v=4","gravatar_id":"","url":"https://api.github.com/users/haphuoctuyen1997","html_url":"https://github.com/haphuoctuyen1997","followers_url":"https://api.github.com/users/haphuoctuyen1997/followers","following_url":"https://api.github.com/users/haphuoctuyen1997/following{/other_user}","gists_url":"https://api.github.com/users/haphuoctuyen1997/gists{/gist_id}","starred_url":"https://api.github.com/users/haphuoctuyen1997/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haphuoctuyen1997/subscriptions","organizations_url":"https://api.github.com/users/haphuoctuyen1997/orgs","repos_url":"https://api.github.com/users/haphuoctuyen1997/repos","events_url":"https://api.github.com/users/haphuoctuyen1997/events{/privacy}","received_events_url":"https://api.github.com/users/haphuoctuyen1997/received_events","type":"User","site_admin":false},"html_url":"https://github.com/haphuoctuyen1997/ecommerce_52","description":null,"fork":true,"url":"https://api.github.com/repos/haphuoctuyen1997/ecommerce_52","forks_url":"https://api.github.com/repos/haphuoctuyen1997/ecommerce_52/forks","keys_url":"https://api.github.com/repos/haphuoctuyen1997/ecommerce_52/keys{/key_id}","collaborators_url":"https://api.github.com/repos/haphuoctuyen1997/ecommerce_52/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/haphuoctuyen1997/ecommerce_52/teams","hooks_url":"https://api.github.com/repos/haphuoctuyen1997/ecommerce_52/hooks","issue_events_url":"https://api.github.com/repos/haphuoctuyen1997/ecommerce_52/issues/events{/number}","events_url":"https://api.github.com/repos/haphuoctuyen1997/ecommerce_52/events","assignees_url":"https://api.github.com/repos/haphuoctuyen1997/ecommerce_52/assignees{/user}","branches_url":"https://api.github.com/repos/haphuoctuyen1997/ecommerce_52/branches{/branch}","tags_url":"https://api.github.com/repos/haphuoctuyen1997/ecommerce_52/tags","blobs_url":"https://api.github.com/repos/haphuoctuyen1997/ecommerce_52/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/haphuoctuyen1997/ecommerce_52/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/haphuoctuyen1997/ecommerce_52/git/refs{/sha}","trees_url":"https://api.github.com/repos/haphuoctuyen1997/ecommerce_52/git/trees{/sha}","statuses_url":"https://api.github.com/repos/haphuoctuyen1997/ecommerce_52/statuses/{sha}","languages_url":"https://api.github.com/repos/haphuoctuyen1997/ecommerce_52/languages","stargazers_url":"https://api.github.com/repos/haphuoctuyen1997/ecommerce_52/stargazers","contributors_url":"https://api.github.com/repos/haphuoctuyen1997/ecommerce_52/contributors","subscribers_url":"https://api.github.com/repos/haphuoctuyen1997/ecommerce_52/subscribers","subscription_url":"https://api.github.com/repos/haphuoctuyen1997/ecommerce_52/subscription","commits_url":"https://api.github.com/repos/haphuoctuyen1997/ecommerce_52/commits{/sha}","git_commits_url":"https://api.github.com/repos/haphuoctuyen1997/ecommerce_52/git/commits{/sha}","comments_url":"https://api.github.com/repos/haphuoctuyen1997/ecommerce_52/comments{/number}","issue_comment_url":"https://api.github.com/repos/haphuoctuyen1997/ecommerce_52/issues/comments{/number}","contents_url":"https://api.github.com/repos/haphuoctuyen1997/ecommerce_52/contents/{+path}","compare_url":"https://api.github.com/repos/haphuoctuyen1997/ecommerce_52/compare/{base}...{head}","merges_url":"https://api.github.com/repos/haphuoctuyen1997/ecommerce_52/merges","archive_url":"https://api.github.com/repos/haphuoctuyen1997/ecommerce_52/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/haphuoctuyen1997/ecommerce_52/downloads","issues_url":"https://api.github.com/repos/haphuoctuyen1997/ecommerce_52/issues{/number}","pulls_url":"https://api.github.com/repos/haphuoctuyen1997/ecommerce_52/pulls{/number}","milestones_url":"https://api.github.com/repos/haphuoctuyen1997/ecommerce_52/milestones{/number}","notifications_url":"https://api.github.com/repos/haphuoctuyen1997/ecommerce_52/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/haphuoctuyen1997/ecommerce_52/labels{/name}","releases_url":"https://api.github.com/repos/haphuoctuyen1997/ecommerce_52/releases{/id}","deployments_url":"https://api.github.com/repos/haphuoctuyen1997/ecommerce_52/deployments","created_at":"2018-08-26T00:48:54Z","updated_at":"2018-08-26T00:48:55Z","pushed_at":"2018-09-18T02:04:03Z","git_url":"git://github.com/haphuoctuyen1997/ecommerce_52.git","ssh_url":"git@github.com:haphuoctuyen1997/ecommerce_52.git","clone_url":"https://github.com/haphuoctuyen1997/ecommerce_52.git","svn_url":"https://github.com/haphuoctuyen1997/ecommerce_52","homepage":null,"size":1587,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"framgia:tuyen_rails_advance2","ref":"tuyen_rails_advance2","sha":"5b53e0d9822c12af198a307137ccd2069f30f8df","user":{"login":"framgia","id":2322183,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMjIxODM=","avatar_url":"https://avatars3.githubusercontent.com/u/2322183?v=4","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":146080364,"node_id":"MDEwOlJlcG9zaXRvcnkxNDYwODAzNjQ=","name":"ecommerce_52","full_name":"framgia/ecommerce_52","private":false,"owner":{"login":"framgia","id":2322183,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzMjIxODM=","avatar_url":"https://avatars3.githubusercontent.com/u/2322183?v=4","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},"html_url":"https://github.com/framgia/ecommerce_52","description":null,"fork":false,"url":"https://api.github.com/repos/framgia/ecommerce_52","forks_url":"https://api.github.com/repos/framgia/ecommerce_52/forks","keys_url":"https://api.github.com/repos/framgia/ecommerce_52/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/ecommerce_52/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/ecommerce_52/teams","hooks_url":"https://api.github.com/repos/framgia/ecommerce_52/hooks","issue_events_url":"https://api.github.com/repos/framgia/ecommerce_52/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/ecommerce_52/events","assignees_url":"https://api.github.com/repos/framgia/ecommerce_52/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/ecommerce_52/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/ecommerce_52/tags","blobs_url":"https://api.github.com/repos/framgia/ecommerce_52/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/ecommerce_52/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/ecommerce_52/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/ecommerce_52/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/ecommerce_52/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/ecommerce_52/languages","stargazers_url":"https://api.github.com/repos/framgia/ecommerce_52/stargazers","contributors_url":"https://api.github.com/repos/framgia/ecommerce_52/contributors","subscribers_url":"https://api.github.com/repos/framgia/ecommerce_52/subscribers","subscription_url":"https://api.github.com/repos/framgia/ecommerce_52/subscription","commits_url":"https://api.github.com/repos/framgia/ecommerce_52/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/ecommerce_52/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/ecommerce_52/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/ecommerce_52/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/ecommerce_52/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/ecommerce_52/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/ecommerce_52/merges","archive_url":"https://api.github.com/repos/framgia/ecommerce_52/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/ecommerce_52/downloads","issues_url":"https://api.github.com/repos/framgia/ecommerce_52/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/ecommerce_52/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/ecommerce_52/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/ecommerce_52/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/ecommerce_52/labels{/name}","releases_url":"https://api.github.com/repos/framgia/ecommerce_52/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/ecommerce_52/deployments","created_at":"2018-08-25T08:48:17Z","updated_at":"2018-09-14T12:32:32Z","pushed_at":"2018-09-18T02:07:14Z","git_url":"git://github.com/framgia/ecommerce_52.git","ssh_url":"git@github.com:framgia/ecommerce_52.git","clone_url":"https://github.com/framgia/ecommerce_52.git","svn_url":"https://github.com/framgia/ecommerce_52","homepage":null,"size":2773,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":3,"open_issues":3,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/ecommerce_52/pulls/50"},"html":{"href":"https://github.com/framgia/ecommerce_52/pull/50"},"issue":{"href":"https://api.github.com/repos/framgia/ecommerce_52/issues/50"},"comments":{"href":"https://api.github.com/repos/framgia/ecommerce_52/issues/50/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/ecommerce_52/pulls/50/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/ecommerce_52/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/ecommerce_52/pulls/50/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/ecommerce_52/statuses/4b49959f4c6825922ea0fa46813fd3417642fffb"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"hhhhuy112"}}