diff options
author | Andrew White <andyw@pixeltrix.co.uk> | 2015-05-04 10:39:00 +0100 |
---|---|---|
committer | Andrew White <andyw@pixeltrix.co.uk> | 2015-05-04 10:54:51 +0100 |
commit | 9f39d3126fe85c94198371fd1cccd408c268529c (patch) | |
tree | c90eaced0cec9f76a469c1f16c2642c39607cb2c | |
parent | 350d272d6cd6fbbb127133773c79c3c17e4216f0 (diff) | |
download | rails-9f39d3126fe85c94198371fd1cccd408c268529c.tar.gz rails-9f39d3126fe85c94198371fd1cccd408c268529c.tar.bz2 rails-9f39d3126fe85c94198371fd1cccd408c268529c.zip |
Improve display of attachment names in mailer previews
Display attachment filenames as a comma separated list rather than
showing the inspect output for the array.
-rw-r--r-- | railties/lib/rails/templates/rails/mailers/email.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/templates/rails/mailers/email.html.erb b/railties/lib/rails/templates/rails/mailers/email.html.erb index a5f105de8d..bb6e49966d 100644 --- a/railties/lib/rails/templates/rails/mailers/email.html.erb +++ b/railties/lib/rails/templates/rails/mailers/email.html.erb @@ -88,7 +88,7 @@ <% unless @email.attachments.nil? || @email.attachments.empty? %> <dt>Attachments:</dt> <dd> - <%= @email.attachments.map { |a| a.respond_to?(:original_filename) ? a.original_filename : a.filename }.inspect %> + <%= @email.attachments.map { |a| a.respond_to?(:original_filename) ? a.original_filename : a.filename }.join(', ') %> </dd> <% end %> |