Skip to content
Snippets Groups Projects
Commit 3fc19ae4 authored by Alex Reisner's avatar Alex Reisner
Browse files

Fix bug: extraneous parameter was being passed to fetch_coordinates method by...

Fix bug: extraneous parameter was being passed to fetch_coordinates method by fetch_and_assign_coordinates.
parent e5e9ded6
No related branches found
No related tags found
No related merge requests found
......@@ -93,12 +93,11 @@ module Geocoder
# Fetch and assign +latitude+ and +longitude+.
#
def fetch_and_assign_coordinates
if c = fetch_coordinates(self.class.geocoder_method_name)
self.latitude = c[0]
self.longitude = c[1]
return c
else
return nil
returning fetch_coordinates do |c|
unless c.blank?
self.latitude = c[0]
self.longitude = c[1]
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