aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2012-08-03 11:50:50 +0100
committerJon Leighton <j@jonathanleighton.com>2012-08-03 11:50:50 +0100
commit0a6833b6f701c8c8febadfe2f45e25df29493602 (patch)
tree181b481c3bdba580ff18603b1fd290f05d4cd8de /activerecord/CHANGELOG.md
parentbf2df6e7ba495ac4d2264e0e2558c366f217ee5d (diff)
downloadrails-0a6833b6f701c8c8febadfe2f45e25df29493602.tar.gz
rails-0a6833b6f701c8c8febadfe2f45e25df29493602.tar.bz2
rails-0a6833b6f701c8c8febadfe2f45e25df29493602.zip
reinstate changelog that seems to have been accidentally deleted o_O
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md19
1 files changed, 19 insertions, 0 deletions
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.