Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge remote branch 'rails/master' into identity_map | Emilio Tagua | 2011-02-15 | 1 | -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 Tagua | 2010-11-19 | 1 | -1/+1 |
| | |||||
* | IM enable should be kept in current thread. | Emilio Tagua | 2010-11-19 | 1 | -7/+10 |
| | |||||
* | identity_map name is used for configuration, use IdentityMap to access it. | Emilio Tagua | 2010-11-19 | 1 | -7/+0 |
| | |||||
* | We have to check object class to avoid issues when using STI. | Emilio Tagua | 2010-11-19 | 1 | -1/+2 |
| | |||||
* | IM is disabled by default. | Emilio Tagua | 2010-11-19 | 1 | -2/+2 |
| | |||||
* | No need to check returned object now that weakhash is gone. | Emilio Tagua | 2010-11-19 | 1 | -5/+1 |
| | |||||
* | Usa Hash instead of WeakHash. | Emilio Tagua | 2010-11-19 | 1 | -2/+2 |
| | |||||
* | Revert "Use ActiveSupport::WeakHash for MRI, JRuby prefers Weakling." | Emilio Tagua | 2010-11-19 | 1 | -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 Tagua | 2010-11-19 | 1 | -1/+1 |
| | |||||
* | Added method to IM to remove objects by class and id. Then used it to remove ↵ | Emilio Tagua | 2010-11-19 | 1 | -0/+4 |
| | | | | objects when updating counters. | ||||
* | Don't load IdentityMap middleware if not enabled. Simplify middleware. | Emilio Tagua | 2010-11-19 | 1 | -2/+3 |
| | |||||
* | Don't wrap into identity map if it is disabled. | Emilio Tagua | 2010-11-19 | 1 | -3/+2 |
| | |||||
* | Use block syntax in IdentityMap middleware. | Emilio Tagua | 2010-11-19 | 1 | -3/+8 |
| | |||||
* | Change API name, we don't need any param. | Emilio Tagua | 2010-11-19 | 1 | -1/+1 |
| | |||||
* | Use just one repository and keep it in the current thread. | Emilio Tagua | 2010-11-19 | 1 | -15/+6 |
| | |||||
* | Use IdentityMap middleware to flush map on each request. | Emilio Tagua | 2010-11-19 | 1 | -0/+12 |
| | |||||
* | Use ActiveSupport::WeakHash for MRI, JRuby prefers Weakling. | Emilio Tagua | 2010-11-19 | 1 | -1/+3 |
| | |||||
* | Use hash[:Post][1] style identity maps for each table. | Emilio Tagua | 2010-11-19 | 1 | -5/+9 |
| | |||||
* | IdentityMap is enabled by default. | Emilio Tagua | 2010-11-19 | 1 | -2/+4 |
| | |||||
* | Add docs to Identity Map. | Emilio Tagua | 2010-11-19 | 1 | -0/+13 |
| | |||||
* | Added config syntax to enable/disable identity map: ↵ | Emilio Tagua | 2010-11-19 | 1 | -0/+1 |
| | | | | config.active_record.identity_map = true | ||||
* | Test reorganization | Marcin Raczkowski | 2010-11-19 | 1 | -3/+5 |
| | |||||
* | Separated initialization | Marcin Raczkowski | 2010-11-19 | 1 | -0/+11 |
| | |||||
* | Set Identity Map disabled by default. Enable it for testing. | Emilio Tagua | 2010-11-19 | 1 | -1/+1 |
| | |||||
* | Use strings primary keys in identity map keys to avoid problems with casting ↵ | Emilio Tagua | 2010-11-19 | 1 | -3/+3 |
| | | | | and also allow strings primary keys. | ||||
* | Use yield instead block argument. | Emilio Tagua | 2010-11-19 | 1 | -4/+4 |
| | |||||
* | IdentityMap - Adding Weakling and IM Base as concern | Marcin Raczkowski | 2010-11-19 | 1 | -0/+64 |