Skip to content
Snippets Groups Projects
Commit f804322d authored by Ben Woosley's avatar Ben Woosley
Browse files

One more method-level rescue

parent 884d5111
No related branches found
Tags release-3.0.1
No related merge requests found
...@@ -44,11 +44,9 @@ module Geocoder ...@@ -44,11 +44,9 @@ module Geocoder
end end
def geocoder_initialized? def geocoder_initialized?
begin included_modules.include? Geocoder::Store.const_get(geocoder_module_name)
included_modules.include? Geocoder::Store.const_get(geocoder_module_name) rescue NameError
rescue NameError false
false
end
end end
end 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