diff options
Diffstat (limited to 'app/mailers')
| -rw-r--r-- | app/mailers/calendar_mailer.rb | 10 | 
1 files changed, 6 insertions, 4 deletions
diff --git a/app/mailers/calendar_mailer.rb b/app/mailers/calendar_mailer.rb index cc8175a07..e2a368c6c 100644 --- a/app/mailers/calendar_mailer.rb +++ b/app/mailers/calendar_mailer.rb @@ -1,11 +1,13 @@  class CalendarMailer < ApplicationMailer -  def updated calendar, user -    @calendar = calendar +  def updated calendar_id, user_id +    @calendar = Calendar.find(calendar_id) +    user      = User.find(user_id)      mail to: user.email, subject: t('mailers.calendar_mailer.updated.subject')    end -  def created calendar, user -    @calendar = calendar +  def created calendar_id, user_id +    @calendar = Calendar.find(calendar_id) +    user      = User.find(user_id)      mail to: user.email, subject: t('mailers.calendar_mailer.created.subject')    end  end  | 
