Force user to require the profiler themselves

This commit is contained in:
Justin Li
2014-12-04 17:48:26 -05:00
parent 8c70682d6b
commit dd455a6361
4 changed files with 7 additions and 16 deletions
+1 -1
View File
@@ -250,7 +250,7 @@ module Liquid
def with_profiling
if @profiling && !@options[:included]
raise "Profiler hooks not loaded, call Liquid::Profiler.load_hooks first" unless Profiler.hooks_loaded
raise "Profiler not loaded, require 'liquid/profiler' first" unless defined?(Profiler)
@profiler = Profiler.new
@profiler.start