Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | | | | | | | | | | | Merge branch 'master' of git://github.com/lifo/docrails | Xavier Noria | 2010-11-23 | 2 | -2/+3 | |
| |\ \ \ \ \ \ \ \ \ \ \ | ||||||
| | * | | | | | | | | | | | fix typo | Ray Baxter | 2010-11-22 | 1 | -1/+1 | |
| | | | | | | | | | | | | | ||||||
| | * | | | | | | | | | | | Merge branch 'master' of github.com:lifo/docrails | Neeraj Singh | 2010-11-22 | 47 | -273/+862 | |
| | |\ \ \ \ \ \ \ \ \ \ \ | ||||||
| | * | | | | | | | | | | | | Revert "unscoped takes care of named_scopes too" | Neeraj Singh | 2010-11-22 | 1 | -1/+2 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 126fbd7ed8a310bf940414c1b7ddab06b03d400e. | |||||
| | * | | | | | | | | | | | | unscoped takes care of named_scopes too | Neeraj Singh | 2010-11-17 | 1 | -2/+1 | |
| | | | | | | | | | | | | | | ||||||
| * | | | | | | | | | | | | | Refactor && simplify count_records. | Emilio Tagua | 2010-11-23 | 1 | -5/+1 | |
| | | | | | | | | | | | | | | ||||||
| * | | | | | | | | | | | | | No need to create a variables to use them once. | Emilio Tagua | 2010-11-24 | 1 | -5/+2 | |
| | | | | | | | | | | | | | | ||||||
| * | | | | | | | | | | | | | Don't create local vars. | Emilio Tagua | 2010-11-24 | 1 | -4/+1 | |
| | | | | | | | | | | | | | | ||||||
| * | | | | | | | | | | | | | Avoid creating local var. | Emilio Tagua | 2010-11-24 | 1 | -2/+1 | |
| | | | | | | | | | | | | | | ||||||
| * | | | | | | | | | | | | | Remove explicit return and avoid creating local var. | Emilio Tagua | 2010-11-24 | 1 | -2/+1 | |
| | | | | | | | | | | | | | | ||||||
| * | | | | | | | | | | | | | Remove explicit return. | Emilio Tagua | 2010-11-24 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | ||||||
| * | | | | | | | | | | | | | Use params default. | Emilio Tagua | 2010-11-24 | 1 | -2/+1 | |
| | | | | | | | | | | | | | | ||||||
| * | | | | | | | | | | | | | Remove unneeded local var. | Emilio Tagua | 2010-11-24 | 1 | -2/+1 | |
| | | | | | | | | | | | | | | ||||||
| * | | | | | | | | | | | | | Remove uneeded local var definition. | Emilio Tagua | 2010-11-24 | 1 | -2/+1 | |
| | | | | | | | | | | | | | | ||||||
| * | | | | | | | | | | | | | Remove confusing parenthesis. | Emilio Tagua | 2010-11-24 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | ||||||
| * | | | | | | | | | | | | | No need to define a local var here. | Emilio Tagua | 2010-11-24 | 1 | -2/+1 | |
| | | | | | | | | | | | | | | ||||||
| * | | | | | | | | | | | | | skip cloning if arguments are blank | Aaron Patterson | 2010-11-22 | 1 | -8/+22 | |
| | | | | | | | | | | | | | | ||||||
| * | | | | | | | | | | | | | removing space error | Aaron Patterson | 2010-11-22 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | ||||||
| * | | | | | | | | | | | | | removing unused variables | Aaron Patterson | 2010-11-22 | 6 | -12/+7 | |
| | | | | | | | | | | | | | | ||||||
| * | | | | | | | | | | | | | Removed ids_in_list_limit in favor of in_clause_length defined in ↵ | Alex Rothenberg | 2010-11-23 | 3 | -14/+9 | |
| | |/ / / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | database_limits.rb | |||||
| * | | | | | | | | | | | | unscoped takes care of named_scopes too | Neeraj Singh | 2010-11-21 | 1 | -2/+1 | |
| | | | | | | | | | | | | | ||||||
| * | | | | | | | | | | | | removed an AR method which wasn't used internally, had no tests, and had no docs | Josh Kalderimis | 2010-11-20 | 1 | -4/+0 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
| * | | | | | | | | | | | | class inheritable attributes is used no more! all internal use of class ↵ | Josh Kalderimis | 2010-11-20 | 10 | -44/+59 | |
| | |/ / / / / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | inheritable has been changed to class_attribute. class inheritable attributes has been deprecated. Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
| * | | | | | | | | | | | do not require ruby-debug automatically. please require it if you have ↵ | Aaron Patterson | 2010-11-19 | 1 | -5/+0 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | declared it as a dependency | |||||
* | | | | | | | | | | | | Clean IdentityMap before running each benchmark. | Emilio Tagua | 2010-11-19 | 1 | -0/+18 | |
| | | | | | | | | | | | | ||||||
* | | | | | | | | | | | | 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 | |
| | | | | | | | | | | | | ||||||
* | | | | | | | | | | | | "there is no need to store this option just for initialization" José Valim ↵ | Emilio Tagua | 2010-11-19 | 2 | -9/+5 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dixit. | |||||
* | | | | | | | | | | | | identity_map name is used for configuration, use IdentityMap to access it. | Emilio Tagua | 2010-11-19 | 3 | -11/+7 | |
| | | | | | | | | | | | | ||||||
* | | | | | | | | | | | | We have to check object class to avoid issues when using STI. | Emilio Tagua | 2010-11-19 | 1 | -1/+2 | |
| | | | | | | | | | | | | ||||||
* | | | | | | | | | | | | Enable IM in performance script unless IM=disabled is set when running it. | Emilio Tagua | 2010-11-19 | 1 | -0/+2 | |
| | | | | | | | | | | | | ||||||
* | | | | | | | | | | | | IM is disabled by default. | Emilio Tagua | 2010-11-19 | 1 | -2/+2 | |
| | | | | | | | | | | | | ||||||
* | | | | | | | | | | | | Add test using identity map and select. | Emilio Tagua | 2010-11-19 | 1 | -0/+14 | |
| | | | | | | | | | | | | ||||||
* | | | | | | | | | | | | 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 | |||||
* | | | | | | | | | | | | 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 | |
| | | | | | | | | | | | | ||||||
* | | | | | | | | | | | | Update number of queries executed instead of avoiding IM. | Emilio Tagua | 2010-11-19 | 1 | -9/+5 | |
| | | | | | | | | | | | | ||||||
* | | | | | | | | | | | | Don't change tests, fix code: if locking is enabled skip IM. | Emilio Tagua | 2010-11-19 | 2 | -14/+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. | |||||
* | | | | | | | | | | | | Clear IdentityMap before continue this test, we can do this here because ↵ | Emilio Tagua | 2010-11-19 | 1 | -0/+1 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | store_full_sti_class is not supposed to change during "runtime". | |||||
* | | | | | | | | | | | | Call super setup in this test. | Emilio Tagua | 2010-11-19 | 1 | -1/+2 | |
| | | | | | | | | | | | | ||||||
* | | | | | | | | | | | | Fix number of queries performed in tests. | Emilio Tagua | 2010-11-19 | 1 | -6/+6 | |
| | | | | | | | | | | | | ||||||
* | | | | | | | | | | | | Ups, forgot to remove one conflict tag from previous commit. | Emilio Tagua | 2010-11-19 | 1 | -1/+0 | |
| | | | | | | | | | | | | ||||||
* | | | | | | | | | | | | Revert "IdentityMap - Adjustments to test cases" | Emilio Tagua | 2010-11-19 | 7 | -35/+14 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 4db9dca55e3acc2c59f252eb83ecb83db5f4b81b. Conflicts: activerecord/test/cases/identity_map_test.rb |