Unify NotificationMailer methods’ signatures
This commit is contained in:
parent
7ea37abefa
commit
a57e2388f6
4 changed files with 4 additions and 5 deletions
|
@ -1,8 +1,7 @@
|
|||
class NotificationMailer < ApplicationMailer
|
||||
default to: Proc.new { @user.email }
|
||||
|
||||
def send_dossier_received(dossier_id)
|
||||
dossier = Dossier.find(dossier_id)
|
||||
def send_dossier_received(dossier)
|
||||
send_notification(dossier, dossier.procedure.received_mail_template)
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue