You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
376 B
Ruby
14 lines
376 B
Ruby
13 years ago
|
class UserMailer < ActionMailer::Base
|
||
|
default from: "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
|