Permalink
Browse files

Remove has_cached_counter? and cached_counter_attribute_name from Has…

…ManyThroughAssociation, as the exact same methods are inherited from HasManyAssociation
  • Loading branch information...
1 parent 99db97a commit 739ea1fbfe704cdb25e9c2a7f0911ade7431e7f4 @jonleighton jonleighton committed Dec 23, 2010
Showing with 0 additions and 8 deletions.
  1. +0 −8 activerecord/lib/active_record/associations/has_many_through_association.rb
@@ -63,14 +63,6 @@ def find_target
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

0 comments on commit 739ea1f

Please sign in to comment.