{"action":"created","comment":{"url":"https://api.github.com/repos/benwoody/shrtnr/pulls/comments/35040330","id":35040330,"diff_hunk":"@@ -0,0 +1,10 @@\n+class SettingsMailer < ApplicationMailer\n+  default from: \"derek.covey@gmail.com\"\n+\n+  def update_email(user)","path":"app/mailers/settings_mailer.rb","position":4,"original_position":4,"commit_id":"3b39c776f3dfe6da788c2c0cd1f5bde5285402d1","original_commit_id":"3b39c776f3dfe6da788c2c0cd1f5bde5285402d1","user":{"login":"benwoody","id":625707,"avatar_url":"https://avatars.githubusercontent.com/u/625707?v=3","gravatar_id":"","url":"https://api.github.com/users/benwoody","html_url":"https://github.com/benwoody","followers_url":"https://api.github.com/users/benwoody/followers","following_url":"https://api.github.com/users/benwoody/following{/other_user}","gists_url":"https://api.github.com/users/benwoody/gists{/gist_id}","starred_url":"https://api.github.com/users/benwoody/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benwoody/subscriptions","organizations_url":"https://api.github.com/users/benwoody/orgs","repos_url":"https://api.github.com/users/benwoody/repos","events_url":"https://api.github.com/users/benwoody/events{/privacy}","received_events_url":"https://api.github.com/users/benwoody/received_events","type":"User","site_admin":false},"body":"This could have just as easily been placed in the UserMailer instead of creating a SettingsMailer. Works just as well this way though!","created_at":"2015-07-20T20:33:14Z","updated_at":"2015-07-20T20:33:14Z","html_url":"https://github.com/benwoody/shrtnr/pull/59#discussion_r35040330","pull_request_url":"https://api.github.com/repos/benwoody/shrtnr/pulls/59","_links":{"self":{"href":"https://api.github.com/repos/benwoody/shrtnr/pulls/comments/35040330"},"html":{"href":"https://github.com/benwoody/shrtnr/pull/59#discussion_r35040330"},"pull_request":{"href":"https://api.github.com/repos/benwoody/shrtnr/pulls/59"}}},"pull_request":{"url":"https://api.github.com/repos/benwoody/shrtnr/pulls/59","id":40301160,"html_url":"https://github.com/benwoody/shrtnr/pull/59","diff_url":"https://github.com/benwoody/shrtnr/pull/59.diff","patch_url":"https://github.com/benwoody/shrtnr/pull/59.patch","issue_url":"https://api.github.com/repos/benwoody/shrtnr/issues/59","number":59,"state":"open","locked":false,"title":"Covey hw3","user":{"login":"djcroissant","id":10459153,"avatar_url":"https://avatars.githubusercontent.com/u/10459153?v=3","gravatar_id":"","url":"https://api.github.com/users/djcroissant","html_url":"https://github.com/djcroissant","followers_url":"https://api.github.com/users/djcroissant/followers","following_url":"https://api.github.com/users/djcroissant/following{/other_user}","gists_url":"https://api.github.com/users/djcroissant/gists{/gist_id}","starred_url":"https://api.github.com/users/djcroissant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djcroissant/subscriptions","organizations_url":"https://api.github.com/users/djcroissant/orgs","repos_url":"https://api.github.com/users/djcroissant/repos","events_url":"https://api.github.com/users/djcroissant/events{/privacy}","received_events_url":"https://api.github.com/users/djcroissant/received_events","type":"User","site_admin":false},"body":"Completed the basic hw assignment.  Added a mailer to notify user when settings were updated.  Could add some extra features.  Such as email both old and new email addresses (if updated), and notify user what settings were updated in the email.  Will take a look if there is time after group project work.","created_at":"2015-07-19T00:48:07Z","updated_at":"2015-07-20T20:33:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6dadde9bec6c77428d7311dfe2d834787b7ee0f9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/benwoody/shrtnr/pulls/59/commits","review_comments_url":"https://api.github.com/repos/benwoody/shrtnr/pulls/59/comments","review_comment_url":"https://api.github.com/repos/benwoody/shrtnr/pulls/comments{/number}","comments_url":"https://api.github.com/repos/benwoody/shrtnr/issues/59/comments","statuses_url":"https://api.github.com/repos/benwoody/shrtnr/statuses/3b39c776f3dfe6da788c2c0cd1f5bde5285402d1","head":{"label":"djcroissant:covey-hw3","ref":"covey-hw3","sha":"3b39c776f3dfe6da788c2c0cd1f5bde5285402d1","user":{"login":"djcroissant","id":10459153,"avatar_url":"https://avatars.githubusercontent.com/u/10459153?v=3","gravatar_id":"","url":"https://api.github.com/users/djcroissant","html_url":"https://github.com/djcroissant","followers_url":"https://api.github.com/users/djcroissant/followers","following_url":"https://api.github.com/users/djcroissant/following{/other_user}","gists_url":"https://api.github.com/users/djcroissant/gists{/gist_id}","starred_url":"https://api.github.com/users/djcroissant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djcroissant/subscriptions","organizations_url":"https://api.github.com/users/djcroissant/orgs","repos_url":"https://api.github.com/users/djcroissant/repos","events_url":"https://api.github.com/users/djcroissant/events{/privacy}","received_events_url":"https://api.github.com/users/djcroissant/received_events","type":"User","site_admin":false},"repo":{"id":38205928,"name":"shrtnr","full_name":"djcroissant/shrtnr","owner":{"login":"djcroissant","id":10459153,"avatar_url":"https://avatars.githubusercontent.com/u/10459153?v=3","gravatar_id":"","url":"https://api.github.com/users/djcroissant","html_url":"https://github.com/djcroissant","followers_url":"https://api.github.com/users/djcroissant/followers","following_url":"https://api.github.com/users/djcroissant/following{/other_user}","gists_url":"https://api.github.com/users/djcroissant/gists{/gist_id}","starred_url":"https://api.github.com/users/djcroissant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djcroissant/subscriptions","organizations_url":"https://api.github.com/users/djcroissant/orgs","repos_url":"https://api.github.com/users/djcroissant/repos","events_url":"https://api.github.com/users/djcroissant/events{/privacy}","received_events_url":"https://api.github.com/users/djcroissant/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/djcroissant/shrtnr","description":"A URL Shortener for UW Advanced Rails","fork":true,"url":"https://api.github.com/repos/djcroissant/shrtnr","forks_url":"https://api.github.com/repos/djcroissant/shrtnr/forks","keys_url":"https://api.github.com/repos/djcroissant/shrtnr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/djcroissant/shrtnr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/djcroissant/shrtnr/teams","hooks_url":"https://api.github.com/repos/djcroissant/shrtnr/hooks","issue_events_url":"https://api.github.com/repos/djcroissant/shrtnr/issues/events{/number}","events_url":"https://api.github.com/repos/djcroissant/shrtnr/events","assignees_url":"https://api.github.com/repos/djcroissant/shrtnr/assignees{/user}","branches_url":"https://api.github.com/repos/djcroissant/shrtnr/branches{/branch}","tags_url":"https://api.github.com/repos/djcroissant/shrtnr/tags","blobs_url":"https://api.github.com/repos/djcroissant/shrtnr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/djcroissant/shrtnr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/djcroissant/shrtnr/git/refs{/sha}","trees_url":"https://api.github.com/repos/djcroissant/shrtnr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/djcroissant/shrtnr/statuses/{sha}","languages_url":"https://api.github.com/repos/djcroissant/shrtnr/languages","stargazers_url":"https://api.github.com/repos/djcroissant/shrtnr/stargazers","contributors_url":"https://api.github.com/repos/djcroissant/shrtnr/contributors","subscribers_url":"https://api.github.com/repos/djcroissant/shrtnr/subscribers","subscription_url":"https://api.github.com/repos/djcroissant/shrtnr/subscription","commits_url":"https://api.github.com/repos/djcroissant/shrtnr/commits{/sha}","git_commits_url":"https://api.github.com/repos/djcroissant/shrtnr/git/commits{/sha}","comments_url":"https://api.github.com/repos/djcroissant/shrtnr/comments{/number}","issue_comment_url":"https://api.github.com/repos/djcroissant/shrtnr/issues/comments{/number}","contents_url":"https://api.github.com/repos/djcroissant/shrtnr/contents/{+path}","compare_url":"https://api.github.com/repos/djcroissant/shrtnr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/djcroissant/shrtnr/merges","archive_url":"https://api.github.com/repos/djcroissant/shrtnr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/djcroissant/shrtnr/downloads","issues_url":"https://api.github.com/repos/djcroissant/shrtnr/issues{/number}","pulls_url":"https://api.github.com/repos/djcroissant/shrtnr/pulls{/number}","milestones_url":"https://api.github.com/repos/djcroissant/shrtnr/milestones{/number}","notifications_url":"https://api.github.com/repos/djcroissant/shrtnr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/djcroissant/shrtnr/labels{/name}","releases_url":"https://api.github.com/repos/djcroissant/shrtnr/releases{/id}","created_at":"2015-06-28T16:33:45Z","updated_at":"2015-07-18T18:49:17Z","pushed_at":"2015-07-19T00:44:29Z","git_url":"git://github.com/djcroissant/shrtnr.git","ssh_url":"git@github.com:djcroissant/shrtnr.git","clone_url":"https://github.com/djcroissant/shrtnr.git","svn_url":"https://github.com/djcroissant/shrtnr","homepage":null,"size":424,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"benwoody:master","ref":"master","sha":"05bcef12d27897838693c83a153aba67a485590b","user":{"login":"benwoody","id":625707,"avatar_url":"https://avatars.githubusercontent.com/u/625707?v=3","gravatar_id":"","url":"https://api.github.com/users/benwoody","html_url":"https://github.com/benwoody","followers_url":"https://api.github.com/users/benwoody/followers","following_url":"https://api.github.com/users/benwoody/following{/other_user}","gists_url":"https://api.github.com/users/benwoody/gists{/gist_id}","starred_url":"https://api.github.com/users/benwoody/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benwoody/subscriptions","organizations_url":"https://api.github.com/users/benwoody/orgs","repos_url":"https://api.github.com/users/benwoody/repos","events_url":"https://api.github.com/users/benwoody/events{/privacy}","received_events_url":"https://api.github.com/users/benwoody/received_events","type":"User","site_admin":false},"repo":{"id":33279043,"name":"shrtnr","full_name":"benwoody/shrtnr","owner":{"login":"benwoody","id":625707,"avatar_url":"https://avatars.githubusercontent.com/u/625707?v=3","gravatar_id":"","url":"https://api.github.com/users/benwoody","html_url":"https://github.com/benwoody","followers_url":"https://api.github.com/users/benwoody/followers","following_url":"https://api.github.com/users/benwoody/following{/other_user}","gists_url":"https://api.github.com/users/benwoody/gists{/gist_id}","starred_url":"https://api.github.com/users/benwoody/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benwoody/subscriptions","organizations_url":"https://api.github.com/users/benwoody/orgs","repos_url":"https://api.github.com/users/benwoody/repos","events_url":"https://api.github.com/users/benwoody/events{/privacy}","received_events_url":"https://api.github.com/users/benwoody/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/benwoody/shrtnr","description":"A URL Shortener for UW Advanced Rails","fork":false,"url":"https://api.github.com/repos/benwoody/shrtnr","forks_url":"https://api.github.com/repos/benwoody/shrtnr/forks","keys_url":"https://api.github.com/repos/benwoody/shrtnr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/benwoody/shrtnr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/benwoody/shrtnr/teams","hooks_url":"https://api.github.com/repos/benwoody/shrtnr/hooks","issue_events_url":"https://api.github.com/repos/benwoody/shrtnr/issues/events{/number}","events_url":"https://api.github.com/repos/benwoody/shrtnr/events","assignees_url":"https://api.github.com/repos/benwoody/shrtnr/assignees{/user}","branches_url":"https://api.github.com/repos/benwoody/shrtnr/branches{/branch}","tags_url":"https://api.github.com/repos/benwoody/shrtnr/tags","blobs_url":"https://api.github.com/repos/benwoody/shrtnr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/benwoody/shrtnr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/benwoody/shrtnr/git/refs{/sha}","trees_url":"https://api.github.com/repos/benwoody/shrtnr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/benwoody/shrtnr/statuses/{sha}","languages_url":"https://api.github.com/repos/benwoody/shrtnr/languages","stargazers_url":"https://api.github.com/repos/benwoody/shrtnr/stargazers","contributors_url":"https://api.github.com/repos/benwoody/shrtnr/contributors","subscribers_url":"https://api.github.com/repos/benwoody/shrtnr/subscribers","subscription_url":"https://api.github.com/repos/benwoody/shrtnr/subscription","commits_url":"https://api.github.com/repos/benwoody/shrtnr/commits{/sha}","git_commits_url":"https://api.github.com/repos/benwoody/shrtnr/git/commits{/sha}","comments_url":"https://api.github.com/repos/benwoody/shrtnr/comments{/number}","issue_comment_url":"https://api.github.com/repos/benwoody/shrtnr/issues/comments{/number}","contents_url":"https://api.github.com/repos/benwoody/shrtnr/contents/{+path}","compare_url":"https://api.github.com/repos/benwoody/shrtnr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/benwoody/shrtnr/merges","archive_url":"https://api.github.com/repos/benwoody/shrtnr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/benwoody/shrtnr/downloads","issues_url":"https://api.github.com/repos/benwoody/shrtnr/issues{/number}","pulls_url":"https://api.github.com/repos/benwoody/shrtnr/pulls{/number}","milestones_url":"https://api.github.com/repos/benwoody/shrtnr/milestones{/number}","notifications_url":"https://api.github.com/repos/benwoody/shrtnr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/benwoody/shrtnr/labels{/name}","releases_url":"https://api.github.com/repos/benwoody/shrtnr/releases{/id}","created_at":"2015-04-01T23:49:06Z","updated_at":"2015-07-16T15:14:22Z","pushed_at":"2015-07-19T14:17:48Z","git_url":"git://github.com/benwoody/shrtnr.git","ssh_url":"git@github.com:benwoody/shrtnr.git","clone_url":"https://github.com/benwoody/shrtnr.git","svn_url":"https://github.com/benwoody/shrtnr","homepage":null,"size":32056,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":2,"forks":16,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/benwoody/shrtnr/pulls/59"},"html":{"href":"https://github.com/benwoody/shrtnr/pull/59"},"issue":{"href":"https://api.github.com/repos/benwoody/shrtnr/issues/59"},"comments":{"href":"https://api.github.com/repos/benwoody/shrtnr/issues/59/comments"},"review_comments":{"href":"https://api.github.com/repos/benwoody/shrtnr/pulls/59/comments"},"review_comment":{"href":"https://api.github.com/repos/benwoody/shrtnr/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/benwoody/shrtnr/pulls/59/commits"},"statuses":{"href":"https://api.github.com/repos/benwoody/shrtnr/statuses/3b39c776f3dfe6da788c2c0cd1f5bde5285402d1"}}}}