af83/chouette-core

View on GitHub
app/mailers/aggregate_mailer.rb

Summary

Maintainability
A
0 mins
Test Coverage
class AggregateMailer < ApplicationMailer
  def finished(aggregate_id, recipient, status = nil)
    @aggregate = Aggregate.find(aggregate_id)
    @status = status || @aggregate.status
    mail to: recipient, subject: mail_subject
  end
end