Permalink
Browse files

IdentityMap is enabled by default.

  • Loading branch information...
1 parent a62f722 commit 4f3b8e107ab77848d7982b6a2bde87f4b015a98f @miloops miloops committed Oct 8, 2010
Showing with 4 additions and 2 deletions.
  1. +4 −2 activerecord/lib/active_record/identity_map.rb
View
6 activerecord/lib/active_record/identity_map.rb
@@ -9,9 +9,11 @@ module ActiveRecord
#
# == Configuration
#
- # In order to activate IdentityMap, set <tt>config.active_record.identity_map = true</tt>
+ # In order to disable IdentityMap, set <tt>config.active_record.identity_map = false</tt>
# in your <tt>config/application.rb</tt> file.
#
+ # IdentityMap is enabled by default.
+ #
module IdentityMap
extend ActiveSupport::Concern
@@ -63,7 +65,7 @@ def clear
self.repositories ||= Hash.new
self.current_repository_name ||= :default
- self.enabled = false
+ self.enabled = true
module InstanceMethods
# Reinitialize an Identity Map model object from +coder+.

0 comments on commit 4f3b8e1

Please sign in to comment.