From 39d461703361834c2e51dd9179afce0f8a0a83ff Mon Sep 17 00:00:00 2001 From: kennyj Date: Fri, 10 Feb 2012 20:55:10 +0900 Subject: Fix some warnings on 3-2-stable --- activerecord/lib/active_record/counter_cache.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib/active_record') diff --git a/activerecord/lib/active_record/counter_cache.rb b/activerecord/lib/active_record/counter_cache.rb index c9c46b8d4f..ee0b0c7fab 100644 --- a/activerecord/lib/active_record/counter_cache.rb +++ b/activerecord/lib/active_record/counter_cache.rb @@ -19,7 +19,7 @@ module ActiveRecord 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 -- cgit v1.2.3