1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Unused var removed

This commit is contained in:
Arun Agrawal 2012-01-23 10:02:41 -05:00
parent adb75680db
commit 88eede2929

View file

@ -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