aboutsummaryrefslogtreecommitdiffstats
path: root/app/mailers
diff options
context:
space:
mode:
authorPhilip Arndt <parndt@gmail.com>2011-07-01 09:14:46 +1200
committerPhilip Arndt <parndt@gmail.com>2011-07-01 09:14:46 +1200
commit7028ef3dddd8559c8e5519431d3529c0c99872cc (patch)
tree6b8aa08e5f8713b85fc1bbf4a2460c001e516822 /app/mailers
parent47a71b309f4fb364449167ddc6ed978b6969e047 (diff)
downloadrefinerycms-blog-7028ef3dddd8559c8e5519431d3529c0c99872cc.tar.gz
refinerycms-blog-7028ef3dddd8559c8e5519431d3529c0c99872cc.tar.bz2
refinerycms-blog-7028ef3dddd8559c8e5519431d3529c0c99872cc.zip
Making use of modules and putting classes under modules.
Diffstat (limited to 'app/mailers')
-rw-r--r--app/mailers/blog/comment_mailer.rb20
1 files changed, 11 insertions, 9 deletions
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]}\" <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