Fixed render_pipeline_component_attribute test if dataclass derives from ArvadosBase.
authorPeter Amstutz <peter.amstutz@curoverse.com>
Fri, 27 Jun 2014 12:45:50 +0000 (08:45 -0400)
committerPeter Amstutz <peter.amstutz@curoverse.com>
Fri, 27 Jun 2014 12:45:50 +0000 (08:45 -0400)
apps/workbench/app/helpers/application_helper.rb

index 26be2898a781fafdf61e43cef88ce52bda231486..80eb16a1cedeb71d211741a020ef69c8b1e20e89 100644 (file)
@@ -306,7 +306,7 @@ module ApplicationHelper
     selectables = []
 
     attrtext = attrvalue
-    if dataclass and dataclass.is_a? ArvadosBase
+    if dataclass.is_a? Class and dataclass < ArvadosBase
       objects = get_n_objects_of_class dataclass, 10
       objects.each do |item|
         items << item