Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #4614 from arunagw/unused_var_remove

Unused var removed
  • Loading branch information...
commit 6785001fec80682a4c2b2e64a7ec6521504e22da 2 parents adb7568 + 88eede2
@josevalim josevalim authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activerecord/lib/active_record/counter_cache.rb
View
2  activerecord/lib/active_record/counter_cache.rb
@@ -19,7 +19,7 @@ def reset_counters(id, *counters)
counters.each do |association|
has_many_association = reflect_on_association(association.to_sym)
- expected_name = if has_many_association.options[:as]
+ if has_many_association.options[:as]
has_many_association.options[:as].to_s.classify
else
self.name
Please sign in to comment.
Something went wrong with that request. Please try again.