about summary refs log tree commit diff stats
path: root/app/mailers/comment_mailer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/mailers/comment_mailer.rb')
-rw-r--r--app/mailers/comment_mailer.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/mailers/comment_mailer.rb b/app/mailers/comment_mailer.rb new file mode 100644 index 0000000..363875a --- /dev/null +++ b/app/mailers/comment_mailer.rb
@@ -0,0 +1,7 @@
1class CommentMailer < ApplicationMailer
2 def new_comment_email
3 @comment = params[:comment]
4 @admin = User.first # this is weird
5 mail(to: @admin.email, subject: "[Four Island] Comment on #{@comment.blog.title}")
6 end
7end