aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorJason Kurian <JaKXz@users.noreply.github.com>2017-02-22 18:22:22 -0500
committerGitHub <noreply@github.com>2017-02-22 18:22:22 -0500
commit5a5170a8d2a1444ace4d7d4346516a84b4fd4ef9 (patch)
tree049eb1594dcc97f3a096a6cea1f3996019cc1321 /README.md
parent1ee6710b54c013d31951ce22c74ac72377ebbbf6 (diff)
downloadrails-5a5170a8d2a1444ace4d7d4346516a84b4fd4ef9.tar.gz
rails-5a5170a8d2a1444ace4d7d4346516a84b4fd4ef9.tar.bz2
rails-5a5170a8d2a1444ace4d7d4346516a84b4fd4ef9.zip
docs(distinct): fix distinct example [skip ci]
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
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