Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

try to #classify any clients specified in the config

  • Loading branch information...
commit 9dc19a3a593f4ce1b4e221889091cebd773ea5c4 1 parent 41f1ad0
@defunkt authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/acts_as_cached/config.rb
View
2  lib/acts_as_cached/config.rb
@@ -64,7 +64,7 @@ def setup_memcache(config)
end
def memcache_client(config)
- (config[:client] || "MemCache").constantize.new(config)
+ (config[:client] || "MemCache").classify.constantize.new(config)
end
def setup_session_store

1 comment on commit 9dc19a3

@jreitz

Why? This breaks using Memcached::Rails as a client because classify singularizes ‘Rails’ to ‘Rail’

Please sign in to comment.
Something went wrong with that request. Please try again.