aboutsummaryrefslogtreecommitdiffstats
path: root/railties/CHANGELOG.md
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2015-11-03 23:02:00 +0100
committerKasper Timm Hansen <kaspth@gmail.com>2015-11-03 23:10:55 +0100
commit748b2f9cb1ff05a8aab068e2fa802e9f12163e30 (patch)
tree92c1171f8ae5ea2fc597e26a4692e41aeb031128 /railties/CHANGELOG.md
parente37b470a6675a05df5a57455a3ac8c1c88ef04d6 (diff)
downloadrails-748b2f9cb1ff05a8aab068e2fa802e9f12163e30.tar.gz
rails-748b2f9cb1ff05a8aab068e2fa802e9f12163e30.tar.bz2
rails-748b2f9cb1ff05a8aab068e2fa802e9f12163e30.zip
Add enabled flag to the public file server.
As discussed in https://github.com/rails/rails/pull/19135#issuecomment-153385986. Replaces `serve_static_files` to unify the static options under the `public_file_server` wing. Deprecates `serve_static_files` accessors, but make them use the newer config internally.
Diffstat (limited to 'railties/CHANGELOG.md')
-rw-r--r--railties/CHANGELOG.md19
1 files changed, 19 insertions, 0 deletions
diff --git a/railties/CHANGELOG.md b/railties/CHANGELOG.md
index 85e71b6c5c..f1dec45f02 100644
--- a/railties/CHANGELOG.md
+++ b/railties/CHANGELOG.md
@@ -1,7 +1,26 @@
+* Deprecate `serve_static_files` in favor of `public_file_server.enabled`.
+
+ Unifies the static asset options under `public_file_server`.
+
+ To upgrade, replace occurrences of:
+
+ ```
+ config.serve_static_files = # false or true
+ ```
+
+ in your environment files, with:
+
+ ```
+ config.public_file_server.enabled = # false or true
+ ```
+
+ *Kasper Timm Hansen*
+
* Route generator should be idempotent
running generators several times no longer require you to cleanup routes.rb
*Thiago Pinto*
+
* Allow passing an environment to `config_for`.
*Simon Eskildsen*