Skip to content

Commit 44beee5

Browse files
committed
Configure eager_load
1 parent 9dbb1a3 commit 44beee5

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

config/environments/development.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
# every request. This slows down response time but is perfect for development
66
# since you don't have to restart the webserver when you make code changes.
77
config.cache_classes = false
8+
config.eager_load = false
89

910
# Log error messages when you accidentally call methods on nil.
1011
config.whiny_nils = true

config/environments/production.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# The production environment is meant for finished, "live" apps.
55
# Code is not reloaded between requests
66
config.cache_classes = true
7+
config.eager_load = true
78

89
# Full error reports are disabled and caching is turned on
910
config.consider_all_requests_local = false

config/environments/test.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# your test database is "scratch space" for the test suite and is wiped
77
# and recreated between test runs. Don't rely on the data there!
88
config.cache_classes = true
9+
config.eager_load = false
910

1011
# Log error messages when you accidentally call methods on nil.
1112
config.whiny_nils = true

0 commit comments

Comments
 (0)