From e57d5c96e60530cd160d949f2df3b6f5d09069f9 Mon Sep 17 00:00:00 2001 From: Peng DU Date: Wed, 6 Jul 2016 11:22:01 +0200 Subject: [PATCH] cancel cache machine index json --- app/views/api/machines/index.json.jbuilder | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/app/views/api/machines/index.json.jbuilder b/app/views/api/machines/index.json.jbuilder index c45e7965e..5f642ebe2 100644 --- a/app/views/api/machines/index.json.jbuilder +++ b/app/views/api/machines/index.json.jbuilder @@ -1,7 +1,5 @@ -json.cache! @machines do - json.array!(@machines) do |machine| - json.extract! machine, :id, :name, :description, :spec, :slug - json.url machine_url(machine, format: :json) - json.machine_image machine.machine_image.attachment.medium.url if machine.machine_image - end +json.array!(@machines) do |machine| + json.extract! machine, :id, :name, :description, :spec, :slug + json.url machine_url(machine, format: :json) + json.machine_image machine.machine_image.attachment.medium.url if machine.machine_image end