Skip to content
Snippets Groups Projects
Commit 75b921d6 authored by Jake Wilkins's avatar Jake Wilkins
Browse files

allow query text that is actually an array.

parent 104d466b
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,11 @@ module Geocoder
def sanitized_text
if coordinates?
text.split(/\s*,\s*/).join(',')
if text.is_a?(Array)
text.join(',')
else
text.split(/\s*,\s*/).join(',')
end
else
text
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