mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-20 03:10:39 -07:00
Disambiguate checking if Liquid::Profiler is defined
This commit is contained in:
@@ -250,7 +250,7 @@ module Liquid
|
|||||||
|
|
||||||
def with_profiling
|
def with_profiling
|
||||||
if @profiling && !@options[:included]
|
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 = Profiler.new
|
||||||
@profiler.start
|
@profiler.start
|
||||||
|
|||||||
Reference in New Issue
Block a user