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

Always require all lookups.

This fixes issue #305.
parent dd27e923
No related branches found
No related tags found
No related merge requests found
......@@ -49,7 +49,6 @@ module Geocoder
def self.spawn(name)
if all_services.include?(name)
name = name.to_s
require "geocoder/lookups/#{name}"
Geocoder::Lookup.const_get(classify_name(name)).new
else
valids = all_services.map(&:inspect).join(", ")
......@@ -63,3 +62,7 @@ module Geocoder
end
end
end
Geocoder::Lookup.all_services.each do |name|
require "geocoder/lookups/#{name}"
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