Add prefix to staging emails subject
This commit is contained in:
@@ -553,7 +553,7 @@ DEPENDENCIES
|
||||
rails (= 4.2.11)
|
||||
rails-assets-leaflet!
|
||||
rails-assets-markdown-it (~> 8.2.1)!
|
||||
recipient_interceptor
|
||||
recipient_interceptor (~> 0.2.0)
|
||||
redcarpet (~> 3.4.0)
|
||||
responders (~> 2.4.0)
|
||||
rinku (~> 2.0.2)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
recipients = Rails.application.secrets.email_interceptor_recipients
|
||||
|
||||
if recipients.present?
|
||||
interceptor = RecipientInterceptor.new(recipients)
|
||||
interceptor = RecipientInterceptor.new(recipients, subject_prefix: "[#{Rails.env}]")
|
||||
Mail.register_interceptor(interceptor)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user