Fixed: json.cache

This commit is contained in:
Vokhmin Alexey V 2014-06-10 00:56:32 +04:00
parent 89ea7359b4
commit 16fa446698
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ json.build_list do
json.human_duration "#{@build_list.human_current_duration} / #{@build_list.human_average_build_time}"
end
json.cache! @build_list, expires_in: 1.minute do
json.cache! [@build_list, current_user], expires_in: 1.minute do
json.(@build_list, :id, :container_status, :status)
json.(@build_list, :update_type)
json.updated_at @build_list.updated_at