Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | | 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 | |||||
* | | | Read from config, because AR may not be loaded yet. | Emilio Tagua | 2010-11-19 | 1 | -1/+1 | |
| | | | ||||||
* | | | Set IdentityMap disabled by default. | Emilio Tagua | 2010-11-19 | 1 | -1/+1 | |
| | | | ||||||
* | | | Refactor associations cache removal from IM. (ht: Aaron Patterson) | Emilio Tagua | 2010-11-19 | 1 | -4/+4 | |
| | | | ||||||
* | | | Don't change tests, fix code: if locking is enabled skip IM. | Emilio Tagua | 2010-11-19 | 1 | -1/+1 | |
| | | | ||||||
* | | | Remove associated objects from IM when clearing them from association cache. | Emilio Tagua | 2010-11-19 | 1 | -0/+6 | |
| | | | ||||||
* | | | Test setup method should clean up IM. | Emilio Tagua | 2010-11-19 | 1 | -0/+4 | |
| | | | ||||||
* | | | Query objects if readonly_value is false, skip them only if nil. | Emilio Tagua | 2010-11-19 | 1 | -3/+3 | |
| | | | ||||||
* | | | Added method to IM to remove objects by class and id. Then used it to remove ↵ | Emilio Tagua | 2010-11-19 | 2 | -0/+6 | |
| | | | | | | | | | | | | objects when updating counters. | |||||
* | | | Don't load IdentityMap middleware if not enabled. Simplify middleware. | Emilio Tagua | 2010-11-19 | 2 | -5/+8 | |
| | | | ||||||
* | | | Don't wrap into identity map if it is disabled. | Emilio Tagua | 2010-11-19 | 1 | -3/+2 | |
| | | | ||||||
* | | | Bring back "Reject attributes even if association is loaded" after rebasing ↵ | Emilio Tagua | 2010-11-19 | 1 | -3/+10 | |
| | | | | | | | | | | | | to master. | |||||
* | | | 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 | 2 | -16/+6 | |
| | | | ||||||
* | | | Use association_class method which returns the reflection class, this method ↵ | Emilio Tagua | 2010-11-19 | 1 | -2/+6 | |
| | | | | | | | | | | | | is redefined in polymorphic belongs to associations. | |||||
* | | | Use IdentityMap middleware to flush map on each request. | Emilio Tagua | 2010-11-19 | 2 | -0/+15 | |
| | | | ||||||
* | | | Check if constant is defined in AR, if not this can cause errors when using ↵ | Emilio Tagua | 2010-11-19 | 1 | -1/+1 | |
| | | | | | | | | | | | | polymorphic associations. | |||||
* | | | Weakling is only required for JRuby. | Emilio Tagua | 2010-11-19 | 1 | -1/+0 | |
| | | | ||||||
* | | | 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 | 3 | -9/+20 | |
| | | | ||||||
* | | | 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 | 2 | -0/+2 | |
| | | | | | | | | | | | | config.active_record.identity_map = true | |||||
* | | | Reeject attributes even if association is loaded | Marcin Raczkowski | 2010-11-19 | 1 | -1/+0 | |
| | | | ||||||
* | | | Test reorganization | Marcin Raczkowski | 2010-11-19 | 1 | -3/+5 | |
| | | | ||||||
* | | | Separated initialization | Marcin Raczkowski | 2010-11-19 | 2 | -24/+20 | |
| | | | ||||||
* | | | 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. | |||||
* | | | implicit_readonly is not set until records are loaded, just check ↵ | Emilio Tagua | 2010-11-19 | 1 | -3/+2 | |
| | | | | | | | | | | | | readonly_value and then set readonly status. | |||||
* | | | Don't use identity map if loading readonly records, this will prevent ↵ | Emilio Tagua | 2010-11-19 | 1 | -2/+9 | |
| | | | | | | | | | | | | changing readonly status on already loaded records. | |||||
* | | | Remove associated object from identity map when reloading. | Emilio Tagua | 2010-11-19 | 1 | -0/+1 | |
| | | | ||||||
* | | | Associated objects are assigned from identity map if enabled and contains ↵ | Emilio Tagua | 2010-11-19 | 1 | -2/+5 | |
| | | | | | | | | | | | | associated object. | |||||
* | | | Remove objects from identity map if save! failed, otherwise finding again ↵ | Emilio Tagua | 2010-11-19 | 1 | -0/+3 | |
| | | | | | | | | | | | | the same record will have invalid attributes. | |||||
* | | | Remove objects from identity map if save failed, otherwise finding again the ↵ | Emilio Tagua | 2010-11-19 | 1 | -0/+2 | |
| | | | | | | | | | | | | same record will have invalid attributes. | |||||
* | | | Use yield instead block argument. | Emilio Tagua | 2010-11-19 | 1 | -4/+4 | |
| | | | ||||||
* | | | Disable identity map when loading associated records from habtm. | Emilio Tagua | 2010-11-19 | 1 | -2/+4 | |
| | | | ||||||
* | | | Prevent pushing duplicated records when using identity map. | Emilio Tagua | 2010-11-19 | 1 | -1/+1 | |
| | | | ||||||
* | | | Remove associated records from identity map if any raised an unexpected ↵ | Emilio Tagua | 2010-11-19 | 1 | -14/+19 | |
| | | | | | | | | | | | | exception. | |||||
* | | | Use identity mapper only if enabled. | Emilio Tagua | 2010-11-19 | 1 | -3/+3 | |
| | | | ||||||
* | | | Remove object from identity map if transaction failed. | Emilio Tagua | 2010-11-19 | 1 | -0/+1 | |
| | | | ||||||
* | | | IdentityMap - Fixes problem with dirty attributes | Marcin Raczkowski | 2010-11-19 | 1 | -1/+2 | |
| | | | ||||||
* | | | Looping prevention for autosave relations on validation and creation | Marcin Raczkowski | 2010-11-19 | 1 | -3/+20 | |
| | | | ||||||
* | | | IdentityMap - adding and removing of records on create/update | Marcin Raczkowski | 2010-11-19 | 2 | -5/+43 | |
| | | | ||||||
* | | | IdentityMap - misc fixes | Marcin Raczkowski | 2010-11-19 | 2 | -1/+4 | |
| | | | | | | | | | | | | | | | | | | - Added IdentityMap to be included into AR::Base - Fixed bug with Mysql namespace missing when running tests only for sqlite - Added sqlite as default connection | |||||
* | | | IdentityMap - Tests for IM | Marcin Raczkowski | 2010-11-19 | 1 | -0/+7 | |
| | | | ||||||
* | | | IdentityMap - Adding Weakling and IM Base as concern | Marcin Raczkowski | 2010-11-19 | 2 | -0/+66 | |
|/ / | ||||||
* | | adding documentation for reversible migrations | Aaron Patterson | 2010-11-19 | 2 | -1/+43 | |
| | | ||||||
* | | invertable migrations are working | Aaron Patterson | 2010-11-19 | 2 | -2/+20 | |
| | |