Fix deprecation warning for .uniq usage

This commit is contained in:
Angel Perez
2018-08-07 17:13:27 -04:00
committed by Julian Herrero
parent c979cc7411
commit 25f104d2dd

View File

@@ -1,5 +1,5 @@
class I18nContentTranslation < ActiveRecord::Base
def self.existing_languages
self.select(:locale).uniq.map{ |l| l.locale.to_sym }.to_a
self.select(:locale).distinct.map { |l| l.locale.to_sym }.to_a
end
end