{"action":"created","comment":{"url":"https://api.github.com/repos/GLexx909/test_guru/pulls/comments/222917470","pull_request_review_id":161921227,"id":222917470,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMjkxNzQ3MA==","diff_hunk":"@@ -1,15 +1,26 @@\n class ApplicationController < ActionController::Base\n \n+  before_action :configure_sign_up_params, if: :devise_controller?\n+  before_action :configure_account_update_params, if: :devise_controller?","path":"app/controllers/application_controller.rb","position":6,"original_position":4,"commit_id":"11fe6e9ee5d4cc641f2ce1105102076dee2eba31","original_commit_id":"11fe6e9ee5d4cc641f2ce1105102076dee2eba31","user":{"login":"iBublik","id":11278497,"node_id":"MDQ6VXNlcjExMjc4NDk3","avatar_url":"https://avatars1.githubusercontent.com/u/11278497?v=4","gravatar_id":"","url":"https://api.github.com/users/iBublik","html_url":"https://github.com/iBublik","followers_url":"https://api.github.com/users/iBublik/followers","following_url":"https://api.github.com/users/iBublik/following{/other_user}","gists_url":"https://api.github.com/users/iBublik/gists{/gist_id}","starred_url":"https://api.github.com/users/iBublik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iBublik/subscriptions","organizations_url":"https://api.github.com/users/iBublik/orgs","repos_url":"https://api.github.com/users/iBublik/repos","events_url":"https://api.github.com/users/iBublik/events{/privacy}","received_events_url":"https://api.github.com/users/iBublik/received_events","type":"User","site_admin":false},"body":"Достаточно одного метода, просто в нем сразу и для sign_up, и для account_update делай пермит","created_at":"2018-10-05T07:43:50Z","updated_at":"2018-10-05T07:57:54Z","html_url":"https://github.com/GLexx909/test_guru/pull/11#discussion_r222917470","pull_request_url":"https://api.github.com/repos/GLexx909/test_guru/pulls/11","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/GLexx909/test_guru/pulls/comments/222917470"},"html":{"href":"https://github.com/GLexx909/test_guru/pull/11#discussion_r222917470"},"pull_request":{"href":"https://api.github.com/repos/GLexx909/test_guru/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/GLexx909/test_guru/pulls/11","id":220085608,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIwMDg1NjA4","html_url":"https://github.com/GLexx909/test_guru/pull/11","diff_url":"https://github.com/GLexx909/test_guru/pull/11.diff","patch_url":"https://github.com/GLexx909/test_guru/pull/11.patch","issue_url":"https://api.github.com/repos/GLexx909/test_guru/issues/11","number":11,"state":"open","locked":false,"title":"Task11","user":{"login":"GLexx909","id":32548156,"node_id":"MDQ6VXNlcjMyNTQ4MTU2","avatar_url":"https://avatars3.githubusercontent.com/u/32548156?v=4","gravatar_id":"","url":"https://api.github.com/users/GLexx909","html_url":"https://github.com/GLexx909","followers_url":"https://api.github.com/users/GLexx909/followers","following_url":"https://api.github.com/users/GLexx909/following{/other_user}","gists_url":"https://api.github.com/users/GLexx909/gists{/gist_id}","starred_url":"https://api.github.com/users/GLexx909/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GLexx909/subscriptions","organizations_url":"https://api.github.com/users/GLexx909/orgs","repos_url":"https://api.github.com/users/GLexx909/repos","events_url":"https://api.github.com/users/GLexx909/events{/privacy}","received_events_url":"https://api.github.com/users/GLexx909/received_events","type":"User","site_admin":false},"body":"Наверное основная проблема в:\r\n- у админа не получается создавать тесты. Если в `views/admin/tests/_form` указать так:  \r\n= form_with model: [:admin, @test], local: true do |form|\r\nто вылазиет error (Author must exist). В контроллере наследую от current_user.tests.new.\r\n\r\nесли форму писать так:\r\n= form_with model: [@admin, @test], local: true do |form|\r\nнаследование работает гут, но пространство имён нарушается в маршруте.\r\n`Started POST \"/tests\" for 127.0.0.1 at 2018-10-03 18:38:24 +0300\r\n  \r\nActionController::RoutingError (No route matches [POST] \"/tests\"):`","created_at":"2018-10-03T15:41:19Z","updated_at":"2018-10-05T07:57:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b8031f9ae37d6964caa141f5faf87ede5b67812c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/GLexx909/test_guru/pulls/11/commits","review_comments_url":"https://api.github.com/repos/GLexx909/test_guru/pulls/11/comments","review_comment_url":"https://api.github.com/repos/GLexx909/test_guru/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GLexx909/test_guru/issues/11/comments","statuses_url":"https://api.github.com/repos/GLexx909/test_guru/statuses/11fe6e9ee5d4cc641f2ce1105102076dee2eba31","head":{"label":"GLexx909:task11","ref":"task11","sha":"11fe6e9ee5d4cc641f2ce1105102076dee2eba31","user":{"login":"GLexx909","id":32548156,"node_id":"MDQ6VXNlcjMyNTQ4MTU2","avatar_url":"https://avatars3.githubusercontent.com/u/32548156?v=4","gravatar_id":"","url":"https://api.github.com/users/GLexx909","html_url":"https://github.com/GLexx909","followers_url":"https://api.github.com/users/GLexx909/followers","following_url":"https://api.github.com/users/GLexx909/following{/other_user}","gists_url":"https://api.github.com/users/GLexx909/gists{/gist_id}","starred_url":"https://api.github.com/users/GLexx909/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GLexx909/subscriptions","organizations_url":"https://api.github.com/users/GLexx909/orgs","repos_url":"https://api.github.com/users/GLexx909/repos","events_url":"https://api.github.com/users/GLexx909/events{/privacy}","received_events_url":"https://api.github.com/users/GLexx909/received_events","type":"User","site_admin":false},"repo":{"id":147381028,"node_id":"MDEwOlJlcG9zaXRvcnkxNDczODEwMjg=","name":"test_guru","full_name":"GLexx909/test_guru","private":false,"owner":{"login":"GLexx909","id":32548156,"node_id":"MDQ6VXNlcjMyNTQ4MTU2","avatar_url":"https://avatars3.githubusercontent.com/u/32548156?v=4","gravatar_id":"","url":"https://api.github.com/users/GLexx909","html_url":"https://github.com/GLexx909","followers_url":"https://api.github.com/users/GLexx909/followers","following_url":"https://api.github.com/users/GLexx909/following{/other_user}","gists_url":"https://api.github.com/users/GLexx909/gists{/gist_id}","starred_url":"https://api.github.com/users/GLexx909/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GLexx909/subscriptions","organizations_url":"https://api.github.com/users/GLexx909/orgs","repos_url":"https://api.github.com/users/GLexx909/repos","events_url":"https://api.github.com/users/GLexx909/events{/privacy}","received_events_url":"https://api.github.com/users/GLexx909/received_events","type":"User","site_admin":false},"html_url":"https://github.com/GLexx909/test_guru","description":null,"fork":false,"url":"https://api.github.com/repos/GLexx909/test_guru","forks_url":"https://api.github.com/repos/GLexx909/test_guru/forks","keys_url":"https://api.github.com/repos/GLexx909/test_guru/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GLexx909/test_guru/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GLexx909/test_guru/teams","hooks_url":"https://api.github.com/repos/GLexx909/test_guru/hooks","issue_events_url":"https://api.github.com/repos/GLexx909/test_guru/issues/events{/number}","events_url":"https://api.github.com/repos/GLexx909/test_guru/events","assignees_url":"https://api.github.com/repos/GLexx909/test_guru/assignees{/user}","branches_url":"https://api.github.com/repos/GLexx909/test_guru/branches{/branch}","tags_url":"https://api.github.com/repos/GLexx909/test_guru/tags","blobs_url":"https://api.github.com/repos/GLexx909/test_guru/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GLexx909/test_guru/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GLexx909/test_guru/git/refs{/sha}","trees_url":"https://api.github.com/repos/GLexx909/test_guru/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GLexx909/test_guru/statuses/{sha}","languages_url":"https://api.github.com/repos/GLexx909/test_guru/languages","stargazers_url":"https://api.github.com/repos/GLexx909/test_guru/stargazers","contributors_url":"https://api.github.com/repos/GLexx909/test_guru/contributors","subscribers_url":"https://api.github.com/repos/GLexx909/test_guru/subscribers","subscription_url":"https://api.github.com/repos/GLexx909/test_guru/subscription","commits_url":"https://api.github.com/repos/GLexx909/test_guru/commits{/sha}","git_commits_url":"https://api.github.com/repos/GLexx909/test_guru/git/commits{/sha}","comments_url":"https://api.github.com/repos/GLexx909/test_guru/comments{/number}","issue_comment_url":"https://api.github.com/repos/GLexx909/test_guru/issues/comments{/number}","contents_url":"https://api.github.com/repos/GLexx909/test_guru/contents/{+path}","compare_url":"https://api.github.com/repos/GLexx909/test_guru/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GLexx909/test_guru/merges","archive_url":"https://api.github.com/repos/GLexx909/test_guru/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GLexx909/test_guru/downloads","issues_url":"https://api.github.com/repos/GLexx909/test_guru/issues{/number}","pulls_url":"https://api.github.com/repos/GLexx909/test_guru/pulls{/number}","milestones_url":"https://api.github.com/repos/GLexx909/test_guru/milestones{/number}","notifications_url":"https://api.github.com/repos/GLexx909/test_guru/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GLexx909/test_guru/labels{/name}","releases_url":"https://api.github.com/repos/GLexx909/test_guru/releases{/id}","deployments_url":"https://api.github.com/repos/GLexx909/test_guru/deployments","created_at":"2018-09-04T17:10:18Z","updated_at":"2018-09-04T17:28:12Z","pushed_at":"2018-10-04T16:45:50Z","git_url":"git://github.com/GLexx909/test_guru.git","ssh_url":"git@github.com:GLexx909/test_guru.git","clone_url":"https://github.com/GLexx909/test_guru.git","svn_url":"https://github.com/GLexx909/test_guru","homepage":null,"size":176,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"GLexx909:develop","ref":"develop","sha":"3446319542086165fe35a06cb75553f871779947","user":{"login":"GLexx909","id":32548156,"node_id":"MDQ6VXNlcjMyNTQ4MTU2","avatar_url":"https://avatars3.githubusercontent.com/u/32548156?v=4","gravatar_id":"","url":"https://api.github.com/users/GLexx909","html_url":"https://github.com/GLexx909","followers_url":"https://api.github.com/users/GLexx909/followers","following_url":"https://api.github.com/users/GLexx909/following{/other_user}","gists_url":"https://api.github.com/users/GLexx909/gists{/gist_id}","starred_url":"https://api.github.com/users/GLexx909/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GLexx909/subscriptions","organizations_url":"https://api.github.com/users/GLexx909/orgs","repos_url":"https://api.github.com/users/GLexx909/repos","events_url":"https://api.github.com/users/GLexx909/events{/privacy}","received_events_url":"https://api.github.com/users/GLexx909/received_events","type":"User","site_admin":false},"repo":{"id":147381028,"node_id":"MDEwOlJlcG9zaXRvcnkxNDczODEwMjg=","name":"test_guru","full_name":"GLexx909/test_guru","private":false,"owner":{"login":"GLexx909","id":32548156,"node_id":"MDQ6VXNlcjMyNTQ4MTU2","avatar_url":"https://avatars3.githubusercontent.com/u/32548156?v=4","gravatar_id":"","url":"https://api.github.com/users/GLexx909","html_url":"https://github.com/GLexx909","followers_url":"https://api.github.com/users/GLexx909/followers","following_url":"https://api.github.com/users/GLexx909/following{/other_user}","gists_url":"https://api.github.com/users/GLexx909/gists{/gist_id}","starred_url":"https://api.github.com/users/GLexx909/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GLexx909/subscriptions","organizations_url":"https://api.github.com/users/GLexx909/orgs","repos_url":"https://api.github.com/users/GLexx909/repos","events_url":"https://api.github.com/users/GLexx909/events{/privacy}","received_events_url":"https://api.github.com/users/GLexx909/received_events","type":"User","site_admin":false},"html_url":"https://github.com/GLexx909/test_guru","description":null,"fork":false,"url":"https://api.github.com/repos/GLexx909/test_guru","forks_url":"https://api.github.com/repos/GLexx909/test_guru/forks","keys_url":"https://api.github.com/repos/GLexx909/test_guru/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GLexx909/test_guru/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GLexx909/test_guru/teams","hooks_url":"https://api.github.com/repos/GLexx909/test_guru/hooks","issue_events_url":"https://api.github.com/repos/GLexx909/test_guru/issues/events{/number}","events_url":"https://api.github.com/repos/GLexx909/test_guru/events","assignees_url":"https://api.github.com/repos/GLexx909/test_guru/assignees{/user}","branches_url":"https://api.github.com/repos/GLexx909/test_guru/branches{/branch}","tags_url":"https://api.github.com/repos/GLexx909/test_guru/tags","blobs_url":"https://api.github.com/repos/GLexx909/test_guru/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GLexx909/test_guru/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GLexx909/test_guru/git/refs{/sha}","trees_url":"https://api.github.com/repos/GLexx909/test_guru/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GLexx909/test_guru/statuses/{sha}","languages_url":"https://api.github.com/repos/GLexx909/test_guru/languages","stargazers_url":"https://api.github.com/repos/GLexx909/test_guru/stargazers","contributors_url":"https://api.github.com/repos/GLexx909/test_guru/contributors","subscribers_url":"https://api.github.com/repos/GLexx909/test_guru/subscribers","subscription_url":"https://api.github.com/repos/GLexx909/test_guru/subscription","commits_url":"https://api.github.com/repos/GLexx909/test_guru/commits{/sha}","git_commits_url":"https://api.github.com/repos/GLexx909/test_guru/git/commits{/sha}","comments_url":"https://api.github.com/repos/GLexx909/test_guru/comments{/number}","issue_comment_url":"https://api.github.com/repos/GLexx909/test_guru/issues/comments{/number}","contents_url":"https://api.github.com/repos/GLexx909/test_guru/contents/{+path}","compare_url":"https://api.github.com/repos/GLexx909/test_guru/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GLexx909/test_guru/merges","archive_url":"https://api.github.com/repos/GLexx909/test_guru/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GLexx909/test_guru/downloads","issues_url":"https://api.github.com/repos/GLexx909/test_guru/issues{/number}","pulls_url":"https://api.github.com/repos/GLexx909/test_guru/pulls{/number}","milestones_url":"https://api.github.com/repos/GLexx909/test_guru/milestones{/number}","notifications_url":"https://api.github.com/repos/GLexx909/test_guru/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GLexx909/test_guru/labels{/name}","releases_url":"https://api.github.com/repos/GLexx909/test_guru/releases{/id}","deployments_url":"https://api.github.com/repos/GLexx909/test_guru/deployments","created_at":"2018-09-04T17:10:18Z","updated_at":"2018-09-04T17:28:12Z","pushed_at":"2018-10-04T16:45:50Z","git_url":"git://github.com/GLexx909/test_guru.git","ssh_url":"git@github.com:GLexx909/test_guru.git","clone_url":"https://github.com/GLexx909/test_guru.git","svn_url":"https://github.com/GLexx909/test_guru","homepage":null,"size":176,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GLexx909/test_guru/pulls/11"},"html":{"href":"https://github.com/GLexx909/test_guru/pull/11"},"issue":{"href":"https://api.github.com/repos/GLexx909/test_guru/issues/11"},"comments":{"href":"https://api.github.com/repos/GLexx909/test_guru/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/GLexx909/test_guru/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/GLexx909/test_guru/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GLexx909/test_guru/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/GLexx909/test_guru/statuses/11fe6e9ee5d4cc641f2ce1105102076dee2eba31"}},"author_association":"OWNER"}}
{"actor":{"display_login":"iBublik"}}