Sha256: 2fa87f782bfca314e879595c5307eb1a6c876f6f39f486f5febf9050edda4019

Contents?: true

Size: 148 Bytes

Versions: 12

Compression:

Stored size: 148 Bytes

Contents

module CountrySelect
  FORMATS = {}

  FORMATS[:default] = lambda do |country|
    country.translations[I18n.locale.to_s] || country.name
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
country_select-4.0.0 lib/country_select/formats.rb
country_select-3.1.1 lib/country_select/formats.rb
country_select-3.1.0 lib/country_select/formats.rb
country_select-3.0.0 lib/country_select/formats.rb
country_select-2.5.2 lib/country_select/formats.rb
country_select-2.5.1 lib/country_select/formats.rb
country_select-2.5.0 lib/country_select/formats.rb
country_select-2.4.0 lib/country_select/formats.rb
country_select-2.3.0 lib/country_select/formats.rb
country_select-2.2.0 lib/country_select/formats.rb
country_select-2.1.1 lib/country_select/formats.rb
country_select-2.1.0 lib/country_select/formats.rb