Merge branch '11088-keep-cache-units'
[arvados.git] / services / api / app / models / arvados_model.rb
index 910db7e0c7bad2bb0a38ebbc8d0b02a40b63561f..fd542ca909e296c1284b06a2843b9859c6acc8d6 100644 (file)
@@ -597,7 +597,7 @@ class ArvadosModel < ActiveRecord::Base
     if self == ArvadosModel
       # If called directly as ArvadosModel.find_by_uuid rather than via subclass,
       # delegate to the appropriate subclass based on the given uuid.
-      self.resource_class_for_uuid(uuid).find_by_uuid(uuid)
+      self.resource_class_for_uuid(uuid).unscoped.find_by_uuid(uuid)
     else
       super
     end