svenfuchs/i18n-active_record — pull request #54 by kaspth (2014-06-23 20:48:03+00:00)
Title: Make Translation.available_locales select distinct values.

Found on Rails 4.1.1. I haven't tested it on other Rails versions.

Before:
```ruby
> Translation.available_locales
SELECT DISTINCT `translations`.* FROM `translations`
```

After:
```
> Translation.distinct.pluck(:locale).map(&:to_sym)
SELECT DISTINCT `translations`.`locale` FROM `translations`
```