asciinema.org/app/mailers/user_mailer.rb
2012-11-19 22:12:57 +01:00

15 lines
406 B
Ruby

class UserMailer < ActionMailer::Base
default :from => "ascii.io <hello@ascii.io>"
helper :application
def new_comment_email(user, comment)
@comment = comment
@author = comment.user
@asciicast = AsciicastDecorator.new(@comment.asciicast)
to = "~#{user.nickname} <#{user.email}>"
subject = %(New comment for #{@asciicast.title})
mail :to => to, :subject => subject
end
end