Commit 99385176 authored by Rajko Albrecht's avatar Rajko Albrecht
Browse files

Force load

parent e217046b
......@@ -65,14 +65,10 @@ module ActiveSupport
check_and_extend_cas
end
def candocas?
@data.is_a?(Redis::Store) && @data.respond_to?(:cas)
end
private
def check_and_extend_cas
extend RedisStoreCas if candocas?
extend RedisStoreCas
end
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment