diff options
author | Emilio Tagua <miloops@gmail.com> | 2010-10-08 12:26:27 -0300 |
---|---|---|
committer | Emilio Tagua <miloops@gmail.com> | 2010-11-19 19:08:12 -0300 |
commit | 4f3b8e107ab77848d7982b6a2bde87f4b015a98f (patch) | |
tree | c4ff9ca301cf81e31052282e802c4e56ec7aa0ed /activerecord/lib | |
parent | a62f7220bbad1678dbf114e2f252172e76b44bab (diff) | |
download | rails-4f3b8e107ab77848d7982b6a2bde87f4b015a98f.tar.gz rails-4f3b8e107ab77848d7982b6a2bde87f4b015a98f.tar.bz2 rails-4f3b8e107ab77848d7982b6a2bde87f4b015a98f.zip |
IdentityMap is enabled by default.
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/identity_map.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/identity_map.rb b/activerecord/lib/active_record/identity_map.rb index 94eece9132..d605bde5b2 100644 --- a/activerecord/lib/active_record/identity_map.rb +++ b/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 @@ module ActiveRecord 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+. |