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