diff options
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -150,9 +150,9 @@ The `OR` operator works like this: users.where(users[:name].eq('bob').or(users[:age].lt(25))) ``` -The `AND` operator behaves similarly. The exception is the `DISTINCT` operator, which is not chainable: +The `AND` operator behaves similarly. Here is an example of the `DISTINCT` operator, which as of v6 is also chainable: -``` +```ruby posts = Arel::Table.new(:posts) posts.project(posts[:title]) posts.distinct |