diff --git a/config/environments/production.rb b/config/environments/production.rb index e8b7beea..28ed0955 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -33,7 +33,7 @@ # Disable Rails's static asset server # In production, Apache or nginx will already do this - config.serve_static_assets = true # true so Webrick testing of production mode works + config.serve_static_files = true # true so Webrick testing of production mode works # Enable serving of images, stylesheets, and javascripts from an asset server # config.action_controller.asset_host = "http://assets.example.com" diff --git a/config/environments/test.rb b/config/environments/test.rb index bfd1db47..05fc3f0d 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -34,7 +34,7 @@ config.active_support.deprecation = :stderr # 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" # Raise exception on mass assignment protection for Active Record models