aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases
Commit message (Collapse)AuthorAgeFilesLines
* Test case: fixture table name is defined in modelAlexey Muranov2011-12-301-0/+5
|
* Test fixtures with custom model and table namesAlexey Muranov2011-12-301-0/+28
| | | | | | 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 Leighton2011-12-2918-89/+157
|
* Merge pull request #4216 from edgecase/master_fix_reorder_with_limited_idsAaron Patterson2011-12-281-0/+10
|\ | | | | allow reorder to affect eager loading correctly
| * allow reorder to affect eager loading correctlyMatt Jones + Scott Walker2011-12-281-0/+10
| |
* | Fix CIJon Leighton2011-12-285-25/+25
| |
* | Support establishing connection on ActiveRecord::Model.Jon Leighton2011-12-286-11/+24
| | | | | | | | | | 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 Leighton2011-12-282-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/suffixAlexey Muranov2011-12-271-23/+37
| | | | 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 availabilitySergey Nartimov2011-12-254-20/+10
|
* Intercept sends in Model::DeprecationProxyJon Leighton2011-12-241-1/+3
|
* deprecate String#encoding_aware? and remove its usageSergey Nartimov2011-12-242-6/+2
|
* Add test to ensure AR::Model initialization works correctlyJon Leighton2011-12-241-0/+5
|
* Add deprecation for the change to the active_record load hookJon Leighton2011-12-241-0/+14
|
* Support nested AR::ModelsJon Leighton2011-12-241-0/+4
|
* Don't include anything else if AR::Model has already been includedJon Leighton2011-12-241-0/+5
|
* Make PredicateBuilder recognise AR::ModelJon Leighton2011-12-241-0/+6
|
* Ensure attribute methods are included after all the AR stuffJon Leighton2011-12-241-0/+1
|
* Fix #exists? for AR::ModelJon Leighton2011-12-241-0/+5
|
* Make generated_feature_methods work with ActiveRecord::ModelJon Leighton2011-12-241-0/+4
|
* Fixtures support for ActiveRecord::ModelJon Leighton2011-12-241-0/+12
|
* Deal with global config better between AR::Base and AR::ModelJon Leighton2011-12-243-0/+36
|
* Add test for inheritance from a non-AR superclassJon Leighton2011-12-241-0/+8
|
* Extract common logic into a methodJon Leighton2011-12-242-0/+4
|
* I herd you like modules.Jon Leighton2011-12-242-1/+37
|
* stop test resetting global stateJon Leighton2011-12-231-0/+6
|
* Fix #4046.Jon Leighton2011-12-233-0/+22
|
* serialize fails on subclassAlvaro Bautista2011-12-232-6/+26
|
* Make ActiveRecord::Relation#pluck work with serialized attributesJon Leighton2011-12-221-1/+8
|
* Revert "Merge pull request #4114 from ↵Jon Leighton2011-12-221-36/+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 Leighton2011-12-221-23/+36
|\ | | | | | | | | 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/suffixAlexey Muranov2011-12-221-23/+36
| | | | | | 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_objectJosé Valim2011-12-212-5/+63
|\ \ | | | | | | 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źma2011-12-212-5/+63
| | | | | | | | | | | | strict mass assignment sanitizer, fixed build_record to not merge creation_attributes, removed failing nested attributes tests (that feature was broken anyway) #4051
* | | remove deprecated set and original methods for table_name, primary_key, etcSergey Nartimov2011-12-212-203/+0
| |/ |/|
* | remove deprecated underscore versions of attribute methodsSergey Nartimov2011-12-211-8/+0
| |
* | remove requires of core_ext/array/random_access that no longer existslest2011-12-212-2/+0
|/
* More tests deep including through habtmArun Agrawal2011-12-211-0/+7
| | | fixes #3183
* 'with_kcode' removed. Arun Agrawal2011-12-212-25/+19
| | | | Testing Sandbox removed.
* Removed test which works only < 1.9Arun Agrawal2011-12-213-34/+0
|
* No Ruby 1.8 stuff. No more checks in code.Arun Agrawal2011-12-212-25/+0
|
* skip hstore tests on PG databases that do not have hstoreAaron Patterson2011-12-201-2/+8
|
* making sure updates workAaron Patterson2011-12-201-7/+13
|
* hstores can cycleAaron Patterson2011-12-201-2/+26
|
* can create hstore records via AR APIAaron Patterson2011-12-201-0/+7
|
* multiple key / values workAaron Patterson2011-12-201-0/+6
|
* PostgreSQL hstore types are automatically deserialized from the database.Aaron Patterson2011-12-201-0/+16
|
* pg columns should understand the hstore typeAaron Patterson2011-12-201-0/+24
|
* remove more uses of deprecated loggersKarunakar (Ruby)2011-12-211-2/+2
|
* Merge pull request #4035 from lest/date-type-castAaron Patterson2011-12-201-0/+8
|\ | | | | handle not only strings in date type cast