From 00c8045742d018f3cdf68dd232a0ff057eea4719 Mon Sep 17 00:00:00 2001 From: Andreas Stephanides Date: Mon, 11 Mar 2019 20:48:29 +0100 Subject: [PATCH] eagerload development --- config/environments/development.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/environments/development.rb b/config/environments/development.rb index 0b92a32..8bc45f9 100755 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -8,6 +8,7 @@ Fetsite::Application.configure do # since you don't have to restart the web server when you make code changes. config.cache_classes = false + config.eager_load = false # Log error messages when you accidentally call methods on nil. config.whiny_nils = true @@ -30,7 +31,7 @@ Fetsite::Application.configure do # Log the query plan for queries taking more than this (works # with SQLite, MySQL, and PostgreSQL) - config.active_record.auto_explain_threshold_in_seconds = 0.5 +# config.active_record.auto_explain_threshold_in_seconds = 0.5 # Do not compress assets config.assets.compress = false