From 5442ca7c542d4a1bfa7a26cbace200244208bd8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Fri, 4 Sep 2020 22:16:55 +0200 Subject: [PATCH] Remove redundant configuration option This option was added by Rails 4 new application generator. However, the `assets.digest` option is set to true by default, and recent Rails versions don't even add this option to the environment files. --- config/environments/development.rb | 4 ---- config/environments/preproduction.rb | 4 ---- config/environments/production.rb | 4 ---- config/environments/staging.rb | 4 ---- 4 files changed, 16 deletions(-) diff --git a/config/environments/development.rb b/config/environments/development.rb index 0e3e7f9d9..07840b58c 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -46,10 +46,6 @@ Rails.application.configure do # number of complex assets. config.assets.debug = true - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - # Adds additional error checking when serving assets at runtime. # Checks for improperly declared sprockets dependencies. # Raises helpful error messages. diff --git a/config/environments/preproduction.rb b/config/environments/preproduction.rb index 3c21e58c7..86926d740 100644 --- a/config/environments/preproduction.rb +++ b/config/environments/preproduction.rb @@ -36,10 +36,6 @@ Rails.application.configure do # Do not fallback to assets pipeline if a precompiled asset is missed. config.assets.compile = false - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb # Specifies the header that your server uses for sending files. diff --git a/config/environments/production.rb b/config/environments/production.rb index 9fe36cf48..f0d84f33d 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -30,10 +30,6 @@ Rails.application.configure do # Do not fallback to assets pipeline if a precompiled asset is missed. config.assets.compile = false - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb # Enable serving of images, stylesheets, and JavaScripts from an asset server. diff --git a/config/environments/staging.rb b/config/environments/staging.rb index c189f787c..c3eb3df2c 100644 --- a/config/environments/staging.rb +++ b/config/environments/staging.rb @@ -36,10 +36,6 @@ Rails.application.configure do # Do not fallback to assets pipeline if a precompiled asset is missed. config.assets.compile = false - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb # Specifies the header that your server uses for sending files.