mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
commit
e69620c69a
1 changed files with 5 additions and 1 deletions
|
@ -314,7 +314,11 @@ class MemCacheStoreTest < ActiveSupport::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
def servers(cache = @cache)
|
def servers(cache = @cache)
|
||||||
client(cache).instance_variable_get(:@servers)
|
if client(cache).instance_variable_defined?(:@normalized_servers)
|
||||||
|
client(cache).instance_variable_get(:@normalized_servers)
|
||||||
|
else
|
||||||
|
client(cache).instance_variable_get(:@servers)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def client(cache = @cache)
|
def client(cache = @cache)
|
||||||
|
|
Loading…
Reference in a new issue