diff options
author | Prathamesh Sonpatki <csonpatki@gmail.com> | 2016-04-10 19:09:51 +0530 |
---|---|---|
committer | Prathamesh Sonpatki <csonpatki@gmail.com> | 2016-04-10 19:09:51 +0530 |
commit | 1d9bb29cce139cf3aec2e24b6c76319823b003a9 (patch) | |
tree | 34b8ba3c52670d23d58b600487d8ea99acf18558 /railties/lib | |
parent | 9df157a97f7f02fd12ed6ff82cb97e1edf982a2e (diff) | |
download | rails-1d9bb29cce139cf3aec2e24b6c76319823b003a9.tar.gz rails-1d9bb29cce139cf3aec2e24b6c76319823b003a9.tar.bz2 rails-1d9bb29cce139cf3aec2e24b6c76319823b003a9.zip |
Add `config` to the deprecation warnings of deprecated config options
Diffstat (limited to 'railties/lib')
-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 |