diff options
author | Uģis Ozols <ugis.ozolss@gmail.com> | 2012-01-02 13:52:44 +0200 |
---|---|---|
committer | Uģis Ozols <ugis.ozolss@gmail.com> | 2012-01-02 13:52:44 +0200 |
commit | fd0521bb993d534aa82ff8c2190b4370d2148f63 (patch) | |
tree | 6bfe9a09829882e05d8c7c913a38250bbf6b4e6b /app | |
parent | 26243ddade61e5bbad8f07e14b0475000da58b51 (diff) | |
download | refinerycms-blog-fd0521bb993d534aa82ff8c2190b4370d2148f63.tar.gz refinerycms-blog-fd0521bb993d534aa82ff8c2190b4370d2148f63.tar.bz2 refinerycms-blog-fd0521bb993d534aa82ff8c2190b4370d2148f63.zip |
Fix deprecation warning. Closes #164.
Diffstat (limited to 'app')
-rw-r--r-- | app/mailers/refinery/blog/comment_mailer.rb | 9 |
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 |