Permalink
Browse files

Fix SyntaxError in guides sample code

[ci skip]
  • Loading branch information...
1 parent 874fbda commit f573df32d43c413a5098721ba6151ff190c23c6c @amatsuda amatsuda committed Jul 8, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 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: :id, :limit).order('id DESC') = Post.order('id DESC')
+Post.where(id: 10).limit(1).unscope(:where, :limit).order('id DESC') = Post.order('id DESC')
```
### `only`

2 comments on commit f573df3

I think the idea is to showcase that you can unscope specific where clauses, using the hash version. Maybe it should use {} to define the hash instead?

Owner

rafaelfranca replied Jul 8, 2013

👍

Please sign in to comment.