File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed
railties/lib/rails/generators/rails/app/templates/config/environments Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,8 @@ Rails.application.configure do
42
42
# Don't care if the mailer can't send.
43
43
config.action_mailer.raise_delivery_errors = false
44
44
45
+ # Disable caching for Action Mailer templates even if Action Controller
46
+ # caching is enabled.
45
47
config.action_mailer.perform_caching = false
46
48
47
49
config.action_mailer.default_url_options = { host: "localhost", port: 3000 }
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ Rails.application.configure do
58
58
59
59
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
60
60
config.force_ssl = true
61
-
61
+
62
62
# Skip http-to-https redirect for the default health check endpoint.
63
63
# config.ssl_options = { redirect: { exclude: ->(request) { request.path == "/up" } } }
64
64
@@ -85,6 +85,8 @@ Rails.application.configure do
85
85
86
86
<%- end -%>
87
87
<%- unless options.skip_action_mailer? -%>
88
+ # Disable caching for Action Mailer templates even if Action Controller
89
+ # caching is enabled.
88
90
config.action_mailer.perform_caching = false
89
91
90
92
# Ignore bad email addresses and do not raise email delivery errors.
Original file line number Diff line number Diff line change @@ -37,6 +37,8 @@ Rails.application.configure do
37
37
38
38
<%- end -%>
39
39
<%- unless options.skip_action_mailer? -%>
40
+ # Disable caching for Action Mailer templates even if Action Controller
41
+ # caching is enabled.
40
42
config.action_mailer.perform_caching = false
41
43
42
44
# Tell Action Mailer not to deliver emails to the real world.
You can’t perform that action at this time.
0 commit comments