4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# File 'app/mailers/rrd_mas_notification_mailer.rb', line 4
def build(submission, recipients = Settings.rrd.mas_tracking.recipients)
@id = submission.id
@submitted_claim_id = submission.submitted_claim_id
@created_at = submission.created_at
@created_at = submission.created_at
@disabilities = submission.disabilities
template = File.read('app/mailers/views/rrd_mas_notification_mailer.html.erb')
mail(
to: recipients,
subject: "MA claim - #{submission.diagnostic_codes.join(', ')}",
body: ERB.new(template).result(binding)
)
end
|