aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/action_mailer_basics.md
diff options
context:
space:
mode:
authorJosh Cheek <josh.cheek@gmail.com>2014-12-29 12:59:02 -0700
committerJosh Cheek <josh.cheek@gmail.com>2014-12-29 12:59:05 -0700
commit2d1f4033abaee7d33aac5ccae3afd0f88b71f05c (patch)
tree9cbc36c37edbd35cbaead9c452d82a018c092379 /guides/source/action_mailer_basics.md
parentd233220f2921472c85142137d63f42d2d728adaa (diff)
downloadrails-2d1f4033abaee7d33aac5ccae3afd0f88b71f05c.tar.gz
rails-2d1f4033abaee7d33aac5ccae3afd0f88b71f05c.tar.bz2
rails-2d1f4033abaee7d33aac5ccae3afd0f88b71f05c.zip
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.
Diffstat (limited to 'guides/source/action_mailer_basics.md')
-rw-r--r--guides/source/action_mailer_basics.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/guides/source/action_mailer_basics.md b/guides/source/action_mailer_basics.md
index c9e35dd985..c586675ee5 100644
--- a/guides/source/action_mailer_basics.md
+++ b/guides/source/action_mailer_basics.md
@@ -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