summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2019-02-04 17:54:45 +0100
committerRémy Coutable <remy@rymai.me>2019-02-04 17:54:45 +0100
commit4564ecb3d0f4cb1ba8edcc1cf020dbcff72f2d9b (patch)
tree4826292b2ed6594bb5c578e67dfcef42a7d2d383
parent7fe37534471941f81c8941846d09bdd190a73081 (diff)
downloadgitlab-ce-eager-load-in-dev-and-test.tar.gz
Enable eager-loading in development and testeager-load-in-dev-and-test
Signed-off-by: Rémy Coutable <remy@rymai.me>
-rw-r--r--config/environments/development.rb2
-rw-r--r--config/environments/test.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/config/environments/development.rb b/config/environments/development.rb
index 494ddd72556..bf0b4dc7e0c 100644
--- a/config/environments/development.rb
+++ b/config/environments/development.rb
@@ -41,7 +41,7 @@ Rails.application.configure do
config.action_mailer.perform_deliveries = (ENV['BOOTSTRAP'] != '1')
config.action_mailer.preview_path = 'app/mailers/previews'
- config.eager_load = false
+ config.eager_load = true
# Do not log asset requests
config.assets.quiet = true
diff --git a/config/environments/test.rb b/config/environments/test.rb
index 3461099253a..82017074d3c 100644
--- a/config/environments/test.rb
+++ b/config/environments/test.rb
@@ -40,7 +40,7 @@ Rails.application.configure do
# Print deprecation notices to the stderr
config.active_support.deprecation = :stderr
- config.eager_load = false
+ config.eager_load = true
config.cache_store = :null_store