mirror of
https://0xacab.org/sutty/sutty
synced 2025-02-21 11:41:48 +00:00
memoizar el sitio
This commit is contained in:
parent
3a32422e26
commit
027d24d66a
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue