Remove ruby DText implementation (#3206).
This commit is contained in:
@@ -49,20 +49,12 @@ module ApplicationHelper
|
||||
raw %{<a href="#{h(url)}" #{attributes}>#{text}</a>}
|
||||
end
|
||||
|
||||
def format_text(text, ragel: true, **options)
|
||||
if ragel
|
||||
raw DTextRagel.parse(text, **options)
|
||||
else
|
||||
DText.parse(text)
|
||||
end
|
||||
def format_text(text, **options)
|
||||
raw DTextRagel.parse(text, **options)
|
||||
end
|
||||
|
||||
def strip_dtext(text, options = {})
|
||||
if options[:ragel]
|
||||
raw(DTextRagel.parse_strip(text))
|
||||
else
|
||||
DText.parse_strip(text)
|
||||
end
|
||||
def strip_dtext(text)
|
||||
raw(DTextRagel.parse_strip(text))
|
||||
end
|
||||
|
||||
def error_messages_for(instance_name)
|
||||
|
||||
Reference in New Issue
Block a user