aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/identity_map.rb
diff options
context:
space:
mode:
authorEmilio Tagua <miloops@gmail.com>2010-11-18 09:50:15 -0300
committerEmilio Tagua <miloops@gmail.com>2010-11-19 19:08:59 -0300
commitdd166fab33ef496408565a888e587ec6bab2b02f (patch)
tree2beed9dc247dccd8f86b04a3377627ee8f52cd5c /activerecord/lib/active_record/identity_map.rb
parent2fd48c8d06d3cb96a95692196cb82e85aadd4631 (diff)
downloadrails-dd166fab33ef496408565a888e587ec6bab2b02f.tar.gz
rails-dd166fab33ef496408565a888e587ec6bab2b02f.tar.bz2
rails-dd166fab33ef496408565a888e587ec6bab2b02f.zip
Usa Hash instead of WeakHash.
Diffstat (limited to 'activerecord/lib/active_record/identity_map.rb')
-rw-r--r--activerecord/lib/active_record/identity_map.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/identity_map.rb b/activerecord/lib/active_record/identity_map.rb
index e38524230b..10d9b59864 100644
--- a/activerecord/lib/active_record/identity_map.rb
+++ b/activerecord/lib/active_record/identity_map.rb
@@ -20,8 +20,8 @@ module ActiveRecord
class << self
attr_accessor :enabled
- def current
- Thread.current[:identity_map] ||= Hash.new { |h,k| h[k] = Weakling::WeakHash.new }
+ def repository
+ Thread.current[:identity_map] ||= Hash.new { |h,k| h[k] = {} }
end
def use