diff options
author | Erich Kist <erichkist@gmail.com> | 2013-07-18 12:02:53 -0300 |
---|---|---|
committer | Erich Kist <erichkist@gmail.com> | 2013-07-18 12:04:09 -0300 |
commit | d4ed68a50105d12e0bb87a1f04a7e6ed0e081d2b (patch) | |
tree | 6349a81d7d0dc1d1e0a32986f3cc2c1d3e8739fe /guides/source/active_record_querying.md | |
parent | ebc5bdb8e728d236d4b6cdf4d26246dfd1d62899 (diff) | |
download | rails-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.
Diffstat (limited to 'guides/source/active_record_querying.md')
-rw-r--r-- | guides/source/active_record_querying.md | 2 |
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` |