diff options
author | kennyj <kennyj@gmail.com> | 2012-02-10 20:55:10 +0900 |
---|---|---|
committer | kennyj <kennyj@gmail.com> | 2012-02-21 12:43:41 +0900 |
commit | 39d461703361834c2e51dd9179afce0f8a0a83ff (patch) | |
tree | 71a06a722a6259f946c3eaeca76dcb9c0c8d0384 /activerecord/lib | |
parent | b80d8f71112279f989ad3accbfed277a25cedd57 (diff) | |
download | rails-39d461703361834c2e51dd9179afce0f8a0a83ff.tar.gz rails-39d461703361834c2e51dd9179afce0f8a0a83ff.tar.bz2 rails-39d461703361834c2e51dd9179afce0f8a0a83ff.zip |
Fix some warnings on 3-2-stable
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/counter_cache.rb | 2 |
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 |