rails/arel — pull request #306 by mxhold (2014-08-30 18:14:30+00:00)
Title: Add SelectManager#distinct_on to set/unset Arel::Nodes::DistinctOn quantifier

This makes it easier to use DISTINCT ON:

```ruby
table = Arel::Table.new(:users)
table.project(Arel.star).distinct_on(table[:id]).to_sql
# => "SELECT DISTINCT ON ( \"users\".\"id\" ) * FROM \"users\""
```

Resolves #302