Bugfix send accept / reject event mail
This commit is contained in:
parent
05392701a9
commit
0db2f3bb06
2 changed files with 19 additions and 18 deletions
|
|
@ -132,14 +132,15 @@ class Event < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def process_acceptance(options)
|
||||
if options[:send_mail] == "true"
|
||||
Rails.logger.debug "Sending acceptance mail"
|
||||
Mailbot.acceptance_mail(self).deliver
|
||||
if self.conference.email_settings.send_on_accepted && options[:send_mail].blank?
|
||||
Rails.logger.debug 'Sending event acceptance mail'
|
||||
Mailbot.acceptance_mail(self).deliver
|
||||
end
|
||||
end
|
||||
|
||||
def process_rejection(options)
|
||||
if options[:send_mail] == "true"
|
||||
if self.conference.email_settings.send_on_rejected && options[:send_mail].blank?
|
||||
Rails.logger.debug 'Sending rejected mail'
|
||||
Mailbot.rejection_mail(self).deliver
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue