diff options
author | Jason Kurian <JaKXz@users.noreply.github.com> | 2017-02-22 18:22:22 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-22 18:22:22 -0500 |
commit | 5a5170a8d2a1444ace4d7d4346516a84b4fd4ef9 (patch) | |
tree | 049eb1594dcc97f3a096a6cea1f3996019cc1321 /README.md | |
parent | 1ee6710b54c013d31951ce22c74ac72377ebbbf6 (diff) | |
download | rails-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.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 |