projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
14988: Refactors ArvadosBase class to not subclass ActiveRecord.
[arvados.git]
/
apps
/
workbench
/
app
/
helpers
/
arvados_api_client_helper.rb
diff --git
a/apps/workbench/app/helpers/arvados_api_client_helper.rb
b/apps/workbench/app/helpers/arvados_api_client_helper.rb
index 5204cc89433cc881802b2a0b8334e5c2304aaf78..5901de40b82a0d19ca38a9e8b01c463284aaa1dc 100644
(file)
--- a/
apps/workbench/app/helpers/arvados_api_client_helper.rb
+++ b/
apps/workbench/app/helpers/arvados_api_client_helper.rb
@@
-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
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