From 6a56708afeb2b0e612d8efb444e77f476999a511 Mon Sep 17 00:00:00 2001 From: Vokhmin Alexey V Date: Thu, 4 Jun 2015 00:57:50 +0300 Subject: [PATCH] DEPRECATION WARNING: The configuration option 'config.serve_static_assets' has been renamed to 'config.serve_static_files' --- config/environments/production.rb | 2 +- config/environments/staging.rb | 2 +- config/environments/test.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/environments/production.rb b/config/environments/production.rb index 811f4d3b6..ecf09f705 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -20,7 +20,7 @@ Rails.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.js_compressor = :uglifier diff --git a/config/environments/staging.rb b/config/environments/staging.rb index 393d4dd9f..ede2ff829 100644 --- a/config/environments/staging.rb +++ b/config/environments/staging.rb @@ -29,7 +29,7 @@ Rosa::Application.configure do # Disable Rails's static asset server # In production, Apache or nginx will already do this - config.serve_static_assets = false + config.serve_static_files = false # 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 be0dbaa74..040d08ccb 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -13,7 +13,7 @@ Rails.application.configure do config.eager_load = false # 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.