Skip to content

Commit

Permalink
Add changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
laurocaetano committed Dec 12, 2013
1 parent d198784 commit e87c3da
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions activerecord/CHANGELOG.md
@@ -1,3 +1,18 @@
* Create a whitelist of delegable methods to `Array`.

Currently `Relation` directly delegates methods to `Array`. With this change,
only the methods present in this whitelist will be delegated.

The whitelist contains:

#&, #+, #[], #all?, #collect, #detect, #each, #each_cons, #each_with_index,
#flat_map, #group_by, #include?, #length, #map, #none?, :one?, #reverse, #sample,
#second, #sort, #sort_by, #to_ary, #to_set, #to_xml, #to_yaml

To use any other method, instead first call `#to_a` on the association.

*Lauro Caetano*

* Use the right column to type cast grouped calculations with custom expressions.

Fixes #13230.
Expand Down Expand Up @@ -449,12 +464,6 @@

*Paul Nikitochkin*

* Deprecate the delegation of Array bang methods for associations.
To use them, instead first call `#to_a` on the association to access the
array to be acted on.

*Ben Woosley*

* `CollectionAssociation#first`/`#last` (e.g. `has_many`) use a `LIMIT`ed
query to fetch results rather than loading the entire collection.

Expand Down

0 comments on commit e87c3da

Please sign in to comment.