Sha256: 7e6fc2442f8fa415e0cab8d9712dc394a5fcaacb12d932a197c79e5088b79d23

Contents?: true

Size: 464 Bytes

Versions: 11

Compression:

Stored size: 464 Bytes

Contents

module Rostra
  class ApplicationMailer < ActionMailer::Base
    helper 'rostra/application'
    layout Rostra::Config.email_layout

    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

  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rostra-0.3.6 app/mailers/rostra/application_mailer.rb
rostra-0.3.5 app/mailers/rostra/application_mailer.rb
rostra-0.3.4 app/mailers/rostra/application_mailer.rb
rostra-0.3.3 app/mailers/rostra/application_mailer.rb
rostra-0.3.2 app/mailers/rostra/application_mailer.rb
rostra-0.3.1 app/mailers/rostra/application_mailer.rb
rostra-0.2.1 app/mailers/rostra/application_mailer.rb
rostra-0.2.0 app/mailers/rostra/application_mailer.rb
rostra-0.1.26 app/mailers/rostra/application_mailer.rb
rostra-0.1.25 app/mailers/rostra/application_mailer.rb
rostra-0.1.24 app/mailers/rostra/application_mailer.rb