diff options
author | José Valim <jose.valim@gmail.com> | 2012-01-23 07:05:01 -0800 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2012-01-23 07:05:01 -0800 |
commit | 6785001fec80682a4c2b2e64a7ec6521504e22da (patch) | |
tree | 8d839aba542353f3caaa0774b02421b15a82222c /activerecord | |
parent | adb75680db377bf9026dd26f87200267eb786a2d (diff) | |
parent | 88eede292945895f8baf59d1612dcc1fce8b7369 (diff) | |
download | rails-6785001fec80682a4c2b2e64a7ec6521504e22da.tar.gz rails-6785001fec80682a4c2b2e64a7ec6521504e22da.tar.bz2 rails-6785001fec80682a4c2b2e64a7ec6521504e22da.zip |
Merge pull request #4614 from arunagw/unused_var_remove
Unused var removed
Diffstat (limited to 'activerecord')
-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 |