demarches-normaliennes/config
Pierre de La Morinerie 9f676c76e1 config: fix zeitwerk warning about DynamicSmtpSettingsInterceptor
Fix a warning when running tests:

> DEPRECATION WARNING: Initialization autoloaded the constant DynamicSmtpSettingsInterceptor.
>
> Being able to do this is deprecated. Autoloading during initialization is going
to be an error condition in future versions of Rails.
> 
> Reloading does not reboot the application, and therefore code executed during
> initialization does not run again. So, if you reload DynamicSmtpSettingsInterceptor, for example,
> the expected changes won't be reflected in that stale Class object.
> 
> This autoloaded constant has been unloaded.
> 
> Please, check the "Autoloading and Reloading Constants" guide for solutions.

However if we fix as recommanded, the interceptor will get added
each time the classes are reloaded. And as the actual class instance
changed after the reloading, they won't be de-duplicated – *and*
there's no way to remove the old interceptor without having a reference
to the (now-deleted) class.

Instead we load the interceptor once, and add a message about the class
not being auto-reloaded.
2021-02-24 19:00:29 +01:00
..
environments test: don't cache classes during tests 2021-02-16 15:59:35 +01:00
initializers config: fix zeitwerk warning about DynamicSmtpSettingsInterceptor 2021-02-24 19:00:29 +01:00
locales disable france connect authentication for admin and instructeurs 2021-02-10 18:13:47 +01:00
webpack Improve the mapbox-gl support detection for older browsers 2020-04-09 11:01:20 +02:00
application.rb config: move application_name to an initializer 2021-02-24 15:06:55 +01:00
boot.rb Bump development gems 2018-03-06 16:17:22 +01:00
brakeman.ignore update brakeman 2020-12-17 10:51:09 +01:00
cable.yml Stop using staging environement 2018-08-29 11:22:56 +02:00
database.yml config: fix spring randomly crashing in the pg gem 2020-05-25 09:23:41 +00:00
deploy.rb fix deploy i_am_a_worker_test 2020-12-11 09:50:17 +01:00
env.example Add api education adapter and job 2021-01-14 17:57:48 +01:00
env.example.optional allow email footer logo to be configured in .env file 2021-02-09 09:39:02 +01:00
environment.rb Rails app:update 2020-07-07 18:03:56 +02:00
i18n-tasks.yml unused locales clean-up 2021-02-04 12:15:13 +01:00
puma.rb Puma: change config to enable cluster mode in production 2019-03-18 11:40:13 +01:00
routes.rb make and expert notifiable (controller and routes) 2021-02-16 09:46:18 +00:00
secrets.yml Add api education adapter and job 2021-01-14 17:57:48 +01:00
skylight.yml [ENV] Add skylight conf 2018-08-23 15:55:31 +02:00
spring.rb Rails app:update 2020-07-07 18:03:56 +02:00
storage.yml fix catalog v3 2020-06-19 14:20:32 +02:00
webpacker.yml Use jsx extension 2021-02-16 18:14:10 +01:00