X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/ceddd030ffb6d11d0fc4244d45fd7b8e17d337e6..5225a4deab9bf526d4e178cb5220f790b3d33e67:/services/api/app/controllers/application_controller.rb diff --git a/services/api/app/controllers/application_controller.rb b/services/api/app/controllers/application_controller.rb index c7cbc6065d..708defede6 100644 --- a/services/api/app/controllers/application_controller.rb +++ b/services/api/app/controllers/application_controller.rb @@ -310,7 +310,9 @@ class ApplicationController < ActionController::Base if params[:id] and params[:id].match /\D/ params[:uuid] = params.delete :id end - @object = model_class.where('uuid=?', params[:uuid]).first + @where = { uuid: params[:uuid] } + find_objects_for_index + @object = @objects.first end def self.accept_attribute_as_json(attr, force_class=nil)