Class: Rostra::ApplicationMailer

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
app/mailers/rostra/application_mailer.rb

Instance Method Summary collapse

Instance Method Details

#notification(user, added_content, question) ⇒ Object



6
7
8
9
10
11
12
13
14
15
# File 'app/mailers/rostra/application_mailer.rb', line 6

def notification(user, added_content, question)
  @user = user
  @question = question
  @added_content = added_content
  mail(
    :to => user.rostra_user_email,
    :subject => "There's been activity on: #{question.title}",
    :from => Rostra::Config.deliver_emails_from
  )
end