Sha256: 816b3770942afd8835a457e840a93620a55d54266d9eed5cc2b3ac18fef042d2
Contents?: true
Size: 358 Bytes
Versions: 2
Compression:
Stored size: 358 Bytes
Contents
module EmailPrefixer class Interceptor def delivering_email(mail) mail.subject.prepend(subject_prefix) end private def subject_prefix prefixes = [] prefixes << EmailPrefixer.configuration.application_name prefixes << Rails.env.upcase unless Rails.env.production? "[#{prefixes.join(' ')}] " end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
email_prefixer-1.0.1 | lib/email_prefixer/interceptor.rb |
email_prefixer-1.0.0 | lib/email_prefixer/interceptor.rb |