From 0cf45c850ca33ec3e91560b19578072bffbe1525 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Wed, 22 Sep 2010 08:59:54 -0700 Subject: avoid a proc object --- activerecord/lib/active_record/associations.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord') diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb index 72d6ac756f..565ebf8197 100644 --- a/activerecord/lib/active_record/associations.rb +++ b/activerecord/lib/active_record/associations.rb @@ -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 -- cgit v1.2.3