asciinema.org/app/mailers/user_mailer.rb

14 lines
387 B
Ruby
Raw Normal View History

class UserMailer < ActionMailer::Base
2012-04-12 14:56:02 +00:00
default from: "ascii.io <hello@ascii.io>"
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.smart_title})
mail :to => to, :subject => subject
end
end