From 8e747e54a0a781b208d2abc5800dcd9773128485 Mon Sep 17 00:00:00 2001 From: luisramos0 Date: Thu, 21 Mar 2019 17:05:33 +0000 Subject: [PATCH] Setting eager loading on each env configuration --- config/environments/development.rb | 3 +-- config/environments/production.rb | 2 ++ config/environments/staging.rb | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/config/environments/development.rb b/config/environments/development.rb index 20310726cb..3e74942275 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -9,8 +9,7 @@ Openfoodnetwork::Application.configure do # :file_store is used by default when no cache store is specifically configured. # config.cache_store = :file_store - # Log error messages when you accidentally call methods on nil. - config.whiny_nils = true + config.eager_load = false # Show full error reports and disable caching config.consider_all_requests_local = true diff --git a/config/environments/production.rb b/config/environments/production.rb index 91ff62a3be..4ab5a11dd4 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -1,6 +1,8 @@ Openfoodnetwork::Application.configure do # Settings specified here will take precedence over those in config/application.rb + config.eager_load = false + # Code is not reloaded between requests config.cache_classes = true diff --git a/config/environments/staging.rb b/config/environments/staging.rb index 91ff62a3be..4ab5a11dd4 100644 --- a/config/environments/staging.rb +++ b/config/environments/staging.rb @@ -1,6 +1,8 @@ Openfoodnetwork::Application.configure do # Settings specified here will take precedence over those in config/application.rb + config.eager_load = false + # Code is not reloaded between requests config.cache_classes = true