diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2016-04-11 20:57:29 -0300 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2016-04-11 20:57:29 -0300 |
commit | 26d6dfd4c93ad3b125eced76bf89c138584de7c0 (patch) | |
tree | 45834c2280cd76c183fe2ce11ef1694e8305362b /railties | |
parent | 20ffb63c2eb8ca65dc0d946deeadb8b4dda7ff3c (diff) | |
parent | 1d9bb29cce139cf3aec2e24b6c76319823b003a9 (diff) | |
download | rails-26d6dfd4c93ad3b125eced76bf89c138584de7c0.tar.gz rails-26d6dfd4c93ad3b125eced76bf89c138584de7c0.tar.bz2 rails-26d6dfd4c93ad3b125eced76bf89c138584de7c0.zip |
Merge pull request #24490 from prathamesh-sonpatki/add-config-to-deprecation-warning
Add `config` to the deprecation warnings of deprecated config options
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/application/configuration.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/lib/rails/application/configuration.rb b/railties/lib/rails/application/configuration.rb index 0aceee1c9a..f415a20833 100644 --- a/railties/lib/rails/application/configuration.rb +++ b/railties/lib/rails/application/configuration.rb @@ -58,7 +58,7 @@ module Rails def static_cache_control=(value) ActiveSupport::Deprecation.warn <<-eow.strip_heredoc - `static_cache_control` is deprecated and will be removed in Rails 5.1. + `config.static_cache_control` is deprecated and will be removed in Rails 5.1. Please use `config.public_file_server.headers = { 'Cache-Control' => '#{value}' }` instead. @@ -69,7 +69,7 @@ module Rails def serve_static_files ActiveSupport::Deprecation.warn <<-eow.strip_heredoc - `serve_static_files` is deprecated and will be removed in Rails 5.1. + `config.serve_static_files` is deprecated and will be removed in Rails 5.1. Please use `config.public_file_server.enabled` instead. eow @@ -78,7 +78,7 @@ module Rails def serve_static_files=(value) ActiveSupport::Deprecation.warn <<-eow.strip_heredoc - `serve_static_files` is deprecated and will be removed in Rails 5.1. + `config.serve_static_files` is deprecated and will be removed in Rails 5.1. Please use `config.public_file_server.enabled = #{value}` instead. eow |