10645: ApplicationController.helpers.object_for_dataclass not accessible from contain... 10645-cr-display-perf
authorradhika <radhika@curoverse.com>
Fri, 12 May 2017 13:03:28 +0000 (09:03 -0400)
committerradhika <radhika@curoverse.com>
Fri, 12 May 2017 13:03:28 +0000 (09:03 -0400)
apps/workbench/app/models/container_work_unit.rb

index afdc91e4dd1fcb55d574b919da597e6cd93fa07b..240dedb163909d32ee4232cf6326122b481defe0 100644 (file)
@@ -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