5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-07-04 19:05:45 +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 end
def authorize_stats def authorize_stats
@site = find_site authorize SiteStat.new(site)
authorize SiteStat.new(@site)
end end
# TODO: Eliminar cuando mergeemos referer-origin # TODO: Eliminar cuando mergeemos referer-origin
@ -195,4 +194,8 @@ class StatsController < ApplicationController
p[:period_start]..p[:period_end] p[:period_start]..p[:period_end]
end end
end end
def site
@site ||= find_site
end
end end