aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorJohn Hawthorn <john@hawthorn.email>2019-03-18 16:06:22 -0700
committerJohn Hawthorn <john@hawthorn.email>2019-03-18 16:06:31 -0700
commit663548845b265d97118999eea83bf05a7d41161f (patch)
tree40c536531fdbbfcfbac46a40023182deb977a756 /railties
parent0eb9e1e51a9df554e1cf7a42ec339ca6f0120a04 (diff)
downloadrails-663548845b265d97118999eea83bf05a7d41161f.tar.gz
rails-663548845b265d97118999eea83bf05a7d41161f.tar.bz2
rails-663548845b265d97118999eea83bf05a7d41161f.zip
Use symbol for mail preview format, not string
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/rails/mailers_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/mailers_controller.rb b/railties/lib/rails/mailers_controller.rb
index 95dae3ec2d..5cffa52860 100644
--- a/railties/lib/rails/mailers_controller.rb
+++ b/railties/lib/rails/mailers_controller.rb
@@ -38,7 +38,7 @@ class Rails::MailersController < Rails::ApplicationController # :nodoc:
end
else
@part = find_preferred_part(request.format, Mime[:html], Mime[:text])
- render action: "email", layout: false, formats: %w[html]
+ render action: "email", layout: false, formats: [:html]
end
else
raise AbstractController::ActionNotFound, "Email '#{@email_action}' not found in #{@preview.name}"