lib/worldwide/regions_loader.rb in worldwide-0.11.0 vs lib/worldwide/regions_loader.rb in worldwide-0.14.0
- old
+ new
@@ -93,16 +93,18 @@
current_region
end
def apply_territory_attributes(region, spec)
+ region.additional_address_fields = spec["additional_address_fields"] || {}
region.building_number_required = spec["building_number_required"] || false
region.building_number_may_be_in_address2 = spec["building_number_may_be_in_address2"] || false
currency_code = spec["currency"]
region.code_alternates = spec["code_alternates"] || []
region.currency = Worldwide.currency(code: currency_code) unless currency_code.nil?
region.flag = spec["emoji"]
region.format = spec["format"]
+ region.format_extended = spec["format_extended"] || {}
region.group = spec["group"]
region.group_name = spec["group_name"]
region.hide_provinces_from_addresses = spec["hide_provinces_from_addresses"] || false
region.languages = spec["languages"]
region.partial_zip_regex = spec["partial_zip_regex"]