aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2014-07-12 10:21:00 +0000
committerVijay Dev <vijaydev.cse@gmail.com>2014-07-12 10:21:00 +0000
commitd97d8379eb036e3129cd2d80deb6a026f11cd3be (patch)
treeb3abcb22cb697acd8fe8857d9494853a28efcbe9 /guides/source
parent85f463f616b2504428b3dfdb12608bbf023f3758 (diff)
downloadrails-d97d8379eb036e3129cd2d80deb6a026f11cd3be.tar.gz
rails-d97d8379eb036e3129cd2d80deb6a026f11cd3be.tar.bz2
rails-d97d8379eb036e3129cd2d80deb6a026f11cd3be.zip
fix mismatched example call [ci skip]
Diffstat (limited to 'guides/source')
-rw-r--r--guides/source/active_record_querying.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/active_record_querying.md b/guides/source/active_record_querying.md
index f9368a6a1a..c9e265de08 100644
--- a/guides/source/active_record_querying.md
+++ b/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)