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:
parent
d233220f29
commit
2d1f4033ab
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue