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

Don't use ActiveSupport's .blank? method.

Prefer to rely on lower level methods (reduce dependencies).
parent 56748c74
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ module Geocoder
# or nil if not found or if network error.
#
def search(*args)
return [] if args[0].blank?
return [] if args[0].nil? || args[0] == ""
if res = results(args.join(","), args.size == 2)
res.map{ |r| result_class.new(r) }
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