Add client proxy hack so existing themes continue to work.
[arvados.git] / 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