lib/active_merchant/country.rb in activemerchant-1.79.2 vs lib/active_merchant/country.rb in activemerchant-1.80.0
- old
+ new
@@ -315,10 +315,10 @@
{ alpha2: 'ZW', name: 'Zimbabwe', alpha3: 'ZWE', numeric: '716' },
{ alpha2: 'AX', name: 'Ă…land Islands', alpha3: 'ALA', numeric: '248' }
]
def self.find(name)
- raise InvalidCountryCodeError, "Cannot lookup country for an empty name" if name.blank?
+ raise InvalidCountryCodeError, 'Cannot lookup country for an empty name' if name.blank?
case name.length
when 2, 3
upcase_name = name.upcase
country_code = CountryCode.new(name)