Added .eager_load config variable to each environment respectively

This commit is contained in:
Luke Barratt 2015-08-15 23:30:14 +01:00
parent 2dcc14b0a3
commit e6c2ebcbc3
4 changed files with 8 additions and 3 deletions

View file

@ -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

View file

@ -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
config.eager_load = true
end

View file

@ -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

View file

@ -32,4 +32,6 @@ Ensl::Application.configure do
# Print deprecation notices to the stderr
config.active_support.deprecation = :stderr
config.eager_load = true
end