config: don't explicitely eager-load controllers/concerns

Per the documentation, Rails automatically loads `**/concerns` paths.

See https://guides.rubyonrails.org/autoloading_and_reloading_constants_classic_mode.html#autoload-paths-and-eager-load-paths
This commit is contained in:
Pierre de La Morinerie 2020-08-06 10:46:06 +02:00
parent 4f0d9afbd6
commit c514898b84

View file

@ -32,7 +32,6 @@ module TPS
config.i18n.available_locales = [:fr]
config.paths.add "#{config.root}/lib", eager_load: true
config.paths.add "#{config.root}/app/controllers/concerns", eager_load: true
config.assets.paths << Rails.root.join('app', 'assets', 'javascript')
config.assets.paths << Rails.root.join('app', 'assets', 'fonts')