class Liquid::Deprecations
Attributes
Public Class Methods
Source
# File lib/liquid/deprecations.rb, line 12 def warn(name, alternative) return if warned.include?(name) warned << name caller_location = caller_locations(2, 1).first Warning.warn("[DEPRECATION] #{name} is deprecated. Use #{alternative} instead. Called from #{caller_location}\n") end