Merge branch '8784-dir-listings'
[arvados.git] / apps / workbench / app / helpers / arvados_api_client_helper.rb
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 module ArvadosApiClientHelper
6   def arvados_api_client
7     ArvadosApiClient.new_or_current
8   end
9 end
10
11 # For the benefit of themes that still expect $arvados_api_client to work:
12 class ArvadosClientProxyHack
13   def method_missing *args
14     ArvadosApiClient.new_or_current.send *args
15   end
16 end
17 $arvados_api_client = ArvadosClientProxyHack.new