From 4b891b1a913d93edce12b751b5be1a85c6aa1703 Mon Sep 17 00:00:00 2001 From: Matchu Date: Fri, 28 Jul 2023 15:08:54 -0700 Subject: [PATCH] Improve zones.json performance Idk I'm working on a mobile hotspot rn and not including the translations was making this slow, hey may as well fix while we're here right? lol --- app/controllers/zones_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/zones_controller.rb b/app/controllers/zones_controller.rb index 6e81a775..92c4a75b 100644 --- a/app/controllers/zones_controller.rb +++ b/app/controllers/zones_controller.rb @@ -1,5 +1,5 @@ class ZonesController < ApplicationController def index - render json: Zone.all + render json: Zone.includes(:translations).all end end