Sha256: 0660327ab15ca6514be9a0fccfe172009381655864b8afd7e480840b2961f952

Contents?: true

Size: 422 Bytes

Versions: 13

Compression:

Stored size: 422 Bytes

Contents

# frozen_string_literal: true
module ThinkFeelDoEngine
  # Mailer for SiteMessage delivery.
  class SiteMessageMailer < ActionMailer::Base
    def general(message)
      markdown = Redcarpet::Markdown.new(
        Redcarpet::Render::HTML,
        space_after_headers: true
      )
      @body = markdown.render(message.body)

      mail to: message.participant.email,
           subject: message.subject
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
think_feel_do_engine-3.22.9 app/mailers/think_feel_do_engine/site_message_mailer.rb
think_feel_do_engine-3.22.8 app/mailers/think_feel_do_engine/site_message_mailer.rb
think_feel_do_engine-3.22.7 app/mailers/think_feel_do_engine/site_message_mailer.rb
think_feel_do_engine-3.22.6 app/mailers/think_feel_do_engine/site_message_mailer.rb
think_feel_do_engine-3.22.5 app/mailers/think_feel_do_engine/site_message_mailer.rb
think_feel_do_engine-3.22.4 app/mailers/think_feel_do_engine/site_message_mailer.rb
think_feel_do_engine-3.22.2 app/mailers/think_feel_do_engine/site_message_mailer.rb
think_feel_do_engine-3.22.1 app/mailers/think_feel_do_engine/site_message_mailer.rb
think_feel_do_engine-3.22.0 app/mailers/think_feel_do_engine/site_message_mailer.rb
think_feel_do_engine-3.21.2 app/mailers/think_feel_do_engine/site_message_mailer.rb
think_feel_do_engine-3.21.1 app/mailers/think_feel_do_engine/site_message_mailer.rb
think_feel_do_engine-3.21.0 app/mailers/think_feel_do_engine/site_message_mailer.rb
think_feel_do_engine-3.20.1 app/mailers/think_feel_do_engine/site_message_mailer.rb