mirror of
https://github.com/kemko/liquid.git
synced 2026-01-05 09:45:40 +03:00
Disambiguate checking if Liquid::Profiler is defined
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user