aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoachim Filip Ignacy Bartosik <jbartosik@gmail.com>2010-08-13 12:18:21 +0200
committerJoachim Filip Ignacy Bartosik <jbartosik@gmail.com>2010-08-14 13:23:42 +0200
commit297f717a4f7921b2a41f4ad5c6c721dfd47fc0cb (patch)
tree128aa06e80e3c5651358385807d9d2bfbdf5d4ed /app/models/comment.rb
parentGit ignore generated documentation for app. Short description of app. (diff)
downloadrecruiting-webapp-297f717a4f7921b2a41f4ad5c6c721dfd47fc0cb.tar.gz
recruiting-webapp-297f717a4f7921b2a41f4ad5c6c721dfd47fc0cb.tar.bz2
recruiting-webapp-297f717a4f7921b2a41f4ad5c6c721dfd47fc0cb.zip
Document models
Documented models: Answer Comment EmailAnswer Guest MultipleChoiceAnswer Option Question QuestionCategory QuestionContentEmail QuestionContentMultipleChoice QuestionContentText QuestionGroup User UserCategory UserQuestionGroup
Diffstat (limited to 'app/models/comment.rb')
-rw-r--r--app/models/comment.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/comment.rb b/app/models/comment.rb
index a67e7dc..2fcc5f0 100644
--- a/app/models/comment.rb
+++ b/app/models/comment.rb
@@ -1,3 +1,4 @@
+# Model storing comments mentors made for answers.
class Comment < ActiveRecord::Base
hobo_model # Don't put anything above this
@@ -30,6 +31,7 @@ class Comment < ActiveRecord::Base
end
protected
+ # Sends notification about new comment to owner of mentor
def notify_new_comment
UserMailer.deliver_new_comment(answer.owner, self)
end