Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | refactor instantiate method in base, so we remove nesting if's which make ↵ | Arturo Pie | 2012-03-29 | 1 | -3/+3 |
| | | | | | | | | the code harder to read. Minor changes to contain_all_columns in IdentityMap. Conflicts: activerecord/lib/active_record/base.rb | ||||
* | refactor the checking of the attributes of the record in IdentityMap#add, so ↵ | Arturo Pie | 2012-03-29 | 1 | -1/+7 |
| | | | | it's more readable | ||||
* | Do not add record to identity map if the record doesn't have values for all ↵ | Arturo Pie | 2012-03-29 | 1 | -1/+1 |
| | | | | the columns, so we don't get 'MissingAttributeError' later when trying to access other fields of the same record. | ||||
* | Fix build when IM=true | Jon Leighton | 2011-12-23 | 1 | -4/+3 |
| | |||||
* | Fix typos in IM documentation | Vijay Dev | 2011-05-10 | 1 | -2/+2 |
| | |||||
* | Document identity map inconsistency with associations, closes #474. | José Valim | 2011-05-10 | 1 | -1/+28 |
| | |||||
* | removed an unneed AS::Concern from AR::IdentityMap | Josh Kalderimis | 2011-05-09 | 1 | -2/+1 |
| | |||||
* | Revert "Revert the merge because tests did not pass." | José Valim | 2011-05-07 | 1 | -5/+5 |
| | | | | This reverts commit 886818d2bab40585c0cea763002ffc16917dd0b3. | ||||
* | Revert the merge because tests did not pass. | José Valim | 2011-05-06 | 1 | -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 Millan | 2011-05-06 | 1 | -5/+5 |
| | | | | identity map. Identity map now considers the inheritance when creating the caching keys | ||||
* | make sure IM repository is cleared after body is closed | Aaron Patterson | 2011-05-03 | 1 | -0/+1 |
| | |||||
* | proxying the body in the IM middleware so that IM is available for streaming ERb | Aaron Patterson | 2011-05-03 | 1 | -3/+21 |
| | |||||
* | Make the identity map use the instrumentation infrastructure so we can style ↵ | David Heinemeier Hansson | 2011-05-01 | 1 | -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 Tagua | 2011-04-04 | 1 | -1/+8 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | No need to have reinit_with inside an InstanceMethods module. | Emilio Tagua | 2011-02-18 | 1 | -17/+15 |
| | |||||
* | 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 |