Disambiguate checking if Liquid::Profiler is defined

This commit is contained in:
Justin Li
2014-12-04 17:51:54 -05:00
parent dd455a6361
commit b628477af1

View File

@@ -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