From 5a5170a8d2a1444ace4d7d4346516a84b4fd4ef9 Mon Sep 17 00:00:00 2001 From: Jason Kurian Date: Wed, 22 Feb 2017 18:22:22 -0500 Subject: docs(distinct): fix distinct example [skip ci] --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 2872589524..b2a5863754 100644 --- a/README.md +++ b/README.md @@ -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 -- cgit v1.2.3