config: explicitely use the classic autoloader

I'm sure we can use zeitwerk in the future, but let's retain the classic
loader until the config issues are proved to be safe.
This commit is contained in:
Pierre de La Morinerie 2020-08-05 16:58:18 +02:00
parent fbbcd97463
commit bc0244456c

View file

@ -12,10 +12,15 @@ Dotenv::Railtie.load
module TPS
class Application < Rails::Application
config.load_defaults 5.2
# Settings in config/environments/* take precedence over those specified here.
# Application configuration should go into files in config/initializers
# -- all .rb files in that directory are automatically loaded.
# The default autoloader since Rails 6.0 defaults is zeitwerk.
# However, to split the work, we will move to zeitwerk only in a future PR.
config.autoloader = :classic
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
config.time_zone = 'Paris'