aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/identity_map.rb
Commit message (Collapse)AuthorAgeFilesLines
* Fix typos in IM documentationVijay Dev2011-05-101-2/+2
|
* Document identity map inconsistency with associations, closes #474.José Valim2011-05-101-1/+28
|
* removed an unneed AS::Concern from AR::IdentityMapJosh Kalderimis2011-05-091-2/+1
|
* Revert "Revert the merge because tests did not pass."José Valim2011-05-071-5/+5
| | | | This reverts commit 886818d2bab40585c0cea763002ffc16917dd0b3.
* Revert the merge because tests did not pass.José Valim2011-05-061-5/+5
| | | | | | | Revert "Merge pull request #423 from richardiux/master" This reverts commit b8f08c4ea7c56e34e3e17c9006f1ae6d9f7504ee, reversing changes made to fd9df1b1dd1196c2233835e25a6a38956e9e3959.
* Adding base method symbolized_sti_name to activerecord base to be used on ↵Richard Millan2011-05-061-5/+5
| | | | identity map. Identity map now considers the inheritance when creating the caching keys
* make sure IM repository is cleared after body is closedAaron Patterson2011-05-031-0/+1
|
* proxying the body in the IM middleware so that IM is available for streaming ERbAaron Patterson2011-05-031-3/+21
|
* Make the identity map use the instrumentation infrastructure so we can style ↵David Heinemeier Hansson2011-05-011-6/+9
| | | | the messages nicely with colors (FIXME: Can someone look into why the test is not working?)
* Add log message when loading records from Identity Map.Emilio Tagua2011-04-041-1/+8
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* No need to have reinit_with inside an InstanceMethods module.Emilio Tagua2011-02-181-17/+15
|
* Merge remote branch 'rails/master' into identity_mapEmilio Tagua2011-02-151-1/+3
| | | | | | | | | | | | Conflicts: activerecord/examples/performance.rb activerecord/lib/active_record/association_preload.rb activerecord/lib/active_record/associations.rb activerecord/lib/active_record/associations/association_proxy.rb activerecord/lib/active_record/autosave_association.rb activerecord/lib/active_record/base.rb activerecord/lib/active_record/nested_attributes.rb activerecord/test/cases/relations_test.rb
* No need to specify clear is a method from IM when we are inside IM.Emilio Tagua2010-11-191-1/+1
|
* IM enable should be kept in current thread.Emilio Tagua2010-11-191-7/+10
|
* identity_map name is used for configuration, use IdentityMap to access it.Emilio Tagua2010-11-191-7/+0
|
* We have to check object class to avoid issues when using STI.Emilio Tagua2010-11-191-1/+2
|
* IM is disabled by default.Emilio Tagua2010-11-191-2/+2
|
* No need to check returned object now that weakhash is gone.Emilio Tagua2010-11-191-5/+1
|
* Usa Hash instead of WeakHash.Emilio Tagua2010-11-191-2/+2
|
* Revert "Use ActiveSupport::WeakHash for MRI, JRuby prefers Weakling."Emilio Tagua2010-11-191-4/+2
| | | | | | | | | This reverts commit 3cddebc2402eb71f2806e8b2119dc3efdceb4662. Conflicts: activerecord/lib/active_record/identity_map.rb activesupport/lib/active_support/weak_hash.rb
* Set IdentityMap disabled by default.Emilio Tagua2010-11-191-1/+1
|
* Added method to IM to remove objects by class and id. Then used it to remove ↵Emilio Tagua2010-11-191-0/+4
| | | | objects when updating counters.
* Don't load IdentityMap middleware if not enabled. Simplify middleware.Emilio Tagua2010-11-191-2/+3
|
* Don't wrap into identity map if it is disabled.Emilio Tagua2010-11-191-3/+2
|
* Use block syntax in IdentityMap middleware.Emilio Tagua2010-11-191-3/+8
|
* Change API name, we don't need any param.Emilio Tagua2010-11-191-1/+1
|
* Use just one repository and keep it in the current thread.Emilio Tagua2010-11-191-15/+6
|
* Use IdentityMap middleware to flush map on each request.Emilio Tagua2010-11-191-0/+12
|
* Use ActiveSupport::WeakHash for MRI, JRuby prefers Weakling.Emilio Tagua2010-11-191-1/+3
|
* Use hash[:Post][1] style identity maps for each table.Emilio Tagua2010-11-191-5/+9
|
* IdentityMap is enabled by default.Emilio Tagua2010-11-191-2/+4
|
* Add docs to Identity Map.Emilio Tagua2010-11-191-0/+13
|
* Added config syntax to enable/disable identity map: ↵Emilio Tagua2010-11-191-0/+1
| | | | config.active_record.identity_map = true
* Test reorganizationMarcin Raczkowski2010-11-191-3/+5
|
* Separated initializationMarcin Raczkowski2010-11-191-0/+11
|
* Set Identity Map disabled by default. Enable it for testing.Emilio Tagua2010-11-191-1/+1
|
* Use strings primary keys in identity map keys to avoid problems with casting ↵Emilio Tagua2010-11-191-3/+3
| | | | and also allow strings primary keys.
* Use yield instead block argument.Emilio Tagua2010-11-191-4/+4
|
* IdentityMap - Adding Weakling and IM Base as concernMarcin Raczkowski2010-11-191-0/+64