diff --git a/lib/liquid/template.rb b/lib/liquid/template.rb index a134962..e86dfb5 100644 --- a/lib/liquid/template.rb +++ b/lib/liquid/template.rb @@ -250,7 +250,7 @@ module Liquid def with_profiling if @profiling && !@options[:included] - raise "Profiler not loaded, require 'liquid/profiler' first" unless defined?(Profiler) + raise "Profiler not loaded, require 'liquid/profiler' first" unless defined?(Liquid::Profiler) @profiler = Profiler.new @profiler.start