aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-09-22 08:59:54 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-09-22 09:01:11 -0700
commit0cf45c850ca33ec3e91560b19578072bffbe1525 (patch)
tree8cf9e091f27e9d8dd1dbb0b5aa29e62b48a71ec7 /activerecord
parentfe8a307088fb0670bb26d7c18b9b9fe5ad7d8a56 (diff)
downloadrails-0cf45c850ca33ec3e91560b19578072bffbe1525.tar.gz
rails-0cf45c850ca33ec3e91560b19578072bffbe1525.tar.bz2
rails-0cf45c850ca33ec3e91560b19578072bffbe1525.zip
avoid a proc object
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/associations.rb2
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