aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/counter_cache.rb
diff options
context:
space:
mode:
authorkennyj <kennyj@gmail.com>2012-02-10 20:55:10 +0900
committerkennyj <kennyj@gmail.com>2012-02-21 12:43:41 +0900
commit39d461703361834c2e51dd9179afce0f8a0a83ff (patch)
tree71a06a722a6259f946c3eaeca76dcb9c0c8d0384 /activerecord/lib/active_record/counter_cache.rb
parentb80d8f71112279f989ad3accbfed277a25cedd57 (diff)
downloadrails-39d461703361834c2e51dd9179afce0f8a0a83ff.tar.gz
rails-39d461703361834c2e51dd9179afce0f8a0a83ff.tar.bz2
rails-39d461703361834c2e51dd9179afce0f8a0a83ff.zip
Fix some warnings on 3-2-stable
Diffstat (limited to 'activerecord/lib/active_record/counter_cache.rb')
-rw-r--r--activerecord/lib/active_record/counter_cache.rb2
1 files changed, 1 insertions, 1 deletions
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