Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | | | | just dup the spec now that it will deep copy | Aaron Patterson | 2011-12-30 | 1 | -2/+1 | |
| | | | | | ||||||
* | | | | | connection specification will deep copy the config | Aaron Patterson | 2011-12-30 | 1 | -0/+12 | |
| | | | | | ||||||
* | | | | | each connection pool has a reaper | Aaron Patterson | 2011-12-30 | 1 | -0/+12 | |
| | | | | | ||||||
* | | | | | introduce a timer class for reaping connections | Aaron Patterson | 2011-12-30 | 1 | -0/+46 | |
| | | | | | ||||||
* | | | | | raise a pull full error when the connection pool is full and no connection ↵ | Aaron Patterson | 2011-12-30 | 1 | -0/+8 | |
| | | | | | | | | | | | | | | | | | | | | can be obtained | |||||
* | | | | | connections are only removed if they are inactve | Aaron Patterson | 2011-12-30 | 1 | -2/+18 | |
| | | | | | ||||||
* | | | | | connections can be reaped via the `reap` method | Aaron Patterson | 2011-12-30 | 1 | -0/+15 | |
| | | | | | ||||||
* | | | | | deal with removing connections associated with the current thread | Aaron Patterson | 2011-12-30 | 1 | -0/+8 | |
| | | | | | ||||||
* | | | | | connections can be removed from the pool | Aaron Patterson | 2011-12-30 | 1 | -0/+19 | |
| | | | | | ||||||
* | | | | | connections must be checked in at the end of a thread | Aaron Patterson | 2011-12-30 | 1 | -14/+3 | |
| | | | | | ||||||
* | | | | | Test case: fixture table name is defined in model | Alexey Muranov | 2011-12-30 | 1 | -0/+5 | |
| | | | | | ||||||
* | | | | | Test fixtures with custom model and table names | Alexey Muranov | 2011-12-30 | 7 | -0/+60 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test using fixtures with random names and model names, that is not following naming conventions but using set_fixture_class instead. It is expected that the table name be defined in the model, but this is not explicitly tested here. This will need to be fixed. | |||||
* | | | | | Deprecate implicit eager loading. Closes #950. | Jon Leighton | 2011-12-29 | 21 | -94/+162 | |
| | | | | | ||||||
* | | | | | Merge pull request #4216 from edgecase/master_fix_reorder_with_limited_ids | Aaron Patterson | 2011-12-28 | 1 | -0/+10 | |
|\ \ \ \ \ | | | | | | | | | | | | | allow reorder to affect eager loading correctly | |||||
| * | | | | | allow reorder to affect eager loading correctly | Matt Jones + Scott Walker | 2011-12-28 | 1 | -0/+10 | |
| | | | | | | ||||||
* | | | | | | Fix CI | Jon Leighton | 2011-12-28 | 5 | -25/+25 | |
| | | | | | | ||||||
* | | | | | | Support establishing connection on ActiveRecord::Model. | Jon Leighton | 2011-12-28 | 9 | -14/+31 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the 'top level' connection, inherited by any models that include ActiveRecord::Model or inherit from ActiveRecord::Base. | |||||
* | | | | | | Support configuration on ActiveRecord::Model. | Jon Leighton | 2011-12-28 | 2 | -27/+0 | |
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The problem: We need to be able to specify configuration in a way that can be inherited to models that include ActiveRecord::Model. So it is no longer sufficient to put 'top level' config on ActiveRecord::Base, but we do want configuration specified on ActiveRecord::Base and descendants to continue to work. So we need something like class_attribute that can be defined on a module but that is inherited when ActiveRecord::Model is included. The solution: added ActiveModel::Configuration module which provides a config_attribute macro. It's a bit specific hence I am not putting this in Active Support or making it a 'public API' at present. | |||||
* | | | | | Fix a fixtures test case with table prefix/suffix | Alexey Muranov | 2011-12-27 | 2 | -23/+79 | |
| | | | | | | | | | | | | | | | | | | | | Make sure the table name of a model is reset in a test case after assigning ActiveRecord::Base.table_name_prefix and ActiveRecord::Base.table_name_suffix. | |||||
* | | | | | remove checks for encodings availability | Sergey Nartimov | 2011-12-25 | 4 | -20/+10 | |
| | | | | | ||||||
* | | | | | Intercept sends in Model::DeprecationProxy | Jon Leighton | 2011-12-24 | 1 | -1/+3 | |
| | | | | | ||||||
* | | | | | deprecate String#encoding_aware? and remove its usage | Sergey Nartimov | 2011-12-24 | 2 | -6/+2 | |
| | | | | | ||||||
* | | | | | Add test to ensure AR::Model initialization works correctly | Jon Leighton | 2011-12-24 | 1 | -0/+5 | |
| | | | | | ||||||
* | | | | | Add deprecation for the change to the active_record load hook | Jon Leighton | 2011-12-24 | 1 | -0/+14 | |
| | | | | | ||||||
* | | | | | Support nested AR::Models | Jon Leighton | 2011-12-24 | 2 | -0/+12 | |
| | | | | | ||||||
* | | | | | Don't include anything else if AR::Model has already been included | Jon Leighton | 2011-12-24 | 1 | -0/+5 | |
| | | | | | ||||||
* | | | | | Make PredicateBuilder recognise AR::Model | Jon Leighton | 2011-12-24 | 1 | -0/+6 | |
| | | | | | ||||||
* | | | | | Ensure attribute methods are included after all the AR stuff | Jon Leighton | 2011-12-24 | 1 | -0/+1 | |
| | | | | | ||||||
* | | | | | Fix #exists? for AR::Model | Jon Leighton | 2011-12-24 | 1 | -0/+5 | |
| | | | | | ||||||
* | | | | | Make generated_feature_methods work with ActiveRecord::Model | Jon Leighton | 2011-12-24 | 1 | -0/+4 | |
| | | | | | ||||||
* | | | | | Fixtures support for ActiveRecord::Model | Jon Leighton | 2011-12-24 | 3 | -0/+16 | |
| | | | | | ||||||
* | | | | | Deal with global config better between AR::Base and AR::Model | Jon Leighton | 2011-12-24 | 3 | -0/+36 | |
| | | | | | ||||||
* | | | | | Add test for inheritance from a non-AR superclass | Jon Leighton | 2011-12-24 | 2 | -0/+19 | |
| | | | | | ||||||
* | | | | | Extract common logic into a method | Jon Leighton | 2011-12-24 | 2 | -0/+4 | |
| | | | | | ||||||
* | | | | | I herd you like modules. | Jon Leighton | 2011-12-24 | 4 | -1/+54 | |
| | | | | | ||||||
* | | | | | stop test resetting global state | Jon Leighton | 2011-12-23 | 1 | -0/+6 | |
| | | | | | ||||||
* | | | | | Fix #4046. | Jon Leighton | 2011-12-23 | 3 | -0/+22 | |
| | | | | | ||||||
* | | | | | serialize fails on subclass | Alvaro Bautista | 2011-12-23 | 4 | -6/+32 | |
| | | | | | ||||||
* | | | | | Make ActiveRecord::Relation#pluck work with serialized attributes | Jon Leighton | 2011-12-22 | 1 | -1/+8 | |
| | | | | | ||||||
* | | | | | Revert "Merge pull request #4114 from ↵ | Jon Leighton | 2011-12-22 | 2 | -78/+23 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | alexeymuranov/my_fix_for_prefix_suffix_fixtures_test" This reverts commit f8e484d0f71114675ed04e987914d3f2815cb868, reversing changes made to fa5adfb1e884bf21a7071ade634a820e37ac4db4. Reason: broke the postgres tests. | |||||
* | | | | | Merge pull request #4114 from ↵ | Jon Leighton | 2011-12-22 | 2 | -23/+78 | |
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | alexeymuranov/my_fix_for_prefix_suffix_fixtures_test Fix a fixtures test case with table prefix/suffix | |||||
| * | | | | | Fix a fixtures test case with table prefix/suffix | Alexey Muranov | 2011-12-22 | 2 | -23/+78 | |
| | | | | | | | | | | | | | | | | | | Make sure the table name of a model is reset in a test case after assigning ActiveRecord::Base.table_name_prefix and ActiveRecord::Base.table_name_suffix. This was somebody else's test case, so an independent opinion on the change can be helpful. | |||||
* | | | | | | Merge pull request #4122 from qoobaa/mass_assignment_with_associated_object | José Valim | 2011-12-21 | 3 | -7/+65 | |
|\ \ \ \ \ \ | | | | | | | | | | | | | | | added failing tests for has_many, has_one and belongs_to associations wi... | |||||
| * | | | | | | added failing tests for has_many, has_one and belongs_to associations with ↵ | Jakub Kuźma | 2011-12-21 | 3 | -7/+65 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | strict mass assignment sanitizer, fixed build_record to not merge creation_attributes, removed failing nested attributes tests (that feature was broken anyway) #4051 | |||||
* | | | | | | | Merge pull request #4109 from Karunakar/test1 | José Valim | 2011-12-21 | 1 | -2/+2 | |
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | Changed the old logger to new active support logger | |||||
| * | | | | | | | Changed the old logger to new active support logger | Karunakar (Ruby) | 2011-12-21 | 1 | -2/+2 | |
| | | | | | | | | ||||||
* | | | | | | | | remove deprecated set and original methods for table_name, primary_key, etc | Sergey Nartimov | 2011-12-21 | 2 | -203/+0 | |
| |_|/ / / / / |/| | | | | | | ||||||
* | | | | | | | remove deprecated underscore versions of attribute methods | Sergey Nartimov | 2011-12-21 | 1 | -8/+0 | |
| | | | | | | | ||||||
* | | | | | | | remove requires of core_ext/array/random_access that no longer exists | lest | 2011-12-21 | 2 | -2/+0 | |
| |/ / / / / |/| | | | | | ||||||
* | | | | | | More tests deep including through habtm | Arun Agrawal | 2011-12-21 | 1 | -0/+7 | |
| | | | | | | | | | | | | | | | | | | fixes #3183 |