From e6c2ebcbc3d20fe0b0d5249177d9f73ae266a4be Mon Sep 17 00:00:00 2001 From: Luke Barratt Date: Sat, 15 Aug 2015 23:30:14 +0100 Subject: [PATCH] Added .eager_load config variable to each environment respectively --- config/environments/development.rb | 3 +-- config/environments/production.rb | 4 +++- config/environments/staging.rb | 2 ++ config/environments/test.rb | 2 ++ 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/config/environments/development.rb b/config/environments/development.rb index 16d3963..9b64849 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -31,6 +31,5 @@ Ensl::Application.configure do # Use a different cache store config.cache_store = :dalli_store - # Enable threaded mode - # config.threadsafe! + config.eager_load = false end diff --git a/config/environments/production.rb b/config/environments/production.rb index c646579..bc7ff13 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -64,4 +64,6 @@ Ensl::Application.configure do # Custom Session Store config to allow gathers.staging.ensl.org # config.session_store :cookie_store, key: '_ENSL_session_key', expire_after: 30.days.to_i, domain: "gathers.ensl.org" -end \ No newline at end of file + + config.eager_load = true +end diff --git a/config/environments/staging.rb b/config/environments/staging.rb index 8bdbaa6..48ba483 100644 --- a/config/environments/staging.rb +++ b/config/environments/staging.rb @@ -64,4 +64,6 @@ Ensl::Application.configure do # Custom Session Store config to allow gathers.staging.ensl.org config.session_store :cookie_store, key: "_ENSL_session_key_staging", expire_after: 30.days.to_i, domain: ".staging.ensl.org" + + config.eager_load = true end diff --git a/config/environments/test.rb b/config/environments/test.rb index 72ed1b6..e4a2c83 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -32,4 +32,6 @@ Ensl::Application.configure do # Print deprecation notices to the stderr config.active_support.deprecation = :stderr + + config.eager_load = true end