diff options
author | John Hawthorn <john@hawthorn.email> | 2019-03-18 16:06:22 -0700 |
---|---|---|
committer | John Hawthorn <john@hawthorn.email> | 2019-03-18 16:06:31 -0700 |
commit | 663548845b265d97118999eea83bf05a7d41161f (patch) | |
tree | 40c536531fdbbfcfbac46a40023182deb977a756 /railties/lib/rails | |
parent | 0eb9e1e51a9df554e1cf7a42ec339ca6f0120a04 (diff) | |
download | rails-663548845b265d97118999eea83bf05a7d41161f.tar.gz rails-663548845b265d97118999eea83bf05a7d41161f.tar.bz2 rails-663548845b265d97118999eea83bf05a7d41161f.zip |
Use symbol for mail preview format, not string
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/mailers_controller.rb | 2 |
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}" |