Skip to content

Conversation

@milgner
Copy link
Contributor

@milgner milgner commented Dec 8, 2015

Implicit rendering in multipart blocks now also uses the template name from the options hash instead of always using the action name.

So you can now write

mail(template_name: template_name) do |format|
  format.text
  format.html
end

Implicit rendering in multipart blocks now also uses the template
name from the options hash instead of always using the action name.

So you can now write

    mail(template_name: template_name) do |format|
      format.text
      format.html
    end
@rails-bot
Copy link

Thanks for the pull request, and welcome! The Rails team is excited to review your changes, and you should hear from @matthewd (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@rafaelfranca
Copy link
Member

Related with #22045. Same as #18412

@dijonkitchen
Copy link
Contributor

dijonkitchen commented Jan 21, 2017

Can this be closed since #18412 is closed for not being compelling enough?

@vipulnsward
Copy link
Member

cc @sgrif

@rusikf
Copy link

rusikf commented Nov 17, 2018

Looks, a good idea, why this pr is not merged?

@rafaelfranca rafaelfranca merged commit 5c54db2 into rails:master Nov 20, 2018
rafaelfranca added a commit that referenced this pull request Nov 20, 2018
ActionMailer: support overriding template name in multipart
suketa added a commit to suketa/rails_sandbox that referenced this pull request Jul 20, 2019
ActionMailer: support overriding template name in multipart
rails/rails#22534
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants