diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index db0bb327bf3465b48a9131cd8834ba4d54d5c7cf..f08049a4438ccf7f3d9c5aaa6e47892c1939a7d3 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -3,12 +3,12 @@ * Added functionality to unscope relations in a relations chain. For instance, if you are passed in a chain of relations as follows: - Posts.select(name: "John").order('id DESC') + User.where(name: "John").order('id DESC') but you want to get rid of order, then this feature allows you to do: - Posts.select(name: "John").order("id DESC").unscope(:order) - == Posts.select(name: "John") + User.where(name: "John").order('id DESC').unscope(:order) + == User.where(name: "John") The .unscope() function is more general than the .except() method because .except() only works on the relation it is acting on. However, .unscope()