[#835] Extra paths deserve eagler loading in production too
This commit is contained in:
parent
02fa30c83b
commit
6a43be4f39
1 changed files with 2 additions and 1 deletions
|
@ -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']
|
||||||
|
|
Loading…
Reference in a new issue