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

Merge branch 'issue-12762' into 'rails'

feat: ordenar los sitios por actividad #12762

See merge request sutty/sutty!131
This commit is contained in:
fauno 2023-04-10 15:48:57 +00:00
commit 1555cdd644

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