Add client proxy hack so existing themes continue to work.
authorTom Clegg <tom@curoverse.com>
Sun, 4 May 2014 20:22:35 +0000 (16:22 -0400)
committerTom Clegg <tom@curoverse.com>
Sun, 4 May 2014 21:01:54 +0000 (17:01 -0400)
apps/workbench/app/helpers/arvados_api_client_helper.rb

index 5204cc89433cc881802b2a0b8334e5c2304aaf78..b6c29a907068dbe1a47dfecd328a0299b39fe1c6 100644 (file)
@@ -3,3 +3,11 @@ module ArvadosApiClientHelper
     ArvadosApiClient.new_or_current
   end
 end
+
+# For the benefit of themes that still expect $arvados_api_client to work:
+class ArvadosClientProxyHack
+  def method_missing *args
+    ArvadosApiClient.new_or_current.send *args
+  end
+end
+$arvados_api_client = ArvadosClientProxyHack.new