diff options
Diffstat (limited to 'railties/lib/rails')
-rw-r--r-- | railties/lib/rails/application.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/railties/lib/rails/application.rb b/railties/lib/rails/application.rb index 6fd01ee768..f761bef664 100644 --- a/railties/lib/rails/application.rb +++ b/railties/lib/rails/application.rb @@ -291,7 +291,8 @@ module Rails require "rails/tasks" config = self.config task :environment do - config.eager_load = false + ActiveSupport.on_load(:before_initialize) { config.eager_load = false } + require_environment! end end |