Skip to content

Commit 5949371

Browse files
Update README.md
1 parent 3e11921 commit 5949371

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![Circle CI](https://circleci.com/gh/bigbinary/mail_interceptor.svg?style=svg)](https://circleci.com/gh/bigbinary/mail_interceptor)
44

55
This 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
77
intercept certain emails so that testing of emails is easier in
88
development/staging environment.
99

@@ -25,7 +25,8 @@ options = { forward_emails_to: 'intercepted_emails@domain.com',
2525
deliver_emails_to: ["@wheel.com"] }
2626

2727
interceptor = MailInterceptor::Interceptor.new(options)
28-
unless Rails.env.test?
28+
29+
unless (Rails.env.test? || Rails.env.production?)
2930
ActionMailer::Base.register_interceptor(interceptor)
3031
end
3132
```
@@ -65,7 +66,7 @@ and uppercase and it won't matter.
6566

6667
This 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
7172
MailInterceptor::Interceptor.new({ forward_emails_to: 'intercepted_emails@bigbinary.com' })

0 commit comments

Comments
 (0)