Files
grecia/app/models/i18n_content_translation.rb
Javi Martín b188c5cae0 Simplify method to get existing locales
We can get the same results using `pluck`.
2024-06-05 16:10:56 +02:00

6 lines
129 B
Ruby

class I18nContentTranslation < ApplicationRecord
def self.existing_locales
distinct.pluck(:locale).map(&:to_sym)
end
end