Browse files

Merge pull request #9540 from dimko/patch-1

Fixed typo in active record's changelog
  • Loading branch information...
2 parents 2e28045 + 71e4dfc commit 9025f495700fb67cf661ed79ac8c3b0912c13d4c @fxn fxn committed Mar 4, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 activerecord/
@@ -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:
- "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:
- "John").order("id DESC").unscope(:order)
- == "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()

0 comments on commit 9025f49

Please sign in to comment.