lib/geocoder/cache.rb in geocoder-1.8.1 vs lib/geocoder/cache.rb in geocoder-1.8.2

- old
+ new

@@ -2,10 +2,10 @@ module Geocoder class Cache def initialize(store, config) - @class = (Object.const_get("Geocoder::CacheStore::#{store.class}") rescue Geocoder::CacheStore::Generic) + @class = (Geocoder::CacheStore.const_get("#{store.class}", false) rescue Geocoder::CacheStore::Generic) @store_service = @class.new(store, config) end ## # Read from the Cache.