mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-18 02:10:41 -07:00
Use sets to check if methods are invokable without symbolizing.
This commit is contained in:
@@ -39,6 +39,7 @@ module Liquid
|
||||
|
||||
filters.each do |f|
|
||||
raise ArgumentError, "Expected module but got: #{f.class}" unless f.is_a?(Module)
|
||||
Strainer.add_known_filter(f)
|
||||
strainer.extend(f)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user