From 647c8b8c47ef521046bea7675af84b621c235e0f Mon Sep 17 00:00:00 2001 From: Tom Clegg Date: Sun, 4 May 2014 16:22:35 -0400 Subject: [PATCH] Add client proxy hack so existing themes continue to work. --- apps/workbench/app/helpers/arvados_api_client_helper.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apps/workbench/app/helpers/arvados_api_client_helper.rb b/apps/workbench/app/helpers/arvados_api_client_helper.rb index 5204cc8943..b6c29a9070 100644 --- a/apps/workbench/app/helpers/arvados_api_client_helper.rb +++ b/apps/workbench/app/helpers/arvados_api_client_helper.rb @@ -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 -- 2.30.2