File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 33[ ![ Circle CI] ( https://circleci.com/gh/bigbinary/mail_interceptor.svg?style=svg )] ( https://circleci.com/gh/bigbinary/mail_interceptor )
44
55This gem intercepts and forwards email to a forwarding address in
6- non-production environment. However it also provides ability to not
6+ a non-production environment. It also allows to not
77intercept certain emails so that testing of emails is easier in
88development/staging environment.
99
@@ -25,7 +25,8 @@ options = { forward_emails_to: 'intercepted_emails@domain.com',
2525 deliver_emails_to: [" @wheel.com" ] }
2626
2727interceptor = MailInterceptor ::Interceptor .new (options)
28- unless Rails .env.test?
28+
29+ unless (Rails .env.test? || Rails .env.production?)
2930 ActionMailer ::Base .register_interceptor(interceptor)
3031end
3132```
@@ -65,7 +66,7 @@ and uppercase and it won't matter.
6566
6667This is a required field.
6768
68- It takes a single email as string .
69+ It can take a single email or an array of emails .
6970
7071``` ruby
7172MailInterceptor ::Interceptor .new ({ forward_emails_to: ' intercepted_emails@bigbinary.com' })
You can’t perform that action at this time.
0 commit comments