mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 18:26:21 +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
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue