mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-20 03:10:39 -07:00
Lazily load profiler hooks
This commit is contained in:
@@ -70,6 +70,10 @@ module Liquid
|
||||
end
|
||||
end
|
||||
|
||||
def self.hooks_loaded
|
||||
false
|
||||
end
|
||||
|
||||
def self.profile_token_render(token)
|
||||
if Profiler.current_profile && token.respond_to?(:render)
|
||||
Profiler.current_profile.start_token(token)
|
||||
|
||||
Reference in New Issue
Block a user