• Holger Just's avatar
    Fix the Strainer patch to enforce a filter array · eea550e6
    Holger Just authored
    Up until now, the patch used to be a no-op. While the filters class
    attribute was set correctly, the methods using it were not actually
    overridden as they are only included above the existing methods in
    the module chain.
    
    This resulted in an arbitrary load order of filters on Ruby 1.8. As
    such, our overridden standard filters might not have actually
    overridden anything.
    
    Still, the patch can be completely removed once we either require
    Ruby 1.9 (as we have ordered ahshes by default then) or once
    https://github.com/Shopify/liquid/pull/87 was merged and released
    upstream.
    eea550e6
strainer.rb 1.47 KB