aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2017-03-28 11:39:43 -0400
committerGitHub <noreply@github.com>2017-03-28 11:39:43 -0400
commit1c682af73abcc12562291de8f93bfe2adbe014d7 (patch)
treea549e488de4fed97ae797bd0c465280a414aa82f /railties
parentd28c48243521a978ba8d432092e11a4aafb2b154 (diff)
parenta9124e1afdb4f3b5f84e83bc2a524761a8b996f1 (diff)
downloadrails-1c682af73abcc12562291de8f93bfe2adbe014d7.tar.gz
rails-1c682af73abcc12562291de8f93bfe2adbe014d7.tar.bz2
rails-1c682af73abcc12562291de8f93bfe2adbe014d7.zip
Merge pull request #28549 from jess/patch-1
make it clear how to enable caching
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/rails/generators/rails/app/templates/config/environments/development.rb.tt1
1 files changed, 1 insertions, 0 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 511b4a82eb..b75b65c8df 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
@@ -13,6 +13,7 @@ Rails.application.configure do
config.consider_all_requests_local = true
# Enable/disable caching. By default caching is disabled.
+ # Run rails dev:cache to toggle caching.
if Rails.root.join('tmp/caching-dev.txt').exist?
config.action_controller.perform_caching = true