diff options
author | 2019-07-25 07:34:45 +0200 | |
---|---|---|
committer | 2019-07-25 07:34:45 +0200 | |
commit | 4a9c0ab56965b242ccf082aff0a722c836bcbbaf (patch) | |
tree | 4068d0c5e829b4d742fbbf419c9dca7d0b80ba23 | |
parent | Use sassc-rails instead of sass-rails (diff) | |
download | packages-5-4a9c0ab56965b242ccf082aff0a722c836bcbbaf.tar.gz packages-5-4a9c0ab56965b242ccf082aff0a722c836bcbbaf.tar.bz2 packages-5-4a9c0ab56965b242ccf082aff0a722c836bcbbaf.zip |
Fix eager loading in productionv6.0.25
Rails 5 no longer falls back to autoloading in the production
environment by default, so all code needs to be eagerly
loaded. Specificy that code in lib should also be included here,
similar to autoload_paths.
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
-rw-r--r-- | config/environments/production.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/config/environments/production.rb b/config/environments/production.rb index 67ca1e4..9db50f0 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -9,6 +9,7 @@ Rails.application.configure do # and those relying on copy on write to perform better. # Rake tasks automatically ignore this option for performance. config.eager_load = true + config.eager_load_paths += [Rails.root.join('lib')] # Full error reports are disabled and caching is turned on. config.consider_all_requests_local = false |