{"action":"created","comment":{"url":"https://api.github.com/repos/wolox-training/mp-rails/pulls/comments/217020878","pull_request_review_id":154635388,"id":217020878,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNzAyMDg3OA==","diff_hunk":"@@ -0,0 +1,11 @@\n+class RentsMailer < ApplicationMailer\n+  # Subject can be set in your I18n file at config/locales/en.yml\n+  # with the following lookup:\n+  # bundle exec sidekiq --environment development -C config/sidekiq.yml\n+  #   en.rents_mailer.new_rent_notification.subject\n+  #\n+  def new_rent_notification(rent_id)\n+    @rent = Rent.find(rent_id)\n+    mail to: @rent.user['email'], from: 'no-reply@wolox.cl', subject: 'You just rented a book'","path":"app/mailers/rents_mailer.rb","position":9,"original_position":9,"commit_id":"1195279a210c382b0159be5495669e6df9f82e13","original_commit_id":"1195279a210c382b0159be5495669e6df9f82e13","user":{"login":"leamotta","id":7518671,"node_id":"MDQ6VXNlcjc1MTg2NzE=","avatar_url":"https://avatars0.githubusercontent.com/u/7518671?v=4","gravatar_id":"","url":"https://api.github.com/users/leamotta","html_url":"https://github.com/leamotta","followers_url":"https://api.github.com/users/leamotta/followers","following_url":"https://api.github.com/users/leamotta/following{/other_user}","gists_url":"https://api.github.com/users/leamotta/gists{/gist_id}","starred_url":"https://api.github.com/users/leamotta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leamotta/subscriptions","organizations_url":"https://api.github.com/users/leamotta/orgs","repos_url":"https://api.github.com/users/leamotta/repos","events_url":"https://api.github.com/users/leamotta/events{/privacy}","received_events_url":"https://api.github.com/users/leamotta/received_events","type":"User","site_admin":false},"body":"you should be able to access the email using just `@rent.user.email`.","created_at":"2018-09-12T13:04:40Z","updated_at":"2018-09-12T13:06:26Z","html_url":"https://github.com/wolox-training/mp-rails/pull/13#discussion_r217020878","pull_request_url":"https://api.github.com/repos/wolox-training/mp-rails/pulls/13","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/wolox-training/mp-rails/pulls/comments/217020878"},"html":{"href":"https://github.com/wolox-training/mp-rails/pull/13#discussion_r217020878"},"pull_request":{"href":"https://api.github.com/repos/wolox-training/mp-rails/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/wolox-training/mp-rails/pulls/13","id":214764288,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE0NzY0Mjg4","html_url":"https://github.com/wolox-training/mp-rails/pull/13","diff_url":"https://github.com/wolox-training/mp-rails/pull/13.diff","patch_url":"https://github.com/wolox-training/mp-rails/pull/13.patch","issue_url":"https://api.github.com/repos/wolox-training/mp-rails/issues/13","number":13,"state":"open","locked":false,"title":"Rent mailer","user":{"login":"mpuricawolox","id":42546901,"node_id":"MDQ6VXNlcjQyNTQ2OTAx","avatar_url":"https://avatars2.githubusercontent.com/u/42546901?v=4","gravatar_id":"","url":"https://api.github.com/users/mpuricawolox","html_url":"https://github.com/mpuricawolox","followers_url":"https://api.github.com/users/mpuricawolox/followers","following_url":"https://api.github.com/users/mpuricawolox/following{/other_user}","gists_url":"https://api.github.com/users/mpuricawolox/gists{/gist_id}","starred_url":"https://api.github.com/users/mpuricawolox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpuricawolox/subscriptions","organizations_url":"https://api.github.com/users/mpuricawolox/orgs","repos_url":"https://api.github.com/users/mpuricawolox/repos","events_url":"https://api.github.com/users/mpuricawolox/events{/privacy}","received_events_url":"https://api.github.com/users/mpuricawolox/received_events","type":"User","site_admin":false},"body":"## Summary\r\n\r\n- Setting sidekiq\r\n- Sending async email to user when creating a new rent\r\n\r\n\r\n## Trello Card\r\n\r\n[https://trello.com/c/spL6yZ38/11-mandar-email-al-usuario-cuando-se-crea-un-rent](https://trello.com/c/spL6yZ38/11-mandar-email-al-usuario-cuando-se-crea-un-rent)","created_at":"2018-09-11T20:57:30Z","updated_at":"2018-09-12T13:06:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6ad70a809bab09918fcabe325585a8f71d3b7c8e","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/wolox-training/mp-rails/pulls/13/commits","review_comments_url":"https://api.github.com/repos/wolox-training/mp-rails/pulls/13/comments","review_comment_url":"https://api.github.com/repos/wolox-training/mp-rails/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wolox-training/mp-rails/issues/13/comments","statuses_url":"https://api.github.com/repos/wolox-training/mp-rails/statuses/1195279a210c382b0159be5495669e6df9f82e13","head":{"label":"wolox-training:rent_mailer","ref":"rent_mailer","sha":"1195279a210c382b0159be5495669e6df9f82e13","user":{"login":"wolox-training","id":14113351,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTEzMzUx","avatar_url":"https://avatars1.githubusercontent.com/u/14113351?v=4","gravatar_id":"","url":"https://api.github.com/users/wolox-training","html_url":"https://github.com/wolox-training","followers_url":"https://api.github.com/users/wolox-training/followers","following_url":"https://api.github.com/users/wolox-training/following{/other_user}","gists_url":"https://api.github.com/users/wolox-training/gists{/gist_id}","starred_url":"https://api.github.com/users/wolox-training/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wolox-training/subscriptions","organizations_url":"https://api.github.com/users/wolox-training/orgs","repos_url":"https://api.github.com/users/wolox-training/repos","events_url":"https://api.github.com/users/wolox-training/events{/privacy}","received_events_url":"https://api.github.com/users/wolox-training/received_events","type":"Organization","site_admin":false},"repo":{"id":145337806,"node_id":"MDEwOlJlcG9zaXRvcnkxNDUzMzc4MDY=","name":"mp-rails","full_name":"wolox-training/mp-rails","owner":{"login":"wolox-training","id":14113351,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTEzMzUx","avatar_url":"https://avatars1.githubusercontent.com/u/14113351?v=4","gravatar_id":"","url":"https://api.github.com/users/wolox-training","html_url":"https://github.com/wolox-training","followers_url":"https://api.github.com/users/wolox-training/followers","following_url":"https://api.github.com/users/wolox-training/following{/other_user}","gists_url":"https://api.github.com/users/wolox-training/gists{/gist_id}","starred_url":"https://api.github.com/users/wolox-training/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wolox-training/subscriptions","organizations_url":"https://api.github.com/users/wolox-training/orgs","repos_url":"https://api.github.com/users/wolox-training/repos","events_url":"https://api.github.com/users/wolox-training/events{/privacy}","received_events_url":"https://api.github.com/users/wolox-training/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wolox-training/mp-rails","description":null,"fork":false,"url":"https://api.github.com/repos/wolox-training/mp-rails","forks_url":"https://api.github.com/repos/wolox-training/mp-rails/forks","keys_url":"https://api.github.com/repos/wolox-training/mp-rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wolox-training/mp-rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wolox-training/mp-rails/teams","hooks_url":"https://api.github.com/repos/wolox-training/mp-rails/hooks","issue_events_url":"https://api.github.com/repos/wolox-training/mp-rails/issues/events{/number}","events_url":"https://api.github.com/repos/wolox-training/mp-rails/events","assignees_url":"https://api.github.com/repos/wolox-training/mp-rails/assignees{/user}","branches_url":"https://api.github.com/repos/wolox-training/mp-rails/branches{/branch}","tags_url":"https://api.github.com/repos/wolox-training/mp-rails/tags","blobs_url":"https://api.github.com/repos/wolox-training/mp-rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wolox-training/mp-rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wolox-training/mp-rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/wolox-training/mp-rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wolox-training/mp-rails/statuses/{sha}","languages_url":"https://api.github.com/repos/wolox-training/mp-rails/languages","stargazers_url":"https://api.github.com/repos/wolox-training/mp-rails/stargazers","contributors_url":"https://api.github.com/repos/wolox-training/mp-rails/contributors","subscribers_url":"https://api.github.com/repos/wolox-training/mp-rails/subscribers","subscription_url":"https://api.github.com/repos/wolox-training/mp-rails/subscription","commits_url":"https://api.github.com/repos/wolox-training/mp-rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/wolox-training/mp-rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/wolox-training/mp-rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/wolox-training/mp-rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/wolox-training/mp-rails/contents/{+path}","compare_url":"https://api.github.com/repos/wolox-training/mp-rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wolox-training/mp-rails/merges","archive_url":"https://api.github.com/repos/wolox-training/mp-rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wolox-training/mp-rails/downloads","issues_url":"https://api.github.com/repos/wolox-training/mp-rails/issues{/number}","pulls_url":"https://api.github.com/repos/wolox-training/mp-rails/pulls{/number}","milestones_url":"https://api.github.com/repos/wolox-training/mp-rails/milestones{/number}","notifications_url":"https://api.github.com/repos/wolox-training/mp-rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wolox-training/mp-rails/labels{/name}","releases_url":"https://api.github.com/repos/wolox-training/mp-rails/releases{/id}","deployments_url":"https://api.github.com/repos/wolox-training/mp-rails/deployments","created_at":"2018-08-19T21:11:13Z","updated_at":"2018-09-11T15:51:35Z","pushed_at":"2018-09-11T21:12:58Z","git_url":"git://github.com/wolox-training/mp-rails.git","ssh_url":"git@github.com:wolox-training/mp-rails.git","clone_url":"https://github.com/wolox-training/mp-rails.git","svn_url":"https://github.com/wolox-training/mp-rails","homepage":null,"size":84,"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":"wolox-training:master","ref":"master","sha":"85ec3bbd919c8000afba9cc74e9e821e9803e1e7","user":{"login":"wolox-training","id":14113351,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTEzMzUx","avatar_url":"https://avatars1.githubusercontent.com/u/14113351?v=4","gravatar_id":"","url":"https://api.github.com/users/wolox-training","html_url":"https://github.com/wolox-training","followers_url":"https://api.github.com/users/wolox-training/followers","following_url":"https://api.github.com/users/wolox-training/following{/other_user}","gists_url":"https://api.github.com/users/wolox-training/gists{/gist_id}","starred_url":"https://api.github.com/users/wolox-training/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wolox-training/subscriptions","organizations_url":"https://api.github.com/users/wolox-training/orgs","repos_url":"https://api.github.com/users/wolox-training/repos","events_url":"https://api.github.com/users/wolox-training/events{/privacy}","received_events_url":"https://api.github.com/users/wolox-training/received_events","type":"Organization","site_admin":false},"repo":{"id":145337806,"node_id":"MDEwOlJlcG9zaXRvcnkxNDUzMzc4MDY=","name":"mp-rails","full_name":"wolox-training/mp-rails","owner":{"login":"wolox-training","id":14113351,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTEzMzUx","avatar_url":"https://avatars1.githubusercontent.com/u/14113351?v=4","gravatar_id":"","url":"https://api.github.com/users/wolox-training","html_url":"https://github.com/wolox-training","followers_url":"https://api.github.com/users/wolox-training/followers","following_url":"https://api.github.com/users/wolox-training/following{/other_user}","gists_url":"https://api.github.com/users/wolox-training/gists{/gist_id}","starred_url":"https://api.github.com/users/wolox-training/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wolox-training/subscriptions","organizations_url":"https://api.github.com/users/wolox-training/orgs","repos_url":"https://api.github.com/users/wolox-training/repos","events_url":"https://api.github.com/users/wolox-training/events{/privacy}","received_events_url":"https://api.github.com/users/wolox-training/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wolox-training/mp-rails","description":null,"fork":false,"url":"https://api.github.com/repos/wolox-training/mp-rails","forks_url":"https://api.github.com/repos/wolox-training/mp-rails/forks","keys_url":"https://api.github.com/repos/wolox-training/mp-rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wolox-training/mp-rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wolox-training/mp-rails/teams","hooks_url":"https://api.github.com/repos/wolox-training/mp-rails/hooks","issue_events_url":"https://api.github.com/repos/wolox-training/mp-rails/issues/events{/number}","events_url":"https://api.github.com/repos/wolox-training/mp-rails/events","assignees_url":"https://api.github.com/repos/wolox-training/mp-rails/assignees{/user}","branches_url":"https://api.github.com/repos/wolox-training/mp-rails/branches{/branch}","tags_url":"https://api.github.com/repos/wolox-training/mp-rails/tags","blobs_url":"https://api.github.com/repos/wolox-training/mp-rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wolox-training/mp-rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wolox-training/mp-rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/wolox-training/mp-rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wolox-training/mp-rails/statuses/{sha}","languages_url":"https://api.github.com/repos/wolox-training/mp-rails/languages","stargazers_url":"https://api.github.com/repos/wolox-training/mp-rails/stargazers","contributors_url":"https://api.github.com/repos/wolox-training/mp-rails/contributors","subscribers_url":"https://api.github.com/repos/wolox-training/mp-rails/subscribers","subscription_url":"https://api.github.com/repos/wolox-training/mp-rails/subscription","commits_url":"https://api.github.com/repos/wolox-training/mp-rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/wolox-training/mp-rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/wolox-training/mp-rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/wolox-training/mp-rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/wolox-training/mp-rails/contents/{+path}","compare_url":"https://api.github.com/repos/wolox-training/mp-rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wolox-training/mp-rails/merges","archive_url":"https://api.github.com/repos/wolox-training/mp-rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wolox-training/mp-rails/downloads","issues_url":"https://api.github.com/repos/wolox-training/mp-rails/issues{/number}","pulls_url":"https://api.github.com/repos/wolox-training/mp-rails/pulls{/number}","milestones_url":"https://api.github.com/repos/wolox-training/mp-rails/milestones{/number}","notifications_url":"https://api.github.com/repos/wolox-training/mp-rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wolox-training/mp-rails/labels{/name}","releases_url":"https://api.github.com/repos/wolox-training/mp-rails/releases{/id}","deployments_url":"https://api.github.com/repos/wolox-training/mp-rails/deployments","created_at":"2018-08-19T21:11:13Z","updated_at":"2018-09-11T15:51:35Z","pushed_at":"2018-09-11T21:12:58Z","git_url":"git://github.com/wolox-training/mp-rails.git","ssh_url":"git@github.com:wolox-training/mp-rails.git","clone_url":"https://github.com/wolox-training/mp-rails.git","svn_url":"https://github.com/wolox-training/mp-rails","homepage":null,"size":84,"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/wolox-training/mp-rails/pulls/13"},"html":{"href":"https://github.com/wolox-training/mp-rails/pull/13"},"issue":{"href":"https://api.github.com/repos/wolox-training/mp-rails/issues/13"},"comments":{"href":"https://api.github.com/repos/wolox-training/mp-rails/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/wolox-training/mp-rails/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/wolox-training/mp-rails/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wolox-training/mp-rails/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/wolox-training/mp-rails/statuses/1195279a210c382b0159be5495669e6df9f82e13"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"leamotta"}}