Skip to content
Snippets Groups Projects
Commit e75a3f5e authored by Spas Poptchev's avatar Spas Poptchev
Browse files

fix empty address fields

parent cb046ab6
No related branches found
No related tags found
No related merge requests found
...@@ -30,7 +30,7 @@ module Geocoder::Result ...@@ -30,7 +30,7 @@ module Geocoder::Result
end end
def address def address
[street, city, state, postal_code, country].reject{|s| s.length == 0 }.join(", ") [street, city, state, postal_code, country].compact.reject{|s| s.length == 0 }.join(", ")
end end
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment