Sha256: 4bd347c566b68826b9a1ad0bfbba672dee38d4697393d9e37904a1cf0b912fb2

Contents?: true

Size: 232 Bytes

Versions: 5

Compression:

Stored size: 232 Bytes

Contents

module Mailsafe
  class ChangeSubjectInterceptor
    def self.delivering_email(message)
      if Mailsafe.prefix_email_subject_with_rails_env
        message.subject = "[#{Rails.env}] #{message.subject}"
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mailsafe-0.3.1 lib/mailsafe/change_subject_interceptor.rb
mailsafe-0.3.0 lib/mailsafe/change_subject_interceptor.rb
mailsafe-0.2.1 lib/mailsafe/change_subject_interceptor.rb
mailsafe-0.1.0 lib/mailsafe/change_subject_interceptor.rb
mailsafe-0.0.1 lib/mailsafe/change_subject_interceptor.rb