From 279d0ae8164fa5e49163765b0756a10c442eb1ac Mon Sep 17 00:00:00 2001 From: James Kerr Date: Wed, 22 Jul 2015 09:15:52 -0700 Subject: Update the URL when changing mailer preview formats Added javascript to update the URL on mailer previews with the currently selected email format. Reloading the page now keeps you on your selected format rather than going back to the default html version. --- .../lib/rails/templates/rails/mailers/email.html.erb | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'railties/lib') diff --git a/railties/lib/rails/templates/rails/mailers/email.html.erb b/railties/lib/rails/templates/rails/mailers/email.html.erb index 3adc51b568..fed96fbc85 100644 --- a/railties/lib/rails/templates/rails/mailers/email.html.erb +++ b/railties/lib/rails/templates/rails/mailers/email.html.erb @@ -94,7 +94,7 @@ <% if @email.multipart? %>
- @@ -112,5 +112,19 @@

<% end %> + + -- cgit v1.2.3