1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Un-inline if statement

The single line was long enough that it rendered on two lines,
causing the example to look like syntactically invalid code.
This commit is contained in:
Josh Cheek 2014-12-29 12:59:02 -07:00
parent d233220f29
commit 2d1f4033ab

View file

@ -733,7 +733,9 @@ Mailer framework. You can do this in an initializer file
`config/initializers/sandbox_email_interceptor.rb`
```ruby
ActionMailer::Base.register_interceptor(SandboxEmailInterceptor) if Rails.env.staging?
if Rails.env.staging?
ActionMailer::Base.register_interceptor(SandboxEmailInterceptor)
end
```
NOTE: The example above uses a custom environment called "staging" for a