Sha256: 543e059fbad322c523486b157fdeaca76cd7aab8307d0dbd851240f8daaa2b98

Contents?: true

Size: 321 Bytes

Versions: 12

Compression:

Stored size: 321 Bytes

Contents

class Mailboxer::BaseMailer < ActionMailer::Base
  default :from => Mailboxer.default_from

  private

  def set_subject(container)
    @subject  = container.subject.html_safe? ? container.subject : strip_tags(container.subject)
  end

  def strip_tags(text)
    ::Mailboxer::Cleaner.instance.strip_tags(text)
  end

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
mailboxer-0.15.1 app/mailers/mailboxer/base_mailer.rb
mailboxer-0.15.0 app/mailers/mailboxer/base_mailer.rb
mailboxer-0.14.0 app/mailers/mailboxer/base_mailer.rb
mailboxer-0.13.0 app/mailers/mailboxer/base_mailer.rb
mailboxer-0.12.5 app/mailers/mailboxer/base_mailer.rb
mailboxer-0.12.4 app/mailers/mailboxer/base_mailer.rb
mailboxer-0.12.3 app/mailers/mailboxer/base_mailer.rb
mailboxer-0.12.2 app/mailers/mailboxer/base_mailer.rb
mailboxer-0.12.1 app/mailers/mailboxer/base_mailer.rb
mailboxer-0.12.0 app/mailers/mailboxer/base_mailer.rb
mailboxer-0.12.0.rc2 app/mailers/mailboxer/base_mailer.rb
mailboxer-0.12.0.rc1 app/mailers/mailboxer/base_mailer.rb