aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/mailers/refinery/blog/comment_mailer.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/app/mailers/refinery/blog/comment_mailer.rb b/app/mailers/refinery/blog/comment_mailer.rb
index dabc9e6..935ccf7 100644
--- a/app/mailers/refinery/blog/comment_mailer.rb
+++ b/app/mailers/refinery/blog/comment_mailer.rb
@@ -3,11 +3,10 @@ module Refinery
class CommentMailer < ActionMailer::Base
def notification(comment, request)
- subject Blog::Comment::Notification.subject
- recipients Blog::Comment::Notification.recipients
- from "\"#{RefinerySetting[:site_name]}\" <no-reply@#{request.domain(RefinerySetting.find_or_set(:tld_length, 1))}>"
- sent_on Time.now
- @blog_comment = comment
+ @blog_comment = comment
+ mail :subject => Blog::Comment::Notification.subject,
+ :recipients => Blog::Comment::Notification.recipients,
+ :from => "\"#{RefinerySetting[:site_name]}\" <no-reply@#{request.domain(RefinerySetting.find_or_set(:tld_length, 1))}>"
end
end