lib/sigiss/ibge.rb in sigiss-0.1.0 vs lib/sigiss/ibge.rb in sigiss-0.1.1

- old
+ new

@@ -2,9 +2,10 @@ class IBGE class << self def get_code(name) + return if name.nil? cities.each do |city, code| return code if city == name.downcase end nil end