aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authorDimko <deemox@gmail.com>2013-03-04 18:16:21 +0400
committerDimko <deemox@gmail.com>2013-03-04 18:56:46 +0400
commit71e4dfc9f40107922d656fbd8ea89a1f45569f2c (patch)
treedba0fde0a47d14576a889bac439c65bc3c933ebe /activerecord/CHANGELOG.md
parent2e28045b487d66cbd5519317ec18a93c65a4d04b (diff)
downloadrails-71e4dfc9f40107922d656fbd8ea89a1f45569f2c.tar.gz
rails-71e4dfc9f40107922d656fbd8ea89a1f45569f2c.tar.bz2
rails-71e4dfc9f40107922d656fbd8ea89a1f45569f2c.zip
Fixed typo in active record's changelog
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index db0bb327bf..f08049a443 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()