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

Merge pull request #492 from j-wilkins/patch-1

allow query text that is actually an array.
parents 104d466b 75b921d6
Branches
Tags
No related merge requests found
...@@ -17,7 +17,11 @@ module Geocoder ...@@ -17,7 +17,11 @@ module Geocoder
def sanitized_text def sanitized_text
if coordinates? if coordinates?
if text.is_a?(Array)
text.join(',')
else
text.split(/\s*,\s*/).join(',') text.split(/\s*,\s*/).join(',')
end
else else
text text
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment