Replace Array#uniq_by with Array#uniq to avoid Rails 4 deprecation warnings