Class: StateCountryConstants

Inherits:
Object
  • Object
show all
Defined in:
lib/dm_core/state_select.rb

Constant Summary collapse

PRIMARY_COUNTRIES =

Primary / favorite countries - pre-pended to general list of countries


[
    ['Austria',         13],
    ['Czech Republic',  54],
    ['Finland',         68],
    ['Germany',         55], 
    ['India',           101], 
    ['Japan',           109], 
    ['Switzerland',     41], 
    ['United Kingdom',  75], 
    ['United States',   223], 
    ['------------------------', '']
].freeze
PRIMARY_COUNTRIES_CODE =
[
    ['Austria',         'AT'],
    ['Czech Republic',  'CZ'],
    ['Finalnd',         'FI'],
    ['Germany',         'DE'], 
    ['India',           'IN'], 
    ['Japan',           'JP'], 
    ['Switzerland',     'CH'], 
    ['United Kingdom',  'UK'], 
    ['United States',   'US'], 
    ['------------------------', '']
].freeze
PRIMARY_COUNTRIES_NAME =
[
    ['Austria',         'Austria'],
    ['Czech Republic',  'Czech Republic'],
    ['Finland',         'Finland'],
    ['Germany',         'Germany'], 
    ['India',           'India'], 
    ['Japan',           'Japan'], 
    ['Switzerland',     'Switzerland'], 
    ['United Kingdom',  'United Kingdom'], 
    ['United States',   'United States'], 
    ['------------------------', '']
].freeze
COUNTRIES_WITH_STATES =

Countries with states


[  {:code => 'US', :id => 223},
{:code => 'IN', :id => 101},
{:code => 'DE', :id => 55},
{:code => 'FR', :id => 73},
{:code => 'AU', :id => 14},
{:code => 'FR', :id => 73},
{:code => 'UG', :id => 221},
{:code => 'CA', :id => 36},
{:code => 'MX', :id => 150} ].freeze