app/mailers/blog/comment_mailer.rb in refinerycms-blog-1.6.2 vs app/mailers/blog/comment_mailer.rb in refinerycms-blog-1.7.0

- old
+ new

@@ -1,11 +1,13 @@ -class Blog::CommentMailer < ActionMailer::Base +module Blog + class CommentMailer < ActionMailer::Base - def notification(comment, request) - subject BlogComment::Notification.subject - recipients BlogComment::Notification.recipients - from "\"#{RefinerySetting[:site_name]}\" <no-reply@#{request.domain(RefinerySetting.find_or_set(:tld_length, 1))}>" - sent_on Time.now - @comment = comment - end + def notification(comment, request) + subject BlogComment::Notification.subject + recipients BlogComment::Notification.recipients + from "\"#{RefinerySetting[:site_name]}\" <no-reply@#{request.domain(RefinerySetting.find_or_set(:tld_length, 1))}>" + sent_on Time.now + @comment = comment + end -end + end +end \ No newline at end of file