aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/active_record_querying.md
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2013-04-15 14:46:11 +0200
committerYves Senn <yves.senn@gmail.com>2013-04-15 14:46:11 +0200
commit1655f4142efa89acb86812f5c1d7572e51cbae80 (patch)
tree2e0a239b1123817f217a192e0325e90a487ebd8d /guides/source/active_record_querying.md
parentbd4470e3199b32c9897366e13e4b7c068be0ecdc (diff)
downloadrails-1655f4142efa89acb86812f5c1d7572e51cbae80.tar.gz
rails-1655f4142efa89acb86812f5c1d7572e51cbae80.tar.bz2
rails-1655f4142efa89acb86812f5c1d7572e51cbae80.zip
more Ruby 1.9 Hash syntax in our guides
Diffstat (limited to 'guides/source/active_record_querying.md')
-rw-r--r--guides/source/active_record_querying.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/active_record_querying.md b/guides/source/active_record_querying.md
index 2589accadd..e1d9f39c3e 100644
--- a/guides/source/active_record_querying.md
+++ b/guides/source/active_record_querying.md
@@ -707,7 +707,7 @@ Post.order('id DESC').limit(20).unscope(:order, :limit) = Post.all
You can additionally unscope specific where clauses. For example:
```ruby
-Post.where(:id => 10).limit(1).unscope(:where => :id, :limit).order('id DESC') = Post.order('id DESC')
+Post.where(:id => 10).limit(1).unscope(where: :id, :limit).order('id DESC') = Post.order('id DESC')
```
### `only`