1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionmailer/lib
Yves Senn 23aa94a7b2 mail() without arguments is a getter for the current mail.
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
2013-12-02 16:56:31 +01:00
..
action_mailer mail() without arguments is a getter for the current mail. 2013-12-02 16:56:31 +01:00
rails/generators/mailer Revert "Document Rails::Generators::MailerGenerator" 2013-05-19 21:05:35 +05:30
action_mailer.rb Remove hard require to ActionView from ActionMailer 2013-08-25 11:39:12 +02:00