diff options
author | thedarkone <thedarkone2@gmail.com> | 2014-03-30 20:52:01 +0200 |
---|---|---|
committer | thedarkone <thedarkone2@gmail.com> | 2014-03-30 20:52:01 +0200 |
commit | 055942d6c526de3a037e76e14954229888668515 (patch) | |
tree | 6c0c34445f4c447078f445f1cf35994af7f35cae /activerecord/lib/active_record/migration.rb | |
parent | de32d972bfde8871f7c1a4621f2223ea9b6715b2 (diff) | |
download | rails-055942d6c526de3a037e76e14954229888668515.tar.gz rails-055942d6c526de3a037e76e14954229888668515.tar.bz2 rails-055942d6c526de3a037e76e14954229888668515.zip |
Simplify Preloader#grouped_records code.
The new method relies on AR::Associations::Association knowing about both reflection and a model class.
AR::Base#association now raises a descriptive error when trying to access non-existent associations. Previously it would blow up with a confusing NoMethodError: undefined method `association_class' for nil:NilClass.
Diffstat (limited to 'activerecord/lib/active_record/migration.rb')
0 files changed, 0 insertions, 0 deletions