aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails
diff options
context:
space:
mode:
authorPaul Nikitochkin <paul.nikitochkin@gmail.com>2013-07-09 23:36:50 +0300
committerPaul Nikitochkin <paul.nikitochkin@gmail.com>2013-07-10 21:43:15 +0300
commit9cac69c602f57e397fe01d866cb24ce1781606d4 (patch)
tree29168cb1c28326da961037435874a1af2b2509b3 /railties/lib/rails
parent4b6886a1403613022152a7196f87934765a930c6 (diff)
downloadrails-9cac69c602f57e397fe01d866cb24ce1781606d4.tar.gz
rails-9cac69c602f57e397fe01d866cb24ce1781606d4.tar.bz2
rails-9cac69c602f57e397fe01d866cb24ce1781606d4.zip
#11381: Ignore config.eager_load=true for rake
Closes #11381
Diffstat (limited to 'railties/lib/rails')
-rw-r--r--railties/lib/rails/application.rb3
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