From fd0521bb993d534aa82ff8c2190b4370d2148f63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?U=C4=A3is=20Ozols?= Date: Mon, 2 Jan 2012 13:52:44 +0200 Subject: Fix deprecation warning. Closes #164. --- app/mailers/refinery/blog/comment_mailer.rb | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'app/mailers/refinery/blog') 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]}\" " - 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]}\" " end end -- cgit v1.2.3