mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-19 10:52:48 -07:00
Rescue NameError for Rubinius
This commit is contained in:
@@ -30,7 +30,9 @@ module Liquid
|
|||||||
end
|
end
|
||||||
|
|
||||||
def escape_once(input)
|
def escape_once(input)
|
||||||
ActionView::Helpers::TagHelper.escape_once(input) rescue input
|
ActionView::Helpers::TagHelper.escape_once(input)
|
||||||
|
rescue NameError
|
||||||
|
input
|
||||||
end
|
end
|
||||||
|
|
||||||
alias_method :h, :escape
|
alias_method :h, :escape
|
||||||
|
|||||||
Reference in New Issue
Block a user