diff options
author | Akira Matsuda <ronnie@dio.jp> | 2017-05-11 17:40:41 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2017-05-11 18:01:26 +0900 |
commit | f73b845610931ddf03c756d804982776a3cc69a4 (patch) | |
tree | 840536837bb62f17ebb4b3d0db067ae4ea0315b4 /activerecord/lib/active_record/serialization.rb | |
parent | 22bfc5f4847f96549688314d9ee4c01d07d4589b (diff) | |
download | rails-f73b845610931ddf03c756d804982776a3cc69a4.tar.gz rails-f73b845610931ddf03c756d804982776a3cc69a4.tar.bz2 rails-f73b845610931ddf03c756d804982776a3cc69a4.zip |
Defer loading each DB Tasks class from AR DatabaseTasks
Because we don't need to load tasks for DBs that we don't use for the current app.
Also, these Tasks classes load AR::Base in their class level, and so immediately kick :active_record on_load hooks.
This used to happen when we were loading tasks, not when we run a task.
Diffstat (limited to 'activerecord/lib/active_record/serialization.rb')
0 files changed, 0 insertions, 0 deletions