From: radhika Date: Fri, 12 May 2017 13:03:28 +0000 (-0400) Subject: 10645: ApplicationController.helpers.object_for_dataclass not accessible from contain... X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/3fbba8072b4bf37a8b3e90ae60e2a79a77fee41e?ds=sidebyside 10645: ApplicationController.helpers.object_for_dataclass not accessible from container_work_unit --- diff --git a/apps/workbench/app/models/container_work_unit.rb b/apps/workbench/app/models/container_work_unit.rb index afdc91e4dd..240dedb163 100644 --- a/apps/workbench/app/models/container_work_unit.rb +++ b/apps/workbench/app/models/container_work_unit.rb @@ -6,7 +6,8 @@ class ContainerWorkUnit < ProxyWorkUnit if @proxied.is_a?(ContainerRequest) container_uuid = get(:container_uuid) if container_uuid - @container = Container.find(container_uuid) + #@container = Container.where(uuid: container_uuid).first + ApplicationController.helpers.object_for_dataclass Container, container_uuid end end end