lib/phony_rails.rb in phony_rails-0.4.2 vs lib/phony_rails.rb in phony_rails-0.5.0

- old
+ new

@@ -5,10 +5,10 @@ require 'phony_rails/version' module PhonyRails def self.country_number_for(country_code) - ISO3166::Country::Data[country_code].try(:[], 'country_code') + ISO3166::Country::Data[country_code.to_s.upcase].try(:[], 'country_code') end # This method requires a country_code attribute (eg. NL) and phone_number to be set. # Options: # :country_number => The country dial code (eg. 31 for NL).