aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2016-02-24 14:11:16 -0300
committerRafael França <rafaelmfranca@gmail.com>2016-02-24 14:11:16 -0300
commit42270189b7f35abec590c1251f43bad6ac404977 (patch)
treef52c16f0a595874a7ad8b1d1081cb5bd49f0dbb8
parent38b2f527d02196ab366f5554dc7bddaa616af567 (diff)
parent263d63c15d99978174795b72e5a8d71e3dcef171 (diff)
downloadrails-42270189b7f35abec590c1251f43bad6ac404977.tar.gz
rails-42270189b7f35abec590c1251f43bad6ac404977.tar.bz2
rails-42270189b7f35abec590c1251f43bad6ac404977.zip
Merge pull request #23859 from prathamesh-sonpatki/dont-put-perform-caching-config-twice
Don't put config.action_mailer.perform_caching entry twice in development.rb
-rw-r--r--railties/lib/rails/generators/rails/app/templates/config/environments/development.rb.tt10
1 files changed, 2 insertions, 8 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/config/environments/development.rb.tt b/railties/lib/rails/generators/rails/app/templates/config/environments/development.rb.tt
index 8e9890378a..e6a2de0928 100644
--- a/railties/lib/rails/generators/rails/app/templates/config/environments/development.rb.tt
+++ b/railties/lib/rails/generators/rails/app/templates/config/environments/development.rb.tt
@@ -16,10 +16,6 @@ Rails.application.configure do
if Rails.root.join('tmp/caching-dev.txt').exist?
config.action_controller.perform_caching = true
- <%- unless options.skip_action_mailer? -%>
- config.action_mailer.perform_caching = false
- <%- end -%>
-
config.cache_store = :memory_store
config.public_file_server.headers = {
'Cache-Control' => 'public, max-age=172800'
@@ -27,16 +23,14 @@ Rails.application.configure do
else
config.action_controller.perform_caching = false
- <%- unless options.skip_action_mailer? -%>
- config.action_mailer.perform_caching = false
- <%- end -%>
-
config.cache_store = :null_store
end
<%- unless options.skip_action_mailer? -%>
# Don't care if the mailer can't send.
config.action_mailer.raise_delivery_errors = false
+
+ config.action_mailer.perform_caching = false
<%- end -%>
# Print deprecation notices to the Rails logger.