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

avoid a proc object

This commit is contained in:
Aaron Patterson 2010-09-22 08:59:54 -07:00
parent fe8a307088
commit 0cf45c850c

View file

@ -1841,7 +1841,7 @@ module ActiveRecord
@reflections = []
@base_records_hash = {}
@base_records_in_order = []
@table_aliases = Hash.new { |aliases, table| aliases[table] = 0 }
@table_aliases = Hash.new(0)
@table_aliases[base.table_name] = 1
build(associations)
end