Fixing accept/reject email problem
This commit is contained in:
parent
3891d728e8
commit
d7531d6d62
1 changed files with 3 additions and 2 deletions
|
|
@ -99,13 +99,14 @@ class Event < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def process_acceptance(options)
|
def process_acceptance(options)
|
||||||
if options[:send_mail]
|
if options[:send_mail] == "true"
|
||||||
|
Rails.logger.debug "Sending acceptance mail"
|
||||||
Mailbot.acceptance_mail(self).deliver
|
Mailbot.acceptance_mail(self).deliver
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def process_rejection(options)
|
def process_rejection(options)
|
||||||
if options[:send_mail]
|
if options[:send_mail] == "true"
|
||||||
Mailbot.rejection_mail(self).deliver
|
Mailbot.rejection_mail(self).deliver
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue