{"action":"created","comment":{"url":"https://api.github.com/repos/apohllo/rocznik/pulls/comments/53787855","id":53787855,"diff_hunk":"@@ -18,12 +18,19 @@ def create\n     submission = Submission.find(params[:submission_id])\n     @authorship = Authorship.new(authorship_params)\n     @authorship.submission = submission\n-    if @authorship.save","path":"app/controllers/authorships_controller.rb","position":4,"original_position":4,"commit_id":"55bab4d65b90fcbf990066c0ecefb5ec98ecbdda","original_commit_id":"55bab4d65b90fcbf990066c0ecefb5ec98ecbdda","user":{"login":"apohllo","id":40543,"avatar_url":"https://avatars.githubusercontent.com/u/40543?v=3","gravatar_id":"","url":"https://api.github.com/users/apohllo","html_url":"https://github.com/apohllo","followers_url":"https://api.github.com/users/apohllo/followers","following_url":"https://api.github.com/users/apohllo/following{/other_user}","gists_url":"https://api.github.com/users/apohllo/gists{/gist_id}","starred_url":"https://api.github.com/users/apohllo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apohllo/subscriptions","organizations_url":"https://api.github.com/users/apohllo/orgs","repos_url":"https://api.github.com/users/apohllo/repos","events_url":"https://api.github.com/users/apohllo/events{/privacy}","received_events_url":"https://api.github.com/users/apohllo/received_events","type":"User","site_admin":false},"body":"Tutaj dodajemy kod:\r\n```ruby\r\npassword = create_password\r\nif User.find_by_email(params:[authorship.person.email]).nil?\r\n  User.create(email: @authorship.person.email, password: password, password_confirmation: password)\r\n  UserMailer.add(@authorship.person.email, password)\r\nend\r\n```","created_at":"2016-02-23T14:40:54Z","updated_at":"2016-02-23T14:40:54Z","html_url":"https://github.com/apohllo/rocznik/pull/353#discussion_r53787855","pull_request_url":"https://api.github.com/repos/apohllo/rocznik/pulls/353","_links":{"self":{"href":"https://api.github.com/repos/apohllo/rocznik/pulls/comments/53787855"},"html":{"href":"https://github.com/apohllo/rocznik/pull/353#discussion_r53787855"},"pull_request":{"href":"https://api.github.com/repos/apohllo/rocznik/pulls/353"}}},"pull_request":{"url":"https://api.github.com/repos/apohllo/rocznik/pulls/353","id":59810136,"html_url":"https://github.com/apohllo/rocznik/pull/353","diff_url":"https://github.com/apohllo/rocznik/pull/353.diff","patch_url":"https://github.com/apohllo/rocznik/pull/353.patch","issue_url":"https://api.github.com/repos/apohllo/rocznik/issues/353","number":353,"state":"open","locked":false,"title":"152 dodanie nowego uzytkownika po zgloszeniu","user":{"login":"roksana1","id":11928749,"avatar_url":"https://avatars.githubusercontent.com/u/11928749?v=3","gravatar_id":"","url":"https://api.github.com/users/roksana1","html_url":"https://github.com/roksana1","followers_url":"https://api.github.com/users/roksana1/followers","following_url":"https://api.github.com/users/roksana1/following{/other_user}","gists_url":"https://api.github.com/users/roksana1/gists{/gist_id}","starred_url":"https://api.github.com/users/roksana1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roksana1/subscriptions","organizations_url":"https://api.github.com/users/roksana1/orgs","repos_url":"https://api.github.com/users/roksana1/repos","events_url":"https://api.github.com/users/roksana1/events{/privacy}","received_events_url":"https://api.github.com/users/roksana1/received_events","type":"User","site_admin":false},"body":"Nie jestem pewna jak zabrać się za to zadanie i jestem świadoma, że nie od najlepszej strony się za nie zabrałam, lecz issue, od którego moje jest zależne nadal nie zostało wykonane.\r\nDlatego, przede wszystkim, chcę zapytać, czy mimo to mogę pracować nad swoim zadaniem?\r\nI jeśli tak, to gdzie dokładnie powinnam umieścić warunek dodania nowego użytkownika(rozumiem, że jego istnienie w bazie sprawdzamy na podstawie maila)? \r\nCzy do nowego użytkownika powinien zostać wysłany jeden mail z informacją o przyjęciu zgłoszenia oraz dodaniu go do bazy systemu? Czy też powinny być to dwa niezależne od siebie maile?\r\nBardzo proszę o pomoc i z góry dziękuję.\r\n\r\nDotyczy #152","created_at":"2016-02-18T14:57:44Z","updated_at":"2016-02-23T14:40:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fa74a04a8e693b74dc07f80f063d0ab0852fc6b8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apohllo/rocznik/pulls/353/commits","review_comments_url":"https://api.github.com/repos/apohllo/rocznik/pulls/353/comments","review_comment_url":"https://api.github.com/repos/apohllo/rocznik/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apohllo/rocznik/issues/353/comments","statuses_url":"https://api.github.com/repos/apohllo/rocznik/statuses/55bab4d65b90fcbf990066c0ecefb5ec98ecbdda","head":{"label":"apohllo:152-dodanie-nowego-uzytkownika-po-zgloszeniu","ref":"152-dodanie-nowego-uzytkownika-po-zgloszeniu","sha":"55bab4d65b90fcbf990066c0ecefb5ec98ecbdda","user":{"login":"apohllo","id":40543,"avatar_url":"https://avatars.githubusercontent.com/u/40543?v=3","gravatar_id":"","url":"https://api.github.com/users/apohllo","html_url":"https://github.com/apohllo","followers_url":"https://api.github.com/users/apohllo/followers","following_url":"https://api.github.com/users/apohllo/following{/other_user}","gists_url":"https://api.github.com/users/apohllo/gists{/gist_id}","starred_url":"https://api.github.com/users/apohllo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apohllo/subscriptions","organizations_url":"https://api.github.com/users/apohllo/orgs","repos_url":"https://api.github.com/users/apohllo/repos","events_url":"https://api.github.com/users/apohllo/events{/privacy}","received_events_url":"https://api.github.com/users/apohllo/received_events","type":"User","site_admin":false},"repo":{"id":41358645,"name":"rocznik","full_name":"apohllo/rocznik","owner":{"login":"apohllo","id":40543,"avatar_url":"https://avatars.githubusercontent.com/u/40543?v=3","gravatar_id":"","url":"https://api.github.com/users/apohllo","html_url":"https://github.com/apohllo","followers_url":"https://api.github.com/users/apohllo/followers","following_url":"https://api.github.com/users/apohllo/following{/other_user}","gists_url":"https://api.github.com/users/apohllo/gists{/gist_id}","starred_url":"https://api.github.com/users/apohllo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apohllo/subscriptions","organizations_url":"https://api.github.com/users/apohllo/orgs","repos_url":"https://api.github.com/users/apohllo/repos","events_url":"https://api.github.com/users/apohllo/events{/privacy}","received_events_url":"https://api.github.com/users/apohllo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/apohllo/rocznik","description":"Scientific article submission system","fork":false,"url":"https://api.github.com/repos/apohllo/rocznik","forks_url":"https://api.github.com/repos/apohllo/rocznik/forks","keys_url":"https://api.github.com/repos/apohllo/rocznik/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apohllo/rocznik/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apohllo/rocznik/teams","hooks_url":"https://api.github.com/repos/apohllo/rocznik/hooks","issue_events_url":"https://api.github.com/repos/apohllo/rocznik/issues/events{/number}","events_url":"https://api.github.com/repos/apohllo/rocznik/events","assignees_url":"https://api.github.com/repos/apohllo/rocznik/assignees{/user}","branches_url":"https://api.github.com/repos/apohllo/rocznik/branches{/branch}","tags_url":"https://api.github.com/repos/apohllo/rocznik/tags","blobs_url":"https://api.github.com/repos/apohllo/rocznik/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apohllo/rocznik/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apohllo/rocznik/git/refs{/sha}","trees_url":"https://api.github.com/repos/apohllo/rocznik/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apohllo/rocznik/statuses/{sha}","languages_url":"https://api.github.com/repos/apohllo/rocznik/languages","stargazers_url":"https://api.github.com/repos/apohllo/rocznik/stargazers","contributors_url":"https://api.github.com/repos/apohllo/rocznik/contributors","subscribers_url":"https://api.github.com/repos/apohllo/rocznik/subscribers","subscription_url":"https://api.github.com/repos/apohllo/rocznik/subscription","commits_url":"https://api.github.com/repos/apohllo/rocznik/commits{/sha}","git_commits_url":"https://api.github.com/repos/apohllo/rocznik/git/commits{/sha}","comments_url":"https://api.github.com/repos/apohllo/rocznik/comments{/number}","issue_comment_url":"https://api.github.com/repos/apohllo/rocznik/issues/comments{/number}","contents_url":"https://api.github.com/repos/apohllo/rocznik/contents/{+path}","compare_url":"https://api.github.com/repos/apohllo/rocznik/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apohllo/rocznik/merges","archive_url":"https://api.github.com/repos/apohllo/rocznik/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apohllo/rocznik/downloads","issues_url":"https://api.github.com/repos/apohllo/rocznik/issues{/number}","pulls_url":"https://api.github.com/repos/apohllo/rocznik/pulls{/number}","milestones_url":"https://api.github.com/repos/apohllo/rocznik/milestones{/number}","notifications_url":"https://api.github.com/repos/apohllo/rocznik/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apohllo/rocznik/labels{/name}","releases_url":"https://api.github.com/repos/apohllo/rocznik/releases{/id}","deployments_url":"https://api.github.com/repos/apohllo/rocznik/deployments","created_at":"2015-08-25T10:54:21Z","updated_at":"2016-01-11T23:12:33Z","pushed_at":"2016-02-23T14:35:52Z","git_url":"git://github.com/apohllo/rocznik.git","ssh_url":"git@github.com:apohllo/rocznik.git","clone_url":"https://github.com/apohllo/rocznik.git","svn_url":"https://github.com/apohllo/rocznik","homepage":"http://rocznik.kognitywistyka.eu","size":4209,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":49,"mirror_url":null,"open_issues_count":129,"forks":49,"open_issues":129,"watchers":0,"default_branch":"master"}},"base":{"label":"apohllo:master","ref":"master","sha":"c08f16295696656c0daec83c7aefa7630e67211e","user":{"login":"apohllo","id":40543,"avatar_url":"https://avatars.githubusercontent.com/u/40543?v=3","gravatar_id":"","url":"https://api.github.com/users/apohllo","html_url":"https://github.com/apohllo","followers_url":"https://api.github.com/users/apohllo/followers","following_url":"https://api.github.com/users/apohllo/following{/other_user}","gists_url":"https://api.github.com/users/apohllo/gists{/gist_id}","starred_url":"https://api.github.com/users/apohllo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apohllo/subscriptions","organizations_url":"https://api.github.com/users/apohllo/orgs","repos_url":"https://api.github.com/users/apohllo/repos","events_url":"https://api.github.com/users/apohllo/events{/privacy}","received_events_url":"https://api.github.com/users/apohllo/received_events","type":"User","site_admin":false},"repo":{"id":41358645,"name":"rocznik","full_name":"apohllo/rocznik","owner":{"login":"apohllo","id":40543,"avatar_url":"https://avatars.githubusercontent.com/u/40543?v=3","gravatar_id":"","url":"https://api.github.com/users/apohllo","html_url":"https://github.com/apohllo","followers_url":"https://api.github.com/users/apohllo/followers","following_url":"https://api.github.com/users/apohllo/following{/other_user}","gists_url":"https://api.github.com/users/apohllo/gists{/gist_id}","starred_url":"https://api.github.com/users/apohllo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apohllo/subscriptions","organizations_url":"https://api.github.com/users/apohllo/orgs","repos_url":"https://api.github.com/users/apohllo/repos","events_url":"https://api.github.com/users/apohllo/events{/privacy}","received_events_url":"https://api.github.com/users/apohllo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/apohllo/rocznik","description":"Scientific article submission system","fork":false,"url":"https://api.github.com/repos/apohllo/rocznik","forks_url":"https://api.github.com/repos/apohllo/rocznik/forks","keys_url":"https://api.github.com/repos/apohllo/rocznik/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apohllo/rocznik/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apohllo/rocznik/teams","hooks_url":"https://api.github.com/repos/apohllo/rocznik/hooks","issue_events_url":"https://api.github.com/repos/apohllo/rocznik/issues/events{/number}","events_url":"https://api.github.com/repos/apohllo/rocznik/events","assignees_url":"https://api.github.com/repos/apohllo/rocznik/assignees{/user}","branches_url":"https://api.github.com/repos/apohllo/rocznik/branches{/branch}","tags_url":"https://api.github.com/repos/apohllo/rocznik/tags","blobs_url":"https://api.github.com/repos/apohllo/rocznik/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apohllo/rocznik/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apohllo/rocznik/git/refs{/sha}","trees_url":"https://api.github.com/repos/apohllo/rocznik/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apohllo/rocznik/statuses/{sha}","languages_url":"https://api.github.com/repos/apohllo/rocznik/languages","stargazers_url":"https://api.github.com/repos/apohllo/rocznik/stargazers","contributors_url":"https://api.github.com/repos/apohllo/rocznik/contributors","subscribers_url":"https://api.github.com/repos/apohllo/rocznik/subscribers","subscription_url":"https://api.github.com/repos/apohllo/rocznik/subscription","commits_url":"https://api.github.com/repos/apohllo/rocznik/commits{/sha}","git_commits_url":"https://api.github.com/repos/apohllo/rocznik/git/commits{/sha}","comments_url":"https://api.github.com/repos/apohllo/rocznik/comments{/number}","issue_comment_url":"https://api.github.com/repos/apohllo/rocznik/issues/comments{/number}","contents_url":"https://api.github.com/repos/apohllo/rocznik/contents/{+path}","compare_url":"https://api.github.com/repos/apohllo/rocznik/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apohllo/rocznik/merges","archive_url":"https://api.github.com/repos/apohllo/rocznik/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apohllo/rocznik/downloads","issues_url":"https://api.github.com/repos/apohllo/rocznik/issues{/number}","pulls_url":"https://api.github.com/repos/apohllo/rocznik/pulls{/number}","milestones_url":"https://api.github.com/repos/apohllo/rocznik/milestones{/number}","notifications_url":"https://api.github.com/repos/apohllo/rocznik/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apohllo/rocznik/labels{/name}","releases_url":"https://api.github.com/repos/apohllo/rocznik/releases{/id}","deployments_url":"https://api.github.com/repos/apohllo/rocznik/deployments","created_at":"2015-08-25T10:54:21Z","updated_at":"2016-01-11T23:12:33Z","pushed_at":"2016-02-23T14:35:52Z","git_url":"git://github.com/apohllo/rocznik.git","ssh_url":"git@github.com:apohllo/rocznik.git","clone_url":"https://github.com/apohllo/rocznik.git","svn_url":"https://github.com/apohllo/rocznik","homepage":"http://rocznik.kognitywistyka.eu","size":4209,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":49,"mirror_url":null,"open_issues_count":129,"forks":49,"open_issues":129,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apohllo/rocznik/pulls/353"},"html":{"href":"https://github.com/apohllo/rocznik/pull/353"},"issue":{"href":"https://api.github.com/repos/apohllo/rocznik/issues/353"},"comments":{"href":"https://api.github.com/repos/apohllo/rocznik/issues/353/comments"},"review_comments":{"href":"https://api.github.com/repos/apohllo/rocznik/pulls/353/comments"},"review_comment":{"href":"https://api.github.com/repos/apohllo/rocznik/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apohllo/rocznik/pulls/353/commits"},"statuses":{"href":"https://api.github.com/repos/apohllo/rocznik/statuses/55bab4d65b90fcbf990066c0ecefb5ec98ecbdda"}}}}