about summary refs log tree commit diff stats
path: root/app/mailers
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-10-14 10:15:24 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2023-10-14 10:15:24 -0400
commit0aace2986a9a7a6d4c84a9ba6819d3df7821e267 (patch)
tree450acd91cbd522d47577233ca28725ede6697bb2 /app/mailers
parent07ac5db98c8884e0de81fc6c0ab873854a852ca5 (diff)
downloadthoughts-0aace2986a9a7a6d4c84a9ba6819d3df7821e267.tar.gz
thoughts-0aace2986a9a7a6d4c84a9ba6819d3df7821e267.tar.bz2
thoughts-0aace2986a9a7a6d4c84a9ba6819d3df7821e267.zip
Blogs have an author now
Diffstat (limited to 'app/mailers')
-rw-r--r--app/mailers/comment_mailer.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/app/mailers/comment_mailer.rb b/app/mailers/comment_mailer.rb index e72b17d..aeed1b0 100644 --- a/app/mailers/comment_mailer.rb +++ b/app/mailers/comment_mailer.rb
@@ -1,13 +1,11 @@
1class CommentMailer < ApplicationMailer 1class CommentMailer < ApplicationMailer
2 def new_comment_email 2 def new_comment_email
3 @comment = params[:comment] 3 @comment = params[:comment]
4 @admin = User.first # this is weird 4 mail(to: @comment.blog.user.email, subject: "[Four Island] Comment on #{@comment.blog.title}")
5 mail(to: @admin.email, subject: "[Four Island] Comment on #{@comment.blog.title}")
6 end 5 end
7 6
8 def new_pending_comment_email 7 def new_pending_comment_email
9 @comment = params[:comment] 8 @comment = params[:comment]
10 @admin = User.first # this is weird 9 mail(to: @comment.blog.user.email, subject: "[Four Island] Pending comment on #{@comment.blog.title}")
11 mail(to: @admin.email, subject: "[Four Island] Pending comment on #{@comment.blog.title}")
12 end 10 end
13end 11end