demarches-normaliennes/app
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
..
assets gems: upgrade to Sprockets 4 2021-02-24 17:09:51 +01:00
controllers gems: update chunky_png 2021-02-16 16:31:30 +00:00
dashboards bump administrate 2020-09-21 11:15:25 +02:00
fields manager: remove support for old pj 2019-07-30 16:11:17 +02:00
graphql Expose structured address on the API 2021-02-17 19:10:16 +01:00
helpers zeitwerk: Url -> URL 2021-02-09 13:07:30 +01:00
javascript Fix multiselect labels 2021-02-19 12:08:54 +01:00
jobs Add ChampFetchExternalDataJob 2021-02-17 19:10:16 +01:00
lib Add api address external data fetch 2021-02-17 19:10:16 +01:00
mailers mailers: fix Ruby 2.7 arguments passing 2021-02-09 09:20:46 +01:00
models config: fix zeitwerk warning about DynamicSmtpSettingsInterceptor 2021-02-24 19:00:29 +01:00
policies policies: clarify the role of ChampPolicy 2020-06-24 15:42:30 +02:00
schemas Add api address external data fetch 2021-02-17 19:10:16 +01:00
serializers zeitwerk: Api -> API 2021-02-09 13:07:30 +01:00
services Fix new Rubocop warnings 2021-02-16 16:31:30 +00:00
validators extract password complexity validator 2020-12-15 16:26:09 +01:00
views stylesheets: merge print rules with the application stylesheet 2021-02-24 17:09:51 +01:00