diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-22 08:59:54 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-22 09:01:11 -0700 |
commit | 0cf45c850ca33ec3e91560b19578072bffbe1525 (patch) | |
tree | 8cf9e091f27e9d8dd1dbb0b5aa29e62b48a71ec7 /activerecord/lib/active_record | |
parent | fe8a307088fb0670bb26d7c18b9b9fe5ad7d8a56 (diff) | |
download | rails-0cf45c850ca33ec3e91560b19578072bffbe1525.tar.gz rails-0cf45c850ca33ec3e91560b19578072bffbe1525.tar.bz2 rails-0cf45c850ca33ec3e91560b19578072bffbe1525.zip |
avoid a proc object
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/associations.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |