1
0
Fork 0
forked from OpenNeo/impress

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
This commit is contained in:
Matchu 2023-07-28 15:08:54 -07:00
parent ca6a573c0a
commit 4b891b1a91

View file

@ -1,5 +1,5 @@
class ZonesController < ApplicationController class ZonesController < ApplicationController
def index def index
render json: Zone.all render json: Zone.includes(:translations).all
end end
end end