Permalink
Browse files

Remove not used if..else clause

Related to #4614.
  • Loading branch information...
1 parent e3f26f0 commit 4fc49663f52c2e93dc0a001263abe7ab253b4d7c @carlosantoniodasilva carlosantoniodasilva committed Jan 23, 2012
Showing with 0 additions and 6 deletions.
  1. +0 −6 activerecord/lib/active_record/counter_cache.rb
@@ -19,12 +19,6 @@ def reset_counters(id, *counters)
counters.each do |association|
has_many_association = reflect_on_association(association.to_sym)
- if has_many_association.options[:as]
- has_many_association.options[:as].to_s.classify
- else
- self.name
- end
-
foreign_key = has_many_association.foreign_key.to_s
child_class = has_many_association.klass
belongs_to = child_class.reflect_on_all_associations(:belongs_to)

0 comments on commit 4fc4966

Please sign in to comment.