diff options
author | José Valim <jose.valim@plataformatec.com.br> | 2013-07-10 11:46:17 -0700 |
---|---|---|
committer | José Valim <jose.valim@plataformatec.com.br> | 2013-07-10 11:46:17 -0700 |
commit | e7e81b4580f46c3d5229fdef3f0749802a9206da (patch) | |
tree | 466323b19ec4afdb9cf08bb9b4a3013814776591 /railties/lib/rails | |
parent | ddf79ab15b7e47a3ed98c44da7665dbc624fdbf6 (diff) | |
parent | 9cac69c602f57e397fe01d866cb24ce1781606d4 (diff) | |
download | rails-e7e81b4580f46c3d5229fdef3f0749802a9206da.tar.gz rails-e7e81b4580f46c3d5229fdef3f0749802a9206da.tar.bz2 rails-e7e81b4580f46c3d5229fdef3f0749802a9206da.zip |
Merge pull request #11389 from jetthoughts/11381_fix_hit_database_on_precompile
#11381: Ignore config.eager_load=true for rake
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 |