Skip to content
Snippets Groups Projects
Commit 2744939d authored by Ryan Boland's avatar Ryan Boland
Browse files

fix spec issue with postal code

parent 31927a87
No related branches found
No related tags found
No related merge requests found
...@@ -24,7 +24,8 @@ module Geocoder::Result ...@@ -24,7 +24,8 @@ module Geocoder::Result
alias_method :state_code, :state alias_method :state_code, :state
def zip def zip
address_components["zip"] # Postal code is not returned for Canada geocode results
address_components["zip"] || ""
end end
alias_method :postal_code, :zip alias_method :postal_code, :zip
......
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