Class: PageCommentMailer

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
app/mailers/page_comment_mailer.rb

Instance Method Summary collapse

Instance Method Details

#comment_update(curriculum_comment, status) ⇒ Object


5
6
7
8
9
10
11
12
# File 'app/mailers/page_comment_mailer.rb', line 5

def comment_update(curriculum_comment, status)
  @page_comment = curriculum_comment
  @status = status

  mail(:to => curriculum_comment.notify_instructors(),
       :subject => "Scotty Dog says: comment #{status} for your course",
       :date => Time.now)
end