diff options
author | Josh Cheek <josh.cheek@gmail.com> | 2014-12-29 12:59:02 -0700 |
---|---|---|
committer | Josh Cheek <josh.cheek@gmail.com> | 2014-12-29 12:59:05 -0700 |
commit | 2d1f4033abaee7d33aac5ccae3afd0f88b71f05c (patch) | |
tree | 9cbc36c37edbd35cbaead9c452d82a018c092379 /guides | |
parent | d233220f2921472c85142137d63f42d2d728adaa (diff) | |
download | rails-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')
-rw-r--r-- | guides/source/action_mailer_basics.md | 4 |
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 |