diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2019-01-08 14:15:16 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-08 14:15:16 -0500 |
commit | 1858614219b74061c94af639ac0e2780cecd7b69 (patch) | |
tree | 5e0233528456c26912bf4f636ea361bdc223b6bb | |
parent | ae4f7b4a0a98cc870c158593eb93b667465cc522 (diff) | |
parent | d8707e0dfc4a3eff6908aa9eba93a4c3961d3d2c (diff) | |
download | rails-1858614219b74061c94af639ac0e2780cecd7b69.tar.gz rails-1858614219b74061c94af639ac0e2780cecd7b69.tar.bz2 rails-1858614219b74061c94af639ac0e2780cecd7b69.zip |
Merge pull request #34132 from ConfusedVorlon/enable_fragment_cache_log_in_dev
enable_fragment_cache_logging in dev by default
-rw-r--r-- | activestorage/test/dummy/config/environments/development.rb | 1 | ||||
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/config/environments/development.rb.tt | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/activestorage/test/dummy/config/environments/development.rb b/activestorage/test/dummy/config/environments/development.rb index 47fc5bf25c..4b80d291ca 100644 --- a/activestorage/test/dummy/config/environments/development.rb +++ b/activestorage/test/dummy/config/environments/development.rb @@ -17,6 +17,7 @@ Rails.application.configure do # Enable/disable caching. By default caching is disabled. if Rails.root.join("tmp/caching-dev.txt").exist? config.action_controller.perform_caching = true + config.action_controller.enable_fragment_cache_logging = true config.cache_store = :memory_store config.public_file_server.headers = { 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 3807c8a9aa..2887bc2d67 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,6 +16,7 @@ Rails.application.configure do # Run rails dev:cache to toggle caching. if Rails.root.join('tmp', 'caching-dev.txt').exist? config.action_controller.perform_caching = true + config.action_controller.enable_fragment_cache_logging = true config.cache_store = :memory_store config.public_file_server.headers = { |