mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
23aa94a7b2
This behavior is documented in our guides (http://edgeguides.rubyonrails.org/action_mailer_basics.html#action-mailer-callbacks) but was broken in the past. This commit short curcuits the `mail` method if: 1. mail() was previously called 2. no headers are passed 3. no block is passed Closes #13090. /cc @pixeltrix |
||
---|---|---|
.. | ||
action_mailer | ||
rails/generators/mailer | ||
action_mailer.rb |