{"action":"created","comment":{"url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/pulls/comments/76521859","id":76521859,"diff_hunk":"@@ -7,20 +7,27 @@ class JobSeekerMailer < ApplicationMailer\n   #\n \n   def job_developer_assigned(job_seeker, job_developer)\n-    send_job_seeker_mail(job_seeker, job_developer, :JD)\n+    send_job_seeker_mail(job_seeker: job_seeker, \n+                         agency_person: job_developer, person_type: :JD, \n+                         template: 'agency_person_assigned')\n   end\n \n   def case_manager_assigned(job_seeker, case_manager)\n-    send_job_seeker_mail(job_seeker, case_manager, :CM)\n+    send_job_seeker_mail(job_seeker: job_seeker, \n+                         agency_person: case_manager, person_type: :CM,\n+                         template: 'agency_person_assigned')\n+  end\n+\n+  def job_applied_by_job_developer(job_seeker, job_developer, job)\n+    send_job_seeker_mail(job_seeker: job_seeker, job_developer: job_developer, job: job)\n   end\n \n   private\n \n-  def send_job_seeker_mail(job_seeker, agency_person, person_type)\n-    @job_seeker    = job_seeker\n-    @agency_person = agency_person\n-    @person_type   = person_type\n-    @agency        = agency_person.agency\n-    mail to: job_seeker.email, template_name: 'agency_person_assigned'\n+  def send_job_seeker_mail(options = {})","path":"app/mailers/job_seeker_mailer.rb","position":29,"original_position":29,"commit_id":"a9afb813429c547bbfc213d454fd77a486de1a34","original_commit_id":"a9afb813429c547bbfc213d454fd77a486de1a34","user":{"login":"patmbolger","id":9968213,"avatar_url":"https://avatars.githubusercontent.com/u/9968213?v=3","gravatar_id":"","url":"https://api.github.com/users/patmbolger","html_url":"https://github.com/patmbolger","followers_url":"https://api.github.com/users/patmbolger/followers","following_url":"https://api.github.com/users/patmbolger/following{/other_user}","gists_url":"https://api.github.com/users/patmbolger/gists{/gist_id}","starred_url":"https://api.github.com/users/patmbolger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patmbolger/subscriptions","organizations_url":"https://api.github.com/users/patmbolger/orgs","repos_url":"https://api.github.com/users/patmbolger/repos","events_url":"https://api.github.com/users/patmbolger/events{/privacy}","received_events_url":"https://api.github.com/users/patmbolger/received_events","type":"User","site_admin":false},"body":"I like the change to use an options hash!","created_at":"2016-08-27T20:17:52Z","updated_at":"2016-08-27T20:17:52Z","html_url":"https://github.com/AgileVentures/MetPlus_PETS/pull/360#discussion_r76521859","pull_request_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/pulls/360","_links":{"self":{"href":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/pulls/comments/76521859"},"html":{"href":"https://github.com/AgileVentures/MetPlus_PETS/pull/360#discussion_r76521859"},"pull_request":{"href":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/pulls/360"}}},"pull_request":{"url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/pulls/360","id":82977170,"html_url":"https://github.com/AgileVentures/MetPlus_PETS/pull/360","diff_url":"https://github.com/AgileVentures/MetPlus_PETS/pull/360.diff","patch_url":"https://github.com/AgileVentures/MetPlus_PETS/pull/360.patch","issue_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/issues/360","number":360,"state":"open","locked":false,"title":"Closes AgileVentures/MetPlus_tracker#40","user":{"login":"jeanwei","id":16623014,"avatar_url":"https://avatars.githubusercontent.com/u/16623014?v=3","gravatar_id":"","url":"https://api.github.com/users/jeanwei","html_url":"https://github.com/jeanwei","followers_url":"https://api.github.com/users/jeanwei/followers","following_url":"https://api.github.com/users/jeanwei/following{/other_user}","gists_url":"https://api.github.com/users/jeanwei/gists{/gist_id}","starred_url":"https://api.github.com/users/jeanwei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeanwei/subscriptions","organizations_url":"https://api.github.com/users/jeanwei/orgs","repos_url":"https://api.github.com/users/jeanwei/repos","events_url":"https://api.github.com/users/jeanwei/events{/privacy}","received_events_url":"https://api.github.com/users/jeanwei/received_events","type":"User","site_admin":false},"body":"Feature: Job Developer submit job application for his job seeker\r\n- Link to application form is created at views/jobs/show\r\n- Dropdown select with his list of job seekers is created in view/job_applications/_jd_apply_job_modal\r\n- Preview for the application is created in view/job_applications/_preview_modal\r\n- Controllers, routes and spec files are updated accordingly\r\n\r\nChanges indirectly related to feature developed:\r\n- job_seeker_email_job.rb, app/mailers/job_seeker_mailer.rb are updated for more general use. Please review if there will be any problem?\r\n- job.rb are updated so that #apply method return the job_application because notice that always need to call for the job application after job is applied. \r\n","created_at":"2016-08-27T04:15:47Z","updated_at":"2016-08-27T20:17:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1414f51db2285d4bda638bffcc7cc37da7440acf","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/pulls/360/commits","review_comments_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/pulls/360/comments","review_comment_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/issues/360/comments","statuses_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/statuses/a9afb813429c547bbfc213d454fd77a486de1a34","head":{"label":"jeanwei:jd-submit-js-application-#40","ref":"jd-submit-js-application-#40","sha":"a9afb813429c547bbfc213d454fd77a486de1a34","user":{"login":"jeanwei","id":16623014,"avatar_url":"https://avatars.githubusercontent.com/u/16623014?v=3","gravatar_id":"","url":"https://api.github.com/users/jeanwei","html_url":"https://github.com/jeanwei","followers_url":"https://api.github.com/users/jeanwei/followers","following_url":"https://api.github.com/users/jeanwei/following{/other_user}","gists_url":"https://api.github.com/users/jeanwei/gists{/gist_id}","starred_url":"https://api.github.com/users/jeanwei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeanwei/subscriptions","organizations_url":"https://api.github.com/users/jeanwei/orgs","repos_url":"https://api.github.com/users/jeanwei/repos","events_url":"https://api.github.com/users/jeanwei/events{/privacy}","received_events_url":"https://api.github.com/users/jeanwei/received_events","type":"User","site_admin":false},"repo":{"id":63299745,"name":"MetPlus_PETS","full_name":"jeanwei/MetPlus_PETS","owner":{"login":"jeanwei","id":16623014,"avatar_url":"https://avatars.githubusercontent.com/u/16623014?v=3","gravatar_id":"","url":"https://api.github.com/users/jeanwei","html_url":"https://github.com/jeanwei","followers_url":"https://api.github.com/users/jeanwei/followers","following_url":"https://api.github.com/users/jeanwei/following{/other_user}","gists_url":"https://api.github.com/users/jeanwei/gists{/gist_id}","starred_url":"https://api.github.com/users/jeanwei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeanwei/subscriptions","organizations_url":"https://api.github.com/users/jeanwei/orgs","repos_url":"https://api.github.com/users/jeanwei/repos","events_url":"https://api.github.com/users/jeanwei/events{/privacy}","received_events_url":"https://api.github.com/users/jeanwei/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jeanwei/MetPlus_PETS","description":"Front End for the MetPlus project","fork":true,"url":"https://api.github.com/repos/jeanwei/MetPlus_PETS","forks_url":"https://api.github.com/repos/jeanwei/MetPlus_PETS/forks","keys_url":"https://api.github.com/repos/jeanwei/MetPlus_PETS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jeanwei/MetPlus_PETS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jeanwei/MetPlus_PETS/teams","hooks_url":"https://api.github.com/repos/jeanwei/MetPlus_PETS/hooks","issue_events_url":"https://api.github.com/repos/jeanwei/MetPlus_PETS/issues/events{/number}","events_url":"https://api.github.com/repos/jeanwei/MetPlus_PETS/events","assignees_url":"https://api.github.com/repos/jeanwei/MetPlus_PETS/assignees{/user}","branches_url":"https://api.github.com/repos/jeanwei/MetPlus_PETS/branches{/branch}","tags_url":"https://api.github.com/repos/jeanwei/MetPlus_PETS/tags","blobs_url":"https://api.github.com/repos/jeanwei/MetPlus_PETS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jeanwei/MetPlus_PETS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jeanwei/MetPlus_PETS/git/refs{/sha}","trees_url":"https://api.github.com/repos/jeanwei/MetPlus_PETS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jeanwei/MetPlus_PETS/statuses/{sha}","languages_url":"https://api.github.com/repos/jeanwei/MetPlus_PETS/languages","stargazers_url":"https://api.github.com/repos/jeanwei/MetPlus_PETS/stargazers","contributors_url":"https://api.github.com/repos/jeanwei/MetPlus_PETS/contributors","subscribers_url":"https://api.github.com/repos/jeanwei/MetPlus_PETS/subscribers","subscription_url":"https://api.github.com/repos/jeanwei/MetPlus_PETS/subscription","commits_url":"https://api.github.com/repos/jeanwei/MetPlus_PETS/commits{/sha}","git_commits_url":"https://api.github.com/repos/jeanwei/MetPlus_PETS/git/commits{/sha}","comments_url":"https://api.github.com/repos/jeanwei/MetPlus_PETS/comments{/number}","issue_comment_url":"https://api.github.com/repos/jeanwei/MetPlus_PETS/issues/comments{/number}","contents_url":"https://api.github.com/repos/jeanwei/MetPlus_PETS/contents/{+path}","compare_url":"https://api.github.com/repos/jeanwei/MetPlus_PETS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jeanwei/MetPlus_PETS/merges","archive_url":"https://api.github.com/repos/jeanwei/MetPlus_PETS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jeanwei/MetPlus_PETS/downloads","issues_url":"https://api.github.com/repos/jeanwei/MetPlus_PETS/issues{/number}","pulls_url":"https://api.github.com/repos/jeanwei/MetPlus_PETS/pulls{/number}","milestones_url":"https://api.github.com/repos/jeanwei/MetPlus_PETS/milestones{/number}","notifications_url":"https://api.github.com/repos/jeanwei/MetPlus_PETS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jeanwei/MetPlus_PETS/labels{/name}","releases_url":"https://api.github.com/repos/jeanwei/MetPlus_PETS/releases{/id}","deployments_url":"https://api.github.com/repos/jeanwei/MetPlus_PETS/deployments","created_at":"2016-07-14T03:40:51Z","updated_at":"2016-07-14T03:40:52Z","pushed_at":"2016-08-27T03:50:32Z","git_url":"git://github.com/jeanwei/MetPlus_PETS.git","ssh_url":"git@github.com:jeanwei/MetPlus_PETS.git","clone_url":"https://github.com/jeanwei/MetPlus_PETS.git","svn_url":"https://github.com/jeanwei/MetPlus_PETS","homepage":null,"size":1939,"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":"development"}},"base":{"label":"AgileVentures:development","ref":"development","sha":"2eca1b5aba7752a9a5a53ab5a3e4b696c4bf59f0","user":{"login":"AgileVentures","id":5116968,"avatar_url":"https://avatars.githubusercontent.com/u/5116968?v=3","gravatar_id":"","url":"https://api.github.com/users/AgileVentures","html_url":"https://github.com/AgileVentures","followers_url":"https://api.github.com/users/AgileVentures/followers","following_url":"https://api.github.com/users/AgileVentures/following{/other_user}","gists_url":"https://api.github.com/users/AgileVentures/gists{/gist_id}","starred_url":"https://api.github.com/users/AgileVentures/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AgileVentures/subscriptions","organizations_url":"https://api.github.com/users/AgileVentures/orgs","repos_url":"https://api.github.com/users/AgileVentures/repos","events_url":"https://api.github.com/users/AgileVentures/events{/privacy}","received_events_url":"https://api.github.com/users/AgileVentures/received_events","type":"Organization","site_admin":false},"repo":{"id":41921394,"name":"MetPlus_PETS","full_name":"AgileVentures/MetPlus_PETS","owner":{"login":"AgileVentures","id":5116968,"avatar_url":"https://avatars.githubusercontent.com/u/5116968?v=3","gravatar_id":"","url":"https://api.github.com/users/AgileVentures","html_url":"https://github.com/AgileVentures","followers_url":"https://api.github.com/users/AgileVentures/followers","following_url":"https://api.github.com/users/AgileVentures/following{/other_user}","gists_url":"https://api.github.com/users/AgileVentures/gists{/gist_id}","starred_url":"https://api.github.com/users/AgileVentures/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AgileVentures/subscriptions","organizations_url":"https://api.github.com/users/AgileVentures/orgs","repos_url":"https://api.github.com/users/AgileVentures/repos","events_url":"https://api.github.com/users/AgileVentures/events{/privacy}","received_events_url":"https://api.github.com/users/AgileVentures/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AgileVentures/MetPlus_PETS","description":"Front End for the MetPlus project","fork":false,"url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS","forks_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/forks","keys_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/teams","hooks_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/hooks","issue_events_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/issues/events{/number}","events_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/events","assignees_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/assignees{/user}","branches_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/branches{/branch}","tags_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/tags","blobs_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/git/refs{/sha}","trees_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/statuses/{sha}","languages_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/languages","stargazers_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/stargazers","contributors_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/contributors","subscribers_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/subscribers","subscription_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/subscription","commits_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/commits{/sha}","git_commits_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/git/commits{/sha}","comments_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/comments{/number}","issue_comment_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/issues/comments{/number}","contents_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/contents/{+path}","compare_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/merges","archive_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/downloads","issues_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/issues{/number}","pulls_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/pulls{/number}","milestones_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/milestones{/number}","notifications_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/labels{/name}","releases_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/releases{/id}","deployments_url":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/deployments","created_at":"2015-09-04T14:51:35Z","updated_at":"2016-06-02T16:00:36Z","pushed_at":"2016-08-27T04:15:47Z","git_url":"git://github.com/AgileVentures/MetPlus_PETS.git","ssh_url":"git@github.com:AgileVentures/MetPlus_PETS.git","clone_url":"https://github.com/AgileVentures/MetPlus_PETS.git","svn_url":"https://github.com/AgileVentures/MetPlus_PETS","homepage":null,"size":2319,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":26,"mirror_url":null,"open_issues_count":4,"forks":26,"open_issues":4,"watchers":3,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/pulls/360"},"html":{"href":"https://github.com/AgileVentures/MetPlus_PETS/pull/360"},"issue":{"href":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/issues/360"},"comments":{"href":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/issues/360/comments"},"review_comments":{"href":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/pulls/360/comments"},"review_comment":{"href":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/pulls/360/commits"},"statuses":{"href":"https://api.github.com/repos/AgileVentures/MetPlus_PETS/statuses/a9afb813429c547bbfc213d454fd77a486de1a34"}}}}
{"actor":{"display_login":"patmbolger"}}