Skip to content

Commit

Permalink
Un-inline if statement
Browse files Browse the repository at this point in the history
The single line was long enough that it rendered on two lines,
causing the example to look like syntactically invalid code.
  • Loading branch information
JoshCheek committed Dec 29, 2014
1 parent d233220 commit 2d1f403
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion guides/source/action_mailer_basics.md
Expand Up @@ -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
Expand Down

0 comments on commit 2d1f403

Please sign in to comment.