module ActiveScaffold::Bridges::CountrySelect::ListColumnHelpers
Public Instance Methods
Source
# File lib/active_scaffold/bridges/country_select/country_select_bridge_helper.rb, line 15 def active_scaffold_column_country(record, column, ui_options: column.options) country_code = record.send(column.name) return if country_code.blank? country = ISO3166::Country[country_code] return country_code unless country country.translations[I18n.locale.to_s] || country.name end