Class: Commontator::SubscriptionsMailer

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
app/mailers/commontator/subscriptions_mailer.rb

Instance Method Summary collapse

Instance Method Details

#comment_created(comment, recipients) ⇒ Object



3
4
5
6
7
8
9
10
11
12
13
# File 'app/mailers/commontator/subscriptions_mailer.rb', line 3

def comment_created(comment, recipients)
  setup_variables(comment, recipients)

  mail :to => @to,
       :bcc => @bcc,
       :from => @from,
       :subject => t('commontator.email.comment_created.subject',
                     :creator_name => @creator_name,
                     :commontable_name => @commontable_name,
                     :commontable_url => @commontable_url)
end