From 0a6833b6f701c8c8febadfe2f45e25df29493602 Mon Sep 17 00:00:00 2001 From: Jon Leighton Date: Fri, 3 Aug 2012 11:50:50 +0100 Subject: reinstate changelog that seems to have been accidentally deleted o_O --- activerecord/CHANGELOG.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'activerecord/CHANGELOG.md') diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index 8356b49bec..cb7dbfe454 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -53,6 +53,25 @@ *Jon Leighton* +* `Model.all` now returns an `ActiveRecord::Relation`, rather than an + array of records. Use `Model.to_a` or `Relation#to_a` if you really + want an array. + + In some specific cases, this may cause breakage when upgrading. + However in most cases the `ActiveRecord::Relation` will just act as a + lazy-loaded array and there will be no problems. + + Note that calling `Model.all` with options (e.g. + `Model.all(conditions: '...')` was already deprecated, but it will + still return an array in order to make the transition easier. + + `Model.scoped` is deprecated in favour of `Model.all`. + + `Relation#all` still returns an array, but is deprecated (since it + would serve no purpose if we made it return a `Relation`). + + *Jon Leighton* + * `:finder_sql` and `:counter_sql` options on collection associations are deprecated. Please transition to using scopes. -- cgit v1.2.3