mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
4e6c8045c3
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. |
||
---|---|---|
.. | ||
anonymous | ||
another.path/base_mailer | ||
asset_host_mailer | ||
asset_mailer | ||
attachments | ||
auto_layout_mailer | ||
base_mailer | ||
base_test | ||
caching_mailer | ||
explicit_layout_mailer | ||
i18n_test_mailer | ||
layouts | ||
mail_delivery_test/delivery_mailer | ||
nested_layout_mailer | ||
proc_mailer | ||
templates | ||
test_helper_mailer | ||
url_test_mailer | ||
raw_email |