[#835] Extra paths deserve eagler loading in production too

This commit is contained in:
Frederic Merizen 2018-10-31 19:30:06 +01:00
parent 02fa30c83b
commit 6a43be4f39

View file

@ -24,7 +24,8 @@ module TPS
config.i18n.load_path += Dir[Rails.root.join('config', 'locales', '**', '*.{rb,yml}')] config.i18n.load_path += Dir[Rails.root.join('config', 'locales', '**', '*.{rb,yml}')]
config.i18n.available_locales = [:fr] config.i18n.available_locales = [:fr]
config.autoload_paths += ["#{config.root}/lib"] config.paths.add "#{config.root}/lib", eager_load: true
config.assets.paths << Rails.root.join('app', 'assets', 'javascript') config.assets.paths << Rails.root.join('app', 'assets', 'javascript')
config.assets.paths << Rails.root.join('app', 'assets', 'fonts') config.assets.paths << Rails.root.join('app', 'assets', 'fonts')
config.assets.precompile += ['.woff'] config.assets.precompile += ['.woff']