3021: Replace more "render json:..." with faster Oj.
[arvados.git] / services / api / app / controllers / arvados / v1 / keep_disks_controller.rb
index e8ccf2386c41343fc2b915ed86b7832d2eae94ac..2db2a60452b27cb2ad6d8c34a4fbde98707d432a 100644 (file)
@@ -22,7 +22,7 @@ class Arvados::V1::KeepDisksController < ApplicationController
       # Render the :superuser view (i.e., include the ping_secret) even
       # if !current_user.is_admin. This is safe because @object.ping's
       # success implies the ping_secret was already known by the client.
-      render json: @object.as_api_response(:superuser)
+      send_json @object.as_api_response(:superuser)
     end
   end