Class: Formatic::Choices::Countries

Inherits:
Object
  • Object
show all
Includes:
Calls
Defined in:
lib/formatic/choices/countries.rb

Overview

Returns a list of countries suitable for a <select> box.

Instance Method Summary collapse

Instance Method Details

#callObject



9
10
11
# File 'lib/formatic/choices/countries.rb', line 9

def call
  ::ISO3166::Country.pluck(:iso_short_name, :alpha2)
end