diff options
author | Joachim Filip Ignacy Bartosik <jbartosik@gmail.com> | 2010-07-09 11:23:45 +0200 |
---|---|---|
committer | Joachim Filip Ignacy Bartosik <jbartosik@gmail.com> | 2010-07-12 19:17:19 +0200 |
commit | ffe828d2686442a8546e1740c157beb57c9e420f (patch) | |
tree | f3cb8ed87af69fcc41c9fdb3838de97dba471998 /app | |
parent | Multiple choice questions (diff) | |
download | recruiting-webapp-ffe828d2686442a8546e1740c157beb57c9e420f.tar.gz recruiting-webapp-ffe828d2686442a8546e1740c157beb57c9e420f.tar.bz2 recruiting-webapp-ffe828d2686442a8546e1740c157beb57c9e420f.zip |
Bug fix - answer was trying to send notifications to non-existing mentors
Diffstat (limited to 'app')
-rw-r--r-- | app/models/answer.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/models/answer.rb b/app/models/answer.rb index a6eed13..be3477c 100644 --- a/app/models/answer.rb +++ b/app/models/answer.rb @@ -71,10 +71,11 @@ class Answer < ActiveRecord::Base end protected def notify_new_answer - UserMailer.deliver_new_answer(owner.mentor, self)unless owner.mentor.nil? + UserMailer.deliver_new_answer(owner.mentor, self) unless owner.mentor.nil? end def notify_changed_answer - UserMailer.deliver_changed_answer owner.mentor, self + UserMailer.deliver_changed_answer(owner.mentor, self) unless owner.mentor.nil? end + end |