diff options
author | Marius Balteanu <marius.balteanu@zitec.com> | 2023-12-12 17:56:00 +0000 |
---|---|---|
committer | Marius Balteanu <marius.balteanu@zitec.com> | 2023-12-12 17:56:00 +0000 |
commit | a6e754eccea119f4b38e26b886328f8a81bf187d (patch) | |
tree | 059291c54ebadf905b4a30d1f48a690b4891f473 /config/environments | |
parent | c38e847fa656e4007e44e7ee882e0abf105be8cb (diff) | |
download | redmine-a6e754eccea119f4b38e26b886328f8a81bf187d.tar.gz redmine-a6e754eccea119f4b38e26b886328f8a81bf187d.zip |
Replaces @config.cache_classes@ which the new option @config.enable_reloading@ introduced in Rails 7.1 (#36320)
git-svn-id: https://svn.redmine.org/redmine/trunk@22518 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/environments')
-rw-r--r-- | config/environments/development.rb | 2 | ||||
-rw-r--r-- | config/environments/production.rb | 2 | ||||
-rw-r--r-- | config/environments/test.rb | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/config/environments/development.rb b/config/environments/development.rb index 5b345a01a..5b3ff43dc 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -8,7 +8,7 @@ Rails.application.configure do # In the development environment your application's code is reloaded any time # it changes. This slows down response time but is perfect for development # since you don't have to restart the web server when you make code changes. - config.cache_classes = false + config.enable_reloading = true # Do not eager load code on boot. config.eager_load = false diff --git a/config/environments/production.rb b/config/environments/production.rb index a956e65c1..edbffba9e 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -6,7 +6,7 @@ Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. # Code is not reloaded between requests. - config.cache_classes = true + config.enable_reloading = false # Eager load code on boot. This eager loads most of Rails and # your application in memory, allowing both threaded web servers diff --git a/config/environments/test.rb b/config/environments/test.rb index 199f1bb27..2e7b23813 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -10,7 +10,7 @@ require 'active_support/core_ext/integer/time' Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. - config.cache_classes = true + config.enable_reloading = false # config.action_view.cache_template_loading = true # Do not eager load code on boot. This avoids loading your whole application |