Permalink
Browse files

avoid a proc object

  • Loading branch information...
1 parent fe8a307 commit 0cf45c850ca33ec3e91560b19578072bffbe1525 @tenderlove tenderlove committed Sep 22, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/associations.rb
@@ -1841,7 +1841,7 @@ def initialize(base, associations, joins)
@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

0 comments on commit 0cf45c8

Please sign in to comment.