5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 03:51:42 +00:00

feat: ordenar los sitios por actividad #12762

This commit is contained in:
f 2023-03-27 12:38:31 -03:00
parent 3e6288fefe
commit 5d40fabe54

View file

@ -10,7 +10,7 @@ class SitesController < ApplicationController
# Ver un listado de sitios
def index
authorize Site
@sites = current_usuarie.sites.order(:title)
@sites = current_usuarie.sites.order(updated_at: :desc)
fresh_when @sites
end