diff options
author | Jon Leighton <j@jonathanleighton.com> | 2010-12-23 20:00:54 +0000 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2010-12-26 18:46:58 +0000 |
commit | 739ea1fbfe704cdb25e9c2a7f0911ade7431e7f4 (patch) | |
tree | 64bf982885f2a6c86926e531f17a9bdac7f707e5 /activerecord/lib | |
parent | 99db97a32237876f65468aa116441a621b80cc01 (diff) | |
download | rails-739ea1fbfe704cdb25e9c2a7f0911ade7431e7f4.tar.gz rails-739ea1fbfe704cdb25e9c2a7f0911ade7431e7f4.tar.bz2 rails-739ea1fbfe704cdb25e9c2a7f0911ade7431e7f4.zip |
Remove has_cached_counter? and cached_counter_attribute_name from HasManyThroughAssociation, as the exact same methods are inherited from HasManyAssociation
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/associations/has_many_through_association.rb | 8 |
1 files changed, 0 insertions, 8 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 358ba2754b..4a3f53d70f 100644 --- a/activerecord/lib/active_record/associations/has_many_through_association.rb +++ b/activerecord/lib/active_record/associations/has_many_through_association.rb @@ -63,14 +63,6 @@ module ActiveRecord scoped.all end - def has_cached_counter? - @owner.attribute_present?(cached_counter_attribute_name) - end - - def cached_counter_attribute_name - "#{@reflection.name}_count" - end - # NOTE - not sure that we can actually cope with inverses here def we_can_set_the_inverse_on_this?(record) false |