aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-07-18 08:50:53 -0700
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-07-18 08:50:53 -0700
commit8ab4656fbc1d1ab691fff7c6f2b131300eaa9589 (patch)
tree6349a81d7d0dc1d1e0a32986f3cc2c1d3e8739fe
parentebc5bdb8e728d236d4b6cdf4d26246dfd1d62899 (diff)
parentd4ed68a50105d12e0bb87a1f04a7e6ed0e081d2b (diff)
downloadrails-8ab4656fbc1d1ab691fff7c6f2b131300eaa9589.tar.gz
rails-8ab4656fbc1d1ab691fff7c6f2b131300eaa9589.tar.bz2
rails-8ab4656fbc1d1ab691fff7c6f2b131300eaa9589.zip
Merge pull request #11491 from erichkist/ek-revert-unscope-patch
Revert "Fix SyntaxError in guides sample code"
-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`