aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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