Merge pull request #3465 from consul/rails5_paths

Add lib folder path to eager_load_paths
This commit is contained in:
Raimond Garcia
2019-04-30 01:41:37 +02:00
committed by GitHub
3 changed files with 3 additions and 3 deletions

View File

@@ -13,7 +13,7 @@ Rails.application.configure do
# Because autoloading is disabled in production environments with Rails 5,
# using autoload_paths will not load needed classes from specified paths.
# The solution to this, is to ask Rails to eager load classes.
config.eager_load_paths << "#{config.root}/lib"
config.eager_load_paths += ["#{config.root}/lib"]
# Full error reports are disabled and caching is turned on.
config.consider_all_requests_local = false

View File

@@ -13,7 +13,7 @@ Rails.application.configure do
# Because autoloading is disabled in production environments with Rails 5,
# using autoload_paths will not load needed classes from specified paths.
# The solution to this, is to ask Rails to eager load classes.
config.eager_load_paths << "#{config.root}/lib"
config.eager_load_paths += ["#{config.root}/lib"]
# Full error reports are disabled and caching is turned on.
config.consider_all_requests_local = false

View File

@@ -13,7 +13,7 @@ Rails.application.configure do
# Because autoloading is disabled in production environments with Rails 5,
# using autoload_paths will not load needed classes from specified paths.
# The solution to this, is to ask Rails to eager load classes.
config.eager_load_paths << "#{config.root}/lib"
config.eager_load_paths += ["#{config.root}/lib"]
# Full error reports are disabled and caching is turned on.
config.consider_all_requests_local = false