Remove Liquid::BlockBody patch (#12313)
This commit is contained in:
parent
a63ba17b6a
commit
3750ea6544
2 changed files with 0 additions and 22 deletions
|
|
@ -1,15 +0,0 @@
|
|||
# Disables {% liquid %} tag introduced in version 5.0
|
||||
# see <https://github.com/Shopify/liquid/blob/master/lib/liquid/block_body.rb>
|
||||
|
||||
module LiquidBlockBodyExtensions
|
||||
# parse_for_liquid_tag is a private method, thus we use prepend to patch it
|
||||
def parse_for_liquid_tag(_tokenizer, _parse_context)
|
||||
raise StandardError, "Liquid 'liquid' tag is disabled"
|
||||
end
|
||||
end
|
||||
|
||||
module Liquid
|
||||
class BlockBody
|
||||
prepend LiquidBlockBodyExtensions
|
||||
end
|
||||
end
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
require "rails_helper"
|
||||
|
||||
RSpec.describe Liquid, type: :lib do
|
||||
it "is disabled" do
|
||||
expect { Liquid::Template.parse("{% liquid %}") }.to raise_error(StandardError)
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Reference in a new issue