aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/inclusion_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Remove ActiveRecord::ModelJon Leighton2012-10-261-133/+0
| | | | | | | | | | In the end I think the pain of implementing this seamlessly was not worth the gain provided. The intention was that it would allow plain ruby objects that might not live in your main application to be subclassed and have persistence mixed in. But I've decided that the benefit of doing that is not worth the amount of complexity that the implementation introduced.
* Revert "Get rid of the ActiveRecord::Model::DeprecationProxy thing."Jeremy Kemper2012-10-201-0/+36
| | | | This reverts commit 83846838252397b3781eed165ca301e05db39293.
* Get rid of the ActiveRecord::Model::DeprecationProxy thing.Jon Leighton2012-10-191-36/+0
| | | | | | | | | | | | | | | | | I think it's going to be too much pain to try to transition the :active_record load hook from executing against Base to executing against Model. For example, after Model is included in Base, and modules included in Model will no longer get added to the ancestors of Base. So plugins which wish to be compatible with both Model and Base should use the :active_record_model load hook which executes *before* Base gets loaded. In general, ActiveRecord::Model is an advanced feature at the moment and probably most people will continue to inherit from ActiveRecord::Base for the time being.
* Make ActiveRecord::Model::DeprecationProxy work betterJon Leighton2012-08-031-3/+23
| | | | Closes #6600
* Address test_basic_model test error with Oracle enhanced adapterYasuo Honda2012-06-271-1/+1
| | | | which ids start from 1000 as a default.
* Support establishing connection on ActiveRecord::Model.Jon Leighton2011-12-281-1/+4
| | | | | This is the 'top level' connection, inherited by any models that include ActiveRecord::Model or inherit from ActiveRecord::Base.
* Intercept sends in Model::DeprecationProxyJon Leighton2011-12-241-1/+3
|
* 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
|
* 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-241-0/+9
|
* Add test for inheritance from a non-AR superclassJon Leighton2011-12-241-0/+8
|
* I herd you like modules.Jon Leighton2011-12-241-0/+36