lib/amee/connection.rb in amee-3.2.1 vs lib/amee/connection.rb in amee-4.0.0
- old
+ new
@@ -30,10 +30,10 @@
Kernel.warn '[DEPRECATED] :enable_caching => true is deprecated. Use :cache => :memory_store instead'
options[:cache] ||= :memory_store
end
# Create cache store
if options[:cache] &&
- (options[:cache_store].is_a?(ActiveSupport::Cache::MemCacheStore) ||
+ (options[:cache_store].class.name == "ActiveSupport::Cache::MemCacheStore" ||
options[:cache].to_sym == :mem_cache_store)
raise 'ActiveSupport::Cache::MemCacheStore is not supported, as it doesn\'t allow regexp expiry'
end
if options[:cache_store].is_a?(ActiveSupport::Cache::Store)
# Allows assignment of the entire cache store in Rails apps