diff options
| author | Graham Turner <turnertgraham@gmail.com> | 2018-04-17 21:56:33 -0400 |
|---|---|---|
| committer | Graham Turner <turnertgraham@gmail.com> | 2018-04-26 12:41:15 -0400 |
| commit | b07b97057fba21cbccca9a81630173a88406175a (patch) | |
| tree | a1c38b265b84e65895ded21259e3ed9ec31fd7a1 /activemodel/lib/active_model/validations/format.rb | |
| parent | 2929d165c23f0d3976425a8e70de77847cc4b872 (diff) | |
| download | rails-b07b97057fba21cbccca9a81630173a88406175a.tar.gz rails-b07b97057fba21cbccca9a81630173a88406175a.tar.bz2 rails-b07b97057fba21cbccca9a81630173a88406175a.zip | |
Loaded associations should not run a new query when size is called
Already loaded associations were running an extra query when `size` was called on the association.
This fix ensures that an extra query is no longer run.
Update tests to use proper methods
Diffstat (limited to 'activemodel/lib/active_model/validations/format.rb')
0 files changed, 0 insertions, 0 deletions
