aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEmilio Tagua <miloops@gmail.com>2010-11-18 19:28:40 -0300
committerEmilio Tagua <miloops@gmail.com>2010-11-19 19:09:01 -0300
commitb2b5d0237b0dcd859e52510b258e9d66cfc3ad8c (patch)
tree298d5ab3223a54025cfbc401bb3a849b3016a3e7
parentd9c0340ac3da67ae880d3a53c8bca8169daf0f29 (diff)
downloadrails-b2b5d0237b0dcd859e52510b258e9d66cfc3ad8c.tar.gz
rails-b2b5d0237b0dcd859e52510b258e9d66cfc3ad8c.tar.bz2
rails-b2b5d0237b0dcd859e52510b258e9d66cfc3ad8c.zip
No need to specify clear is a method from IM when we are inside IM.
-rw-r--r--activerecord/lib/active_record/identity_map.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/identity_map.rb b/activerecord/lib/active_record/identity_map.rb
index f8b65294f2..438287d3ea 100644
--- a/activerecord/lib/active_record/identity_map.rb
+++ b/activerecord/lib/active_record/identity_map.rb
@@ -37,7 +37,7 @@ module ActiveRecord
yield if block_given?
ensure
self.enabled = old
- ActiveRecord::IdentityMap.clear
+ clear
end
def without