Fix deprecation warning for .uniq usage
This commit is contained in:
committed by
Julian Herrero
parent
c979cc7411
commit
25f104d2dd
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user