Skip to content

Commit 74db84b

Browse files
Remove check for Rails version >= 5
1 parent 81491bf commit 74db84b

File tree

1 file changed

+2
-7
lines changed
  • test/rails_app/config/environments

1 file changed

+2
-7
lines changed

test/rails_app/config/environments/test.rb

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,8 @@
99
config.eager_load = false
1010

1111
# Configure static asset server for tests with Cache-Control for performance
12-
if Rails.version >= "5"
13-
config.public_file_server.enabled = true
14-
config.public_file_server.headers = {'Cache-Control' => 'public, max-age=3600'}
15-
else
16-
config.serve_static_files = true
17-
config.static_cache_control = "public, max-age=3600"
18-
end
12+
config.public_file_server.enabled = true
13+
config.public_file_server.headers = {'Cache-Control' => 'public, max-age=3600'}
1914

2015
# Show full error reports and disable caching
2116
config.consider_all_requests_local = true

0 commit comments

Comments
 (0)