Module: ActiveAdmin::Globalize3::ActiveRecordExtension::Methods

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

Instance Method Summary collapse

Instance Method Details

#translation_namesObject



7
8
9
10
11
# File 'lib/active_admin/globalize3/active_record_extension.rb', line 7

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