From 7028ef3dddd8559c8e5519431d3529c0c99872cc Mon Sep 17 00:00:00 2001 From: Philip Arndt Date: Fri, 1 Jul 2011 09:14:46 +1200 Subject: Making use of modules and putting classes under modules. --- app/mailers/blog/comment_mailer.rb | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'app/mailers/blog') diff --git a/app/mailers/blog/comment_mailer.rb b/app/mailers/blog/comment_mailer.rb index 3e4c76d..3710ea1 100644 --- a/app/mailers/blog/comment_mailer.rb +++ b/app/mailers/blog/comment_mailer.rb @@ -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]}\" " - sent_on Time.now - @comment = comment - end + def notification(comment, request) + subject BlogComment::Notification.subject + recipients BlogComment::Notification.recipients + from "\"#{RefinerySetting[:site_name]}\" " + sent_on Time.now + @comment = comment + end -end + end +end \ No newline at end of file -- cgit v1.2.3