rails/rails — pull request #8450 by senny (2012-12-07 13:48:37+00:00)
Title: the return value of mailer methods should not be relevant

This issue was raised in #8448 and caused by an earlier PR #8048. Previously the return value form the mailer methods was used to determine if `mail()` was called. This led to bugs when `mail()` was not the last call in the mailer method.

I re-introduced the `@mail_was_called` flag to check wether `mail()` was actually called. The return value of the mailer method is ignored.

This needs a backport to `3-2-stable` where the flag `@mail_was_called` is already present.