Merge branch 'pete-fixes' of git.curoverse.com:arvados into pete-fixes
[arvados.git] / apps / workbench / app / controllers / application_controller.rb
index d0496cb42a116e05adc99eadcb4adb883260ce17..e3f92efe237dd9668add6813bb5d228b79b65bb8 100644 (file)
@@ -728,7 +728,7 @@ class ApplicationController < ActionController::Base
   def get_n_objects_of_class dataclass, size
     @objects_map_for ||= {}
 
-    raise ArgumentError, 'Argument is not a data class' unless dataclass.is_a? Class
+    raise ArgumentError, 'Argument is not a data class' unless dataclass.is_a? Class and dataclass < ArvadosBase
     raise ArgumentError, 'Argument is not a valid limit size' unless (size && size>0)
 
     # if the objects_map_for has a value for this dataclass, and the