Permalink
Browse files

Revert "Use ActiveSupport::WeakHash for MRI, JRuby prefers Weakling."

This reverts commit 3cddebc2402eb71f2806e8b2119dc3efdceb4662.

Conflicts:

	activerecord/lib/active_record/identity_map.rb
	activesupport/lib/active_support/weak_hash.rb
  • Loading branch information...
1 parent 421643b commit 2fd48c8d06d3cb96a95692196cb82e85aadd4631 @miloops miloops committed Nov 18, 2010
Showing with 2 additions and 4 deletions.
  1. +2 −4 activerecord/lib/active_record/identity_map.rb
View
6 activerecord/lib/active_record/identity_map.rb
@@ -1,5 +1,3 @@
-require "active_support/weak_hash"
-
module ActiveRecord
# = Active Record Identity Map
#
@@ -22,8 +20,8 @@ module IdentityMap
class << self
attr_accessor :enabled
- def repository
- Thread.current[:identity_map] ||= Hash.new { |h,k| h[k] = ActiveSupport::WeakHash.new }
+ def current
+ Thread.current[:identity_map] ||= Hash.new { |h,k| h[k] = Weakling::WeakHash.new }
end
def use

0 comments on commit 2fd48c8

Please sign in to comment.