Module: ShoppingCart::Countries

Extended by:
ActiveSupport::Concern
Included in:
Address
Defined in:
app/models/concerns/shopping_cart/countries.rb

Instance Method Summary collapse

Instance Method Details

#country_nameObject



5
6
7
8
# File 'app/models/concerns/shopping_cart/countries.rb', line 5

def country_name
  country = ISO3166::Country[country_code]
  country.translations[I18n.locale.to_s] || country.name
end