diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-03-04 09:04:48 -0300 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-03-04 09:04:48 -0300 |
commit | 96050e1d73ff97b52f3ef3b79f813b75df615833 (patch) | |
tree | f3f92e1aa6881c867a015500ef135a0c01de8a60 /activerecord/CHANGELOG.md | |
parent | 8d69cd3e6815396dbab371de33a1615c73302ba9 (diff) | |
download | rails-96050e1d73ff97b52f3ef3b79f813b75df615833.tar.gz rails-96050e1d73ff97b52f3ef3b79f813b75df615833.tar.bz2 rails-96050e1d73ff97b52f3ef3b79f813b75df615833.zip |
Use 1.9 hash style in changelog and doc examples [ci skip]
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r-- | activerecord/CHANGELOG.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index d265f04562..db0bb327bf 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') + Posts.select(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") + Posts.select(name: "John").order("id DESC").unscope(:order) + == Posts.select(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() |