Permalink
Browse files

fix mismatched example call [ci skip]

  • Loading branch information...
1 parent 85f463f commit d97d8379eb036e3129cd2d80deb6a026f11cd3be @vijaydev vijaydev committed Jul 12, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 guides/source/active_record_querying.md
@@ -680,7 +680,7 @@ Overriding Conditions
You can specify certain conditions to be removed using the `unscope` method. For example:
```ruby
-Article.where('id > 10').limit(20).order('id asc').except(:order)
+Article.where('id > 10').limit(20).order('id asc').unscope(:order)
```
The SQL that would be executed:
@@ -693,7 +693,7 @@ SELECT * FROM articles WHERE id > 10 ORDER BY id asc LIMIT 20
```
-You can additionally unscope specific where clauses. For example:
+You can also unscope specific `where` clauses. For example:
```ruby
Article.where(id: 10, trashed: false).unscope(where: :id)

0 comments on commit d97d837

Please sign in to comment.