5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-07-02 15:56:07 +00:00

memoizar el sitio

This commit is contained in:
f 2022-04-26 16:55:54 -03:00
parent 3a32422e26
commit 027d24d66a

View file

@ -97,8 +97,7 @@ class StatsController < ApplicationController
end
def authorize_stats
@site = find_site
authorize SiteStat.new(@site)
authorize SiteStat.new(site)
end
# TODO: Eliminar cuando mergeemos referer-origin
@ -195,4 +194,8 @@ class StatsController < ApplicationController
p[:period_start]..p[:period_end]
end
end
def site
@site ||= find_site
end
end