{"action":"created","comment":{"url":"https://api.github.com/repos/Perkir/tutu/pulls/comments/81433937","pull_request_review_id":2417208,"id":81433937,"diff_hunk":"@@ -0,0 +1,4 @@\n+class ApplicationMailer < ActionMailer::Base\n+  default from: \"vk@thinknetica.com\"\n+  layout 'mailer'","path":"app/mailers/application_mailer.rb","position":3,"original_position":3,"commit_id":"a0c3aee673da7ee6a64b177e86dcadcd1a3f5852","original_commit_id":"a0c3aee673da7ee6a64b177e86dcadcd1a3f5852","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","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 double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.","created_at":"2016-09-30T23:26:26Z","updated_at":"2016-09-30T23:26:26Z","html_url":"https://github.com/Perkir/tutu/pull/4#discussion_r81433937","pull_request_url":"https://api.github.com/repos/Perkir/tutu/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/Perkir/tutu/pulls/comments/81433937"},"html":{"href":"https://github.com/Perkir/tutu/pull/4#discussion_r81433937"},"pull_request":{"href":"https://api.github.com/repos/Perkir/tutu/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/Perkir/tutu/pulls/4","id":87580923,"html_url":"https://github.com/Perkir/tutu/pull/4","diff_url":"https://github.com/Perkir/tutu/pull/4.diff","patch_url":"https://github.com/Perkir/tutu/pull/4.patch","issue_url":"https://api.github.com/repos/Perkir/tutu/issues/4","number":4,"state":"open","locked":false,"title":"Add devise","user":{"login":"Perkir","id":7623382,"avatar_url":"https://avatars.githubusercontent.com/u/7623382?v=3","gravatar_id":"","url":"https://api.github.com/users/Perkir","html_url":"https://github.com/Perkir","followers_url":"https://api.github.com/users/Perkir/followers","following_url":"https://api.github.com/users/Perkir/following{/other_user}","gists_url":"https://api.github.com/users/Perkir/gists{/gist_id}","starred_url":"https://api.github.com/users/Perkir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Perkir/subscriptions","organizations_url":"https://api.github.com/users/Perkir/orgs","repos_url":"https://api.github.com/users/Perkir/repos","events_url":"https://api.github.com/users/Perkir/events{/privacy}","received_events_url":"https://api.github.com/users/Perkir/received_events","type":"User","site_admin":false},"body":"Подключить к проекту аутентификацию через Devise\r\nРазделить приложение на пользовательскую и административную части. В административную часть имеет доступ только пользователи с правами администратора.\r\nПри покупке билета, билет должен привязываться к купившему его пользователю (залогиненному), при этом, id пользователя не должен передаваться в параметрах запроса или полях формы, в т.ч. скрытых (используйте current_user в контроллере для этого)\r\nЗалогиненный пользователь может посмотреть список всех своих купленных билетов, каждый билет в отдельности, а также удалить билет\r\nАдминистратор может просматривать список всех билетов в системе, каждый в отдельности, редактировать билеты и удалять их.\r\n\r\nУсложненное задание:\r\n\r\nПри регистрации пользователя запрашивать его имя и фамилию и после входа, выводить \"Привет, <имя пользователя>!\" \r\nПосле успешного входа, перенаправлять обычных пользователей на страницу поиска билетов, а админов - на страницу, где перечислены ссылки на управление ресурсами приложения (статья из wiki devise: github.com:-Redirect-to-a-specific-page-on-successful-sign-in-and-sign-out).\r\n","created_at":"2016-09-30T23:26:15Z","updated_at":"2016-09-30T23:26:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ce8acbd5a1ab7148e05cb1ba5b25584258e6b07e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Perkir/tutu/pulls/4/commits","review_comments_url":"https://api.github.com/repos/Perkir/tutu/pulls/4/comments","review_comment_url":"https://api.github.com/repos/Perkir/tutu/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Perkir/tutu/issues/4/comments","statuses_url":"https://api.github.com/repos/Perkir/tutu/statuses/a0c3aee673da7ee6a64b177e86dcadcd1a3f5852","head":{"label":"Perkir:add_devise","ref":"add_devise","sha":"a0c3aee673da7ee6a64b177e86dcadcd1a3f5852","user":{"login":"Perkir","id":7623382,"avatar_url":"https://avatars.githubusercontent.com/u/7623382?v=3","gravatar_id":"","url":"https://api.github.com/users/Perkir","html_url":"https://github.com/Perkir","followers_url":"https://api.github.com/users/Perkir/followers","following_url":"https://api.github.com/users/Perkir/following{/other_user}","gists_url":"https://api.github.com/users/Perkir/gists{/gist_id}","starred_url":"https://api.github.com/users/Perkir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Perkir/subscriptions","organizations_url":"https://api.github.com/users/Perkir/orgs","repos_url":"https://api.github.com/users/Perkir/repos","events_url":"https://api.github.com/users/Perkir/events{/privacy}","received_events_url":"https://api.github.com/users/Perkir/received_events","type":"User","site_admin":false},"repo":{"id":67313035,"name":"tutu","full_name":"Perkir/tutu","owner":{"login":"Perkir","id":7623382,"avatar_url":"https://avatars.githubusercontent.com/u/7623382?v=3","gravatar_id":"","url":"https://api.github.com/users/Perkir","html_url":"https://github.com/Perkir","followers_url":"https://api.github.com/users/Perkir/followers","following_url":"https://api.github.com/users/Perkir/following{/other_user}","gists_url":"https://api.github.com/users/Perkir/gists{/gist_id}","starred_url":"https://api.github.com/users/Perkir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Perkir/subscriptions","organizations_url":"https://api.github.com/users/Perkir/orgs","repos_url":"https://api.github.com/users/Perkir/repos","events_url":"https://api.github.com/users/Perkir/events{/privacy}","received_events_url":"https://api.github.com/users/Perkir/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Perkir/tutu","description":null,"fork":false,"url":"https://api.github.com/repos/Perkir/tutu","forks_url":"https://api.github.com/repos/Perkir/tutu/forks","keys_url":"https://api.github.com/repos/Perkir/tutu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Perkir/tutu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Perkir/tutu/teams","hooks_url":"https://api.github.com/repos/Perkir/tutu/hooks","issue_events_url":"https://api.github.com/repos/Perkir/tutu/issues/events{/number}","events_url":"https://api.github.com/repos/Perkir/tutu/events","assignees_url":"https://api.github.com/repos/Perkir/tutu/assignees{/user}","branches_url":"https://api.github.com/repos/Perkir/tutu/branches{/branch}","tags_url":"https://api.github.com/repos/Perkir/tutu/tags","blobs_url":"https://api.github.com/repos/Perkir/tutu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Perkir/tutu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Perkir/tutu/git/refs{/sha}","trees_url":"https://api.github.com/repos/Perkir/tutu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Perkir/tutu/statuses/{sha}","languages_url":"https://api.github.com/repos/Perkir/tutu/languages","stargazers_url":"https://api.github.com/repos/Perkir/tutu/stargazers","contributors_url":"https://api.github.com/repos/Perkir/tutu/contributors","subscribers_url":"https://api.github.com/repos/Perkir/tutu/subscribers","subscription_url":"https://api.github.com/repos/Perkir/tutu/subscription","commits_url":"https://api.github.com/repos/Perkir/tutu/commits{/sha}","git_commits_url":"https://api.github.com/repos/Perkir/tutu/git/commits{/sha}","comments_url":"https://api.github.com/repos/Perkir/tutu/comments{/number}","issue_comment_url":"https://api.github.com/repos/Perkir/tutu/issues/comments{/number}","contents_url":"https://api.github.com/repos/Perkir/tutu/contents/{+path}","compare_url":"https://api.github.com/repos/Perkir/tutu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Perkir/tutu/merges","archive_url":"https://api.github.com/repos/Perkir/tutu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Perkir/tutu/downloads","issues_url":"https://api.github.com/repos/Perkir/tutu/issues{/number}","pulls_url":"https://api.github.com/repos/Perkir/tutu/pulls{/number}","milestones_url":"https://api.github.com/repos/Perkir/tutu/milestones{/number}","notifications_url":"https://api.github.com/repos/Perkir/tutu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Perkir/tutu/labels{/name}","releases_url":"https://api.github.com/repos/Perkir/tutu/releases{/id}","deployments_url":"https://api.github.com/repos/Perkir/tutu/deployments","created_at":"2016-09-03T21:43:50Z","updated_at":"2016-09-22T17:51:29Z","pushed_at":"2016-09-30T23:26:15Z","git_url":"git://github.com/Perkir/tutu.git","ssh_url":"git@github.com:Perkir/tutu.git","clone_url":"https://github.com/Perkir/tutu.git","svn_url":"https://github.com/Perkir/tutu","homepage":null,"size":97,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"Perkir:master","ref":"master","sha":"b94150903577d0a520ed12d7a222303e82766c91","user":{"login":"Perkir","id":7623382,"avatar_url":"https://avatars.githubusercontent.com/u/7623382?v=3","gravatar_id":"","url":"https://api.github.com/users/Perkir","html_url":"https://github.com/Perkir","followers_url":"https://api.github.com/users/Perkir/followers","following_url":"https://api.github.com/users/Perkir/following{/other_user}","gists_url":"https://api.github.com/users/Perkir/gists{/gist_id}","starred_url":"https://api.github.com/users/Perkir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Perkir/subscriptions","organizations_url":"https://api.github.com/users/Perkir/orgs","repos_url":"https://api.github.com/users/Perkir/repos","events_url":"https://api.github.com/users/Perkir/events{/privacy}","received_events_url":"https://api.github.com/users/Perkir/received_events","type":"User","site_admin":false},"repo":{"id":67313035,"name":"tutu","full_name":"Perkir/tutu","owner":{"login":"Perkir","id":7623382,"avatar_url":"https://avatars.githubusercontent.com/u/7623382?v=3","gravatar_id":"","url":"https://api.github.com/users/Perkir","html_url":"https://github.com/Perkir","followers_url":"https://api.github.com/users/Perkir/followers","following_url":"https://api.github.com/users/Perkir/following{/other_user}","gists_url":"https://api.github.com/users/Perkir/gists{/gist_id}","starred_url":"https://api.github.com/users/Perkir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Perkir/subscriptions","organizations_url":"https://api.github.com/users/Perkir/orgs","repos_url":"https://api.github.com/users/Perkir/repos","events_url":"https://api.github.com/users/Perkir/events{/privacy}","received_events_url":"https://api.github.com/users/Perkir/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Perkir/tutu","description":null,"fork":false,"url":"https://api.github.com/repos/Perkir/tutu","forks_url":"https://api.github.com/repos/Perkir/tutu/forks","keys_url":"https://api.github.com/repos/Perkir/tutu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Perkir/tutu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Perkir/tutu/teams","hooks_url":"https://api.github.com/repos/Perkir/tutu/hooks","issue_events_url":"https://api.github.com/repos/Perkir/tutu/issues/events{/number}","events_url":"https://api.github.com/repos/Perkir/tutu/events","assignees_url":"https://api.github.com/repos/Perkir/tutu/assignees{/user}","branches_url":"https://api.github.com/repos/Perkir/tutu/branches{/branch}","tags_url":"https://api.github.com/repos/Perkir/tutu/tags","blobs_url":"https://api.github.com/repos/Perkir/tutu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Perkir/tutu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Perkir/tutu/git/refs{/sha}","trees_url":"https://api.github.com/repos/Perkir/tutu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Perkir/tutu/statuses/{sha}","languages_url":"https://api.github.com/repos/Perkir/tutu/languages","stargazers_url":"https://api.github.com/repos/Perkir/tutu/stargazers","contributors_url":"https://api.github.com/repos/Perkir/tutu/contributors","subscribers_url":"https://api.github.com/repos/Perkir/tutu/subscribers","subscription_url":"https://api.github.com/repos/Perkir/tutu/subscription","commits_url":"https://api.github.com/repos/Perkir/tutu/commits{/sha}","git_commits_url":"https://api.github.com/repos/Perkir/tutu/git/commits{/sha}","comments_url":"https://api.github.com/repos/Perkir/tutu/comments{/number}","issue_comment_url":"https://api.github.com/repos/Perkir/tutu/issues/comments{/number}","contents_url":"https://api.github.com/repos/Perkir/tutu/contents/{+path}","compare_url":"https://api.github.com/repos/Perkir/tutu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Perkir/tutu/merges","archive_url":"https://api.github.com/repos/Perkir/tutu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Perkir/tutu/downloads","issues_url":"https://api.github.com/repos/Perkir/tutu/issues{/number}","pulls_url":"https://api.github.com/repos/Perkir/tutu/pulls{/number}","milestones_url":"https://api.github.com/repos/Perkir/tutu/milestones{/number}","notifications_url":"https://api.github.com/repos/Perkir/tutu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Perkir/tutu/labels{/name}","releases_url":"https://api.github.com/repos/Perkir/tutu/releases{/id}","deployments_url":"https://api.github.com/repos/Perkir/tutu/deployments","created_at":"2016-09-03T21:43:50Z","updated_at":"2016-09-22T17:51:29Z","pushed_at":"2016-09-30T23:26:15Z","git_url":"git://github.com/Perkir/tutu.git","ssh_url":"git@github.com:Perkir/tutu.git","clone_url":"https://github.com/Perkir/tutu.git","svn_url":"https://github.com/Perkir/tutu","homepage":null,"size":97,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Perkir/tutu/pulls/4"},"html":{"href":"https://github.com/Perkir/tutu/pull/4"},"issue":{"href":"https://api.github.com/repos/Perkir/tutu/issues/4"},"comments":{"href":"https://api.github.com/repos/Perkir/tutu/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/Perkir/tutu/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/Perkir/tutu/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Perkir/tutu/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/Perkir/tutu/statuses/a0c3aee673da7ee6a64b177e86dcadcd1a3f5852"}}}}
{"actor":{"display_login":"houndci-bot"}}