Lazily load profiler hooks

This commit is contained in:
Justin Li
2014-11-12 00:05:01 -05:00
parent 3321cffe08
commit c0aab820ed
4 changed files with 16 additions and 1 deletions
+4
View File
@@ -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)