diff options
author | José Valim <jose.valim@gmail.com> | 2010-06-02 00:42:20 +0200 |
---|---|---|
committer | Mikel Lindsaar <raasdnil@gmail.com> | 2010-06-03 23:32:11 +1000 |
commit | 83a58e066090c5238822b712e0cfa8b72ddb02e5 (patch) | |
tree | e7ccebdec5d5b564d4fe15f0d94521e1c1866bfb /railties/lib/rails/application | |
parent | 53efdc2eefcf7ce98148d9ca7f2f4d4c1f900866 (diff) | |
download | rails-83a58e066090c5238822b712e0cfa8b72ddb02e5.tar.gz rails-83a58e066090c5238822b712e0cfa8b72ddb02e5.tar.bz2 rails-83a58e066090c5238822b712e0cfa8b72ddb02e5.zip |
Add lib to load paths when application is inherited to be able to load lib code during configuration.
Diffstat (limited to 'railties/lib/rails/application')
-rw-r--r-- | railties/lib/rails/application/finisher.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/application/finisher.rb b/railties/lib/rails/application/finisher.rb index fbab4d5515..d7ff489336 100644 --- a/railties/lib/rails/application/finisher.rb +++ b/railties/lib/rails/application/finisher.rb @@ -38,7 +38,7 @@ module Rails initializer :eager_load! do if config.cache_classes && !$rails_rake_task ActiveSupport.run_load_hooks(:before_eager_load, self) - railties.all(&:eager_load!) + eager_load! end end |