From f0e1ea4027b1a9dabff81abd2ff05c70532f0f33 Mon Sep 17 00:00:00 2001 From: Al Snow Date: Wed, 19 Aug 2015 12:16:41 -0400 Subject: [PATCH] Fixed config.serve_static_assets DEPRECATION WARNING --- config/environments/production.rb | 2 +- config/environments/test.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/environments/production.rb b/config/environments/production.rb index 4300360..94c2767 100755 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -15,7 +15,7 @@ Railsgoat::Application.configure do # config.action_dispatch.rack_cache = true # Disable Rails's static asset server (Apache or nginx will already do this). - config.serve_static_assets = false + config.serve_static_files = false # Compress JavaScripts and CSS config.assets.compress = true diff --git a/config/environments/test.rb b/config/environments/test.rb index 3b1eb20..bd6b76c 100755 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -8,7 +8,7 @@ Railsgoat::Application.configure do config.cache_classes = true # Configure static asset server for tests with Cache-Control for performance. - config.serve_static_assets = true + config.serve_static_files = true config.static_cache_control = "public, max-age=3600" # Show full error reports and disable caching.