Module: ActiveAdmin::Globalize::ActiveRecordExtension::Methods

Defined in:
lib/active_admin/globalize/active_record_extension.rb

Instance Method Summary collapse

Instance Method Details

#translation_namesObject



5
6
7
8
9
# File 'lib/active_admin/globalize/active_record_extension.rb', line 5

def translation_names
  self.translations.map(&:locale).map do |locale|
    I18n.t("active_admin.globalize.language.#{locale}")
  end.uniq.sort
end