Skip to content
This repository
Browse code

Merge pull request #4614 from arunagw/unused_var_remove

Unused var removed
  • Loading branch information...
commit 6785001fec80682a4c2b2e64a7ec6521504e22da 2 parents adb7568 + 88eede2
José Valim josevalim authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  activerecord/lib/active_record/counter_cache.rb
2  activerecord/lib/active_record/counter_cache.rb
@@ -19,7 +19,7 @@ def reset_counters(id, *counters)
19 19 counters.each do |association|
20 20 has_many_association = reflect_on_association(association.to_sym)
21 21
22   - expected_name = if has_many_association.options[:as]
  22 + if has_many_association.options[:as]
23 23 has_many_association.options[:as].to_s.classify
24 24 else
25 25 self.name

0 comments on commit 6785001

Please sign in to comment.
Something went wrong with that request. Please try again.