aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErich Kist <erichkist@gmail.com>2013-07-18 12:02:53 -0300
committerErich Kist <erichkist@gmail.com>2013-07-18 12:04:09 -0300
commitd4ed68a50105d12e0bb87a1f04a7e6ed0e081d2b (patch)
tree6349a81d7d0dc1d1e0a32986f3cc2c1d3e8739fe
parentebc5bdb8e728d236d4b6cdf4d26246dfd1d62899 (diff)
downloadrails-d4ed68a50105d12e0bb87a1f04a7e6ed0e081d2b.tar.gz
rails-d4ed68a50105d12e0bb87a1f04a7e6ed0e081d2b.tar.bz2
rails-d4ed68a50105d12e0bb87a1f04a7e6ed0e081d2b.zip
Revert "Fix SyntaxError in guides sample code"
This reverts commit f573df32d43c413a5098721ba6151ff190c23c6c. The original idea of this documentation was to showcase the feature where you can remove some only queries attributes with a single key-value pair.
-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 18a5342a2f..0592821a14 100644
--- a/guides/source/active_record_querying.md
+++ b/guides/source/active_record_querying.md
@@ -711,7 +711,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, :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`