rails/rails — pull request #8048 by senny (2012-10-28 10:40:40+00:00)
Title: Do not render views when mail() isn't called. (NullMail refactoring)

I introduced a `NullMail` class. When `mail()` is never called an instance of `NullMail` is returned in place of a regular `Mail`.

This refactoring fixes #7761