{"action":"created","comment":{"url":"https://api.github.com/repos/netguru-code-college/place-x/pulls/comments/191076149","pull_request_review_id":123583435,"id":191076149,"diff_hunk":"@@ -20,14 +23,23 @@ def create\n     @group = Group.new(groups_params.merge(owner_id: current_user.id))\n \n     if @group.save\n+      @group.users << current_user\n       redirect_to action: \"index\"\n     else\n       show\n     end\n   end\n \n   def add_user\n-    # potrzebna relacja do userow\n+    @group = Group.find(params[:group_id])\n+    @founded_user = User.find_by(display_name: params[\"name\"])\n+\n+    if @founded_user != nil","path":"app/controllers/groups_controller.rb","position":28,"original_position":28,"commit_id":"03a33a1218867f744b7f0bde615e82e5458ddf9e","original_commit_id":"03a33a1218867f744b7f0bde615e82e5458ddf9e","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Prefer !expression.nil? over expression != nil.","created_at":"2018-05-27T13:09:50Z","updated_at":"2018-05-27T13:09:50Z","html_url":"https://github.com/netguru-code-college/place-x/pull/44#discussion_r191076149","pull_request_url":"https://api.github.com/repos/netguru-code-college/place-x/pulls/44","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/netguru-code-college/place-x/pulls/comments/191076149"},"html":{"href":"https://github.com/netguru-code-college/place-x/pull/44#discussion_r191076149"},"pull_request":{"href":"https://api.github.com/repos/netguru-code-college/place-x/pulls/44"}}},"pull_request":{"url":"https://api.github.com/repos/netguru-code-college/place-x/pulls/44","id":190786814,"html_url":"https://github.com/netguru-code-college/place-x/pull/44","diff_url":"https://github.com/netguru-code-college/place-x/pull/44.diff","patch_url":"https://github.com/netguru-code-college/place-x/pull/44.patch","issue_url":"https://api.github.com/repos/netguru-code-college/place-x/issues/44","number":44,"state":"open","locked":false,"title":"Issue 99","user":{"login":"Doopler","id":3397483,"avatar_url":"https://avatars1.githubusercontent.com/u/3397483?v=4","gravatar_id":"","url":"https://api.github.com/users/Doopler","html_url":"https://github.com/Doopler","followers_url":"https://api.github.com/users/Doopler/followers","following_url":"https://api.github.com/users/Doopler/following{/other_user}","gists_url":"https://api.github.com/users/Doopler/gists{/gist_id}","starred_url":"https://api.github.com/users/Doopler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Doopler/subscriptions","organizations_url":"https://api.github.com/users/Doopler/orgs","repos_url":"https://api.github.com/users/Doopler/repos","events_url":"https://api.github.com/users/Doopler/events{/privacy}","received_events_url":"https://api.github.com/users/Doopler/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-05-27T13:09:39Z","updated_at":"2018-05-27T13:09:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0433fc8bc18ad1db6de42cfcd7378ba896404183","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/netguru-code-college/place-x/pulls/44/commits","review_comments_url":"https://api.github.com/repos/netguru-code-college/place-x/pulls/44/comments","review_comment_url":"https://api.github.com/repos/netguru-code-college/place-x/pulls/comments{/number}","comments_url":"https://api.github.com/repos/netguru-code-college/place-x/issues/44/comments","statuses_url":"https://api.github.com/repos/netguru-code-college/place-x/statuses/03a33a1218867f744b7f0bde615e82e5458ddf9e","head":{"label":"netguru-code-college:issue_99","ref":"issue_99","sha":"03a33a1218867f744b7f0bde615e82e5458ddf9e","user":{"login":"netguru-code-college","id":36675913,"avatar_url":"https://avatars3.githubusercontent.com/u/36675913?v=4","gravatar_id":"","url":"https://api.github.com/users/netguru-code-college","html_url":"https://github.com/netguru-code-college","followers_url":"https://api.github.com/users/netguru-code-college/followers","following_url":"https://api.github.com/users/netguru-code-college/following{/other_user}","gists_url":"https://api.github.com/users/netguru-code-college/gists{/gist_id}","starred_url":"https://api.github.com/users/netguru-code-college/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netguru-code-college/subscriptions","organizations_url":"https://api.github.com/users/netguru-code-college/orgs","repos_url":"https://api.github.com/users/netguru-code-college/repos","events_url":"https://api.github.com/users/netguru-code-college/events{/privacy}","received_events_url":"https://api.github.com/users/netguru-code-college/received_events","type":"Organization","site_admin":false},"repo":{"id":134941400,"name":"place-x","full_name":"netguru-code-college/place-x","owner":{"login":"netguru-code-college","id":36675913,"avatar_url":"https://avatars3.githubusercontent.com/u/36675913?v=4","gravatar_id":"","url":"https://api.github.com/users/netguru-code-college","html_url":"https://github.com/netguru-code-college","followers_url":"https://api.github.com/users/netguru-code-college/followers","following_url":"https://api.github.com/users/netguru-code-college/following{/other_user}","gists_url":"https://api.github.com/users/netguru-code-college/gists{/gist_id}","starred_url":"https://api.github.com/users/netguru-code-college/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netguru-code-college/subscriptions","organizations_url":"https://api.github.com/users/netguru-code-college/orgs","repos_url":"https://api.github.com/users/netguru-code-college/repos","events_url":"https://api.github.com/users/netguru-code-college/events{/privacy}","received_events_url":"https://api.github.com/users/netguru-code-college/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/netguru-code-college/place-x","description":"Place X - mark you places","fork":false,"url":"https://api.github.com/repos/netguru-code-college/place-x","forks_url":"https://api.github.com/repos/netguru-code-college/place-x/forks","keys_url":"https://api.github.com/repos/netguru-code-college/place-x/keys{/key_id}","collaborators_url":"https://api.github.com/repos/netguru-code-college/place-x/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/netguru-code-college/place-x/teams","hooks_url":"https://api.github.com/repos/netguru-code-college/place-x/hooks","issue_events_url":"https://api.github.com/repos/netguru-code-college/place-x/issues/events{/number}","events_url":"https://api.github.com/repos/netguru-code-college/place-x/events","assignees_url":"https://api.github.com/repos/netguru-code-college/place-x/assignees{/user}","branches_url":"https://api.github.com/repos/netguru-code-college/place-x/branches{/branch}","tags_url":"https://api.github.com/repos/netguru-code-college/place-x/tags","blobs_url":"https://api.github.com/repos/netguru-code-college/place-x/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/netguru-code-college/place-x/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/netguru-code-college/place-x/git/refs{/sha}","trees_url":"https://api.github.com/repos/netguru-code-college/place-x/git/trees{/sha}","statuses_url":"https://api.github.com/repos/netguru-code-college/place-x/statuses/{sha}","languages_url":"https://api.github.com/repos/netguru-code-college/place-x/languages","stargazers_url":"https://api.github.com/repos/netguru-code-college/place-x/stargazers","contributors_url":"https://api.github.com/repos/netguru-code-college/place-x/contributors","subscribers_url":"https://api.github.com/repos/netguru-code-college/place-x/subscribers","subscription_url":"https://api.github.com/repos/netguru-code-college/place-x/subscription","commits_url":"https://api.github.com/repos/netguru-code-college/place-x/commits{/sha}","git_commits_url":"https://api.github.com/repos/netguru-code-college/place-x/git/commits{/sha}","comments_url":"https://api.github.com/repos/netguru-code-college/place-x/comments{/number}","issue_comment_url":"https://api.github.com/repos/netguru-code-college/place-x/issues/comments{/number}","contents_url":"https://api.github.com/repos/netguru-code-college/place-x/contents/{+path}","compare_url":"https://api.github.com/repos/netguru-code-college/place-x/compare/{base}...{head}","merges_url":"https://api.github.com/repos/netguru-code-college/place-x/merges","archive_url":"https://api.github.com/repos/netguru-code-college/place-x/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/netguru-code-college/place-x/downloads","issues_url":"https://api.github.com/repos/netguru-code-college/place-x/issues{/number}","pulls_url":"https://api.github.com/repos/netguru-code-college/place-x/pulls{/number}","milestones_url":"https://api.github.com/repos/netguru-code-college/place-x/milestones{/number}","notifications_url":"https://api.github.com/repos/netguru-code-college/place-x/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/netguru-code-college/place-x/labels{/name}","releases_url":"https://api.github.com/repos/netguru-code-college/place-x/releases{/id}","deployments_url":"https://api.github.com/repos/netguru-code-college/place-x/deployments","created_at":"2018-05-26T07:58:29Z","updated_at":"2018-05-27T12:51:57Z","pushed_at":"2018-05-27T13:09:39Z","git_url":"git://github.com/netguru-code-college/place-x.git","ssh_url":"git@github.com:netguru-code-college/place-x.git","clone_url":"https://github.com/netguru-code-college/place-x.git","svn_url":"https://github.com/netguru-code-college/place-x","homepage":null,"size":503,"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":16,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":16,"watchers":0,"default_branch":"master"}},"base":{"label":"netguru-code-college:master","ref":"master","sha":"9cd29127f103265f2c244ab4adb0bf6a3c303be3","user":{"login":"netguru-code-college","id":36675913,"avatar_url":"https://avatars3.githubusercontent.com/u/36675913?v=4","gravatar_id":"","url":"https://api.github.com/users/netguru-code-college","html_url":"https://github.com/netguru-code-college","followers_url":"https://api.github.com/users/netguru-code-college/followers","following_url":"https://api.github.com/users/netguru-code-college/following{/other_user}","gists_url":"https://api.github.com/users/netguru-code-college/gists{/gist_id}","starred_url":"https://api.github.com/users/netguru-code-college/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netguru-code-college/subscriptions","organizations_url":"https://api.github.com/users/netguru-code-college/orgs","repos_url":"https://api.github.com/users/netguru-code-college/repos","events_url":"https://api.github.com/users/netguru-code-college/events{/privacy}","received_events_url":"https://api.github.com/users/netguru-code-college/received_events","type":"Organization","site_admin":false},"repo":{"id":134941400,"name":"place-x","full_name":"netguru-code-college/place-x","owner":{"login":"netguru-code-college","id":36675913,"avatar_url":"https://avatars3.githubusercontent.com/u/36675913?v=4","gravatar_id":"","url":"https://api.github.com/users/netguru-code-college","html_url":"https://github.com/netguru-code-college","followers_url":"https://api.github.com/users/netguru-code-college/followers","following_url":"https://api.github.com/users/netguru-code-college/following{/other_user}","gists_url":"https://api.github.com/users/netguru-code-college/gists{/gist_id}","starred_url":"https://api.github.com/users/netguru-code-college/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netguru-code-college/subscriptions","organizations_url":"https://api.github.com/users/netguru-code-college/orgs","repos_url":"https://api.github.com/users/netguru-code-college/repos","events_url":"https://api.github.com/users/netguru-code-college/events{/privacy}","received_events_url":"https://api.github.com/users/netguru-code-college/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/netguru-code-college/place-x","description":"Place X - mark you places","fork":false,"url":"https://api.github.com/repos/netguru-code-college/place-x","forks_url":"https://api.github.com/repos/netguru-code-college/place-x/forks","keys_url":"https://api.github.com/repos/netguru-code-college/place-x/keys{/key_id}","collaborators_url":"https://api.github.com/repos/netguru-code-college/place-x/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/netguru-code-college/place-x/teams","hooks_url":"https://api.github.com/repos/netguru-code-college/place-x/hooks","issue_events_url":"https://api.github.com/repos/netguru-code-college/place-x/issues/events{/number}","events_url":"https://api.github.com/repos/netguru-code-college/place-x/events","assignees_url":"https://api.github.com/repos/netguru-code-college/place-x/assignees{/user}","branches_url":"https://api.github.com/repos/netguru-code-college/place-x/branches{/branch}","tags_url":"https://api.github.com/repos/netguru-code-college/place-x/tags","blobs_url":"https://api.github.com/repos/netguru-code-college/place-x/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/netguru-code-college/place-x/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/netguru-code-college/place-x/git/refs{/sha}","trees_url":"https://api.github.com/repos/netguru-code-college/place-x/git/trees{/sha}","statuses_url":"https://api.github.com/repos/netguru-code-college/place-x/statuses/{sha}","languages_url":"https://api.github.com/repos/netguru-code-college/place-x/languages","stargazers_url":"https://api.github.com/repos/netguru-code-college/place-x/stargazers","contributors_url":"https://api.github.com/repos/netguru-code-college/place-x/contributors","subscribers_url":"https://api.github.com/repos/netguru-code-college/place-x/subscribers","subscription_url":"https://api.github.com/repos/netguru-code-college/place-x/subscription","commits_url":"https://api.github.com/repos/netguru-code-college/place-x/commits{/sha}","git_commits_url":"https://api.github.com/repos/netguru-code-college/place-x/git/commits{/sha}","comments_url":"https://api.github.com/repos/netguru-code-college/place-x/comments{/number}","issue_comment_url":"https://api.github.com/repos/netguru-code-college/place-x/issues/comments{/number}","contents_url":"https://api.github.com/repos/netguru-code-college/place-x/contents/{+path}","compare_url":"https://api.github.com/repos/netguru-code-college/place-x/compare/{base}...{head}","merges_url":"https://api.github.com/repos/netguru-code-college/place-x/merges","archive_url":"https://api.github.com/repos/netguru-code-college/place-x/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/netguru-code-college/place-x/downloads","issues_url":"https://api.github.com/repos/netguru-code-college/place-x/issues{/number}","pulls_url":"https://api.github.com/repos/netguru-code-college/place-x/pulls{/number}","milestones_url":"https://api.github.com/repos/netguru-code-college/place-x/milestones{/number}","notifications_url":"https://api.github.com/repos/netguru-code-college/place-x/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/netguru-code-college/place-x/labels{/name}","releases_url":"https://api.github.com/repos/netguru-code-college/place-x/releases{/id}","deployments_url":"https://api.github.com/repos/netguru-code-college/place-x/deployments","created_at":"2018-05-26T07:58:29Z","updated_at":"2018-05-27T12:51:57Z","pushed_at":"2018-05-27T13:09:39Z","git_url":"git://github.com/netguru-code-college/place-x.git","ssh_url":"git@github.com:netguru-code-college/place-x.git","clone_url":"https://github.com/netguru-code-college/place-x.git","svn_url":"https://github.com/netguru-code-college/place-x","homepage":null,"size":503,"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":16,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":16,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/netguru-code-college/place-x/pulls/44"},"html":{"href":"https://github.com/netguru-code-college/place-x/pull/44"},"issue":{"href":"https://api.github.com/repos/netguru-code-college/place-x/issues/44"},"comments":{"href":"https://api.github.com/repos/netguru-code-college/place-x/issues/44/comments"},"review_comments":{"href":"https://api.github.com/repos/netguru-code-college/place-x/pulls/44/comments"},"review_comment":{"href":"https://api.github.com/repos/netguru-code-college/place-x/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/netguru-code-college/place-x/pulls/44/commits"},"statuses":{"href":"https://api.github.com/repos/netguru-code-college/place-x/statuses/03a33a1218867f744b7f0bde615e82e5458ddf9e"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"houndci-bot"}}