lib/geocoder/lookups/base.rb in geocoder-1.7.5 vs lib/geocoder/lookups/base.rb in geocoder-1.8.0
- old
+ new
@@ -81,16 +81,11 @@
##
# The working Cache object.
#
def cache
- if @cache.nil? && (store = configuration.cache)
+ if @cache.nil? and store = configuration.cache
cache_options = configuration.cache_options
- cache_prefix = (configuration.cache_prefix rescue false)
- if cache_prefix
- cache_options[:prefix] ||= configuration.cache_prefix
- warn '[Geocoder] cache_prefix is deprecated, please change to cache_options.prefix instead'
- end
@cache = Cache.new(store, cache_options)
end
@cache
end