From b628477af1226670eb2ef652106a9fe8df64dedb Mon Sep 17 00:00:00 2001 From: Justin Li Date: Thu, 4 Dec 2014 17:51:54 -0500 Subject: [PATCH] Disambiguate checking if Liquid::Profiler is defined --- lib/liquid/template.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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