From a3dd74b92a8dbf4222357158004ea10e5ad3f1cd Mon Sep 17 00:00:00 2001 From: Brasten Sager Date: Fri, 2 Sep 2011 16:08:47 -0700 Subject: [PATCH] Attempting fix for Rails caching --- lib/active_shard/active_record/schema_connection_proxy.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/active_shard/active_record/schema_connection_proxy.rb b/lib/active_shard/active_record/schema_connection_proxy.rb index 9692785..5b50777 100644 --- a/lib/active_shard/active_record/schema_connection_proxy.rb +++ b/lib/active_shard/active_record/schema_connection_proxy.rb @@ -23,6 +23,10 @@ def initialize( target ) @target = target end + def cache + yield + end + def method_missing( sym, *args, &block ) raise ::ActiveShard::NoActiveShardError end