aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/identity_map.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/identity_map.rb b/activerecord/lib/active_record/identity_map.rb
index d7ba1d953c..9f95685816 100644
--- a/activerecord/lib/active_record/identity_map.rb
+++ b/activerecord/lib/active_record/identity_map.rb
@@ -1,3 +1,5 @@
+require "active_support/weak_hash"
+
module ActiveRecord
# = Active Record Identity Map
#
@@ -23,7 +25,7 @@ module ActiveRecord
attr_accessor :enabled
def current
- repositories[current_repository_name] ||= Hash.new { |h,k| h[k] = Weakling::WeakHash.new }
+ repositories[current_repository_name] ||= Hash.new { |h,k| h[k] = ActiveSupport::WeakHash.new }
end
def with_repository(name = :default)