14322: Workbench links collection uuids in workflow inputs
[arvados.git] / apps / workbench / app / helpers / arvados_api_client_helper.rb
index 5204cc89433cc881802b2a0b8334e5c2304aaf78..5901de40b82a0d19ca38a9e8b01c463284aaa1dc 100644 (file)
@@ -1,5 +1,17 @@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
 module ArvadosApiClientHelper
   def arvados_api_client
     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