mirror of
https://github.com/kemko/liquid.git
synced 2026-01-01 15:55:40 +03: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