Skip to content

Commit 6e4fc2f

Browse files
committed
Fix deprecation warnings
1 parent e9f39f9 commit 6e4fc2f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

config/environments/production.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
# Disable serving static files from the `/public` folder by default since
2424
# Apache or NGINX already handles this.
25-
config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present?
25+
config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
2626

2727
# Compress JavaScripts and CSS.
2828
config.assets.js_compressor = :uglifier

config/environments/test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
config.eager_load = false
1414

1515
# Configure static file server for tests with Cache-Control for performance.
16-
config.serve_static_files = true
16+
config.public_file_server.enabled = true
1717
config.static_cache_control = 'public, max-age=3600'
1818

1919
# Show full error reports and disable caching.

0 commit comments

Comments
 (0)