lib/liquid/strainer_template.rb in liquid-5.1.0 vs lib/liquid/strainer_template.rb in liquid-5.2.0

- old
+ new

@@ -29,9 +29,14 @@ def invokable?(method) filter_methods.include?(method.to_s) end + def inherited(subclass) + super + subclass.instance_variable_set(:@filter_methods, @filter_methods.dup) + end + private def filter_methods @filter_methods ||= Set.new end