diff options
author | Alexander Kalinichev <alexander.kalinichev@gmail.com> | 2016-03-26 21:35:17 +0400 |
---|---|---|
committer | Alexander Kalinichev <alexander.kalinichev@gmail.com> | 2016-03-26 21:35:17 +0400 |
commit | c2d50a0956ffa427ee7efabff64a09014ee560a5 (patch) | |
tree | 862b9760e498229b7a600fa630a85ab95bd23b86 | |
parent | 6ece7df8d80c6d93db43878fa4c0278a0204072c (diff) | |
download | rails-c2d50a0956ffa427ee7efabff64a09014ee560a5.tar.gz rails-c2d50a0956ffa427ee7efabff64a09014ee560a5.tar.bz2 rails-c2d50a0956ffa427ee7efabff64a09014ee560a5.zip |
Added 'config.' to deprecation warning
Misc:
`config.public_file_server.enabled = true` instead `public_file_server.enabled = true`
-rw-r--r-- | railties/lib/rails/application/configuration.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails/application/configuration.rb b/railties/lib/rails/application/configuration.rb index 65cff1561a..0aceee1c9a 100644 --- a/railties/lib/rails/application/configuration.rb +++ b/railties/lib/rails/application/configuration.rb @@ -70,7 +70,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. - Please use `public_file_server.enabled` instead. + Please use `config.public_file_server.enabled` instead. eow @public_file_server.enabled @@ -79,7 +79,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. - Please use `public_file_server.enabled = #{value}` instead. + Please use `config.public_file_server.enabled = #{value}` instead. eow @public_file_server.enabled = value |