1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionmailer/test/mailers
John Hawthorn 4e6c8045c3 Add test and change how format set in ActionMailer
Previously this used self.formats= to set the format which render would
use to find templates. This worked, but was untested, and looked a
little confusing because it was doing the mutation within a loop.

This commit replaces the assignment with passing formats: [format] into
the render call, which makes it more obvious that that's the purpose of
the format. It also adds a test to verify the formats being used.
2019-03-01 14:07:59 -08:00
..
asset_mailer.rb Use frozen string literal in actionmailer/ 2017-07-23 18:17:19 +03:00
base_mailer.rb Add test and change how format set in ActionMailer 2019-03-01 14:07:59 -08:00
caching_mailer.rb Use frozen string literal in actionmailer/ 2017-07-23 18:17:19 +03:00
delayed_mailer.rb Use frozen string literal in actionmailer/ 2017-07-23 18:17:19 +03:00
params_mailer.rb Use frozen string literal in actionmailer/ 2017-07-23 18:17:19 +03:00
proc_mailer.rb Fix AM::Base.default proc arity breaking change 2017-08-29 09:42:28 -04:00