Update documentation for Where chained modifiers.

where.like and where.not_like were removed in 8d02afeaee, but the
guide was not updated.
This commit is contained in:
Ryan Sandridge 2013-03-19 18:05:44 -04:00
parent 926357040b
commit 5dfaf8b5b5

@ -505,19 +505,15 @@ This code will generate SQL like this:
SELECT * FROM clients WHERE (clients.orders_count IN (1,3,5))
```
### NOT, LIKE, and NOT LIKE Conditions
### NOT Conditions
`NOT`, `LIKE`, and `NOT LIKE` SQL queries can be built by `where.not`, `where.like`, and `where.not_like` respectively.
`NOT` SQL queries can be built by `where.not`.
```ruby
Post.where.not(author: author)
Author.where.like(name: 'Nari%')
Developer.where.not_like(name: 'Tenderl%')
```
In other words, these sort of queries can be generated by calling `where` with no argument, then immediately chain with `not`, `like`, or `not_like` passing `where` conditions.
In other words, this query can be generated by calling `where` with no argument, then immediately chain with `not` passing `where` conditions.
Ordering
--------