Only attempt to preload ArvadosBase objects in render_pipeline_component_attribute...
authorPeter Amstutz <peter.amstutz@curoverse.com>
Tue, 24 Jun 2014 13:11:52 +0000 (09:11 -0400)
committerPeter Amstutz <peter.amstutz@curoverse.com>
Tue, 24 Jun 2014 13:11:52 +0000 (09:11 -0400)
apps/workbench/app/helpers/application_helper.rb

index 66267e028d4df4eb5dd1436fcdeb507904e466aa..26be2898a781fafdf61e43cef88ce52bda231486 100644 (file)
@@ -306,7 +306,7 @@ module ApplicationHelper
     selectables = []
 
     attrtext = attrvalue
-    if dataclass and dataclass.is_a? Class
+    if dataclass and dataclass.is_a? ArvadosBase
       objects = get_n_objects_of_class dataclass, 10
       objects.each do |item|
         items << item
@@ -392,7 +392,7 @@ module ApplicationHelper
       render opts.merge(partial: "application/#{partial}")
     end
   end
-    
+
   def fa_icon_class_for_object object
     case object.class.to_s.to_sym
     when :User