diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2014-04-13 15:46:50 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2014-04-13 15:46:50 -0700 |
commit | af549a1ad6692d7e2c756750651f0e1b293f5185 (patch) | |
tree | ac5c8d70f83daa1c7b5d0da38f382f29d00685be /activerecord/lib | |
parent | feb88bda5484c2af13daec768f47d46e9ab4879e (diff) | |
download | rails-af549a1ad6692d7e2c756750651f0e1b293f5185.tar.gz rails-af549a1ad6692d7e2c756750651f0e1b293f5185.tar.bz2 rails-af549a1ad6692d7e2c756750651f0e1b293f5185.zip |
again, read_attribute is public, so just call it
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/associations/has_many_through_association.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/associations/has_many_through_association.rb b/activerecord/lib/active_record/associations/has_many_through_association.rb index c2eff0d8ce..73baefb8e1 100644 --- a/activerecord/lib/active_record/associations/has_many_through_association.rb +++ b/activerecord/lib/active_record/associations/has_many_through_association.rb @@ -18,7 +18,7 @@ module ActiveRecord # SELECT query if you use #length. def size if has_cached_counter? - owner.send(:read_attribute, cached_counter_attribute_name) + owner.read_attribute cached_counter_attribute_name(reflection) elsif loaded? target.size else |