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:
parent
adb75680db
commit
88eede2929
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue