require dtext correctly
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
require 'dtext'
|
||||
|
||||
module ApplicationHelper
|
||||
def wordbreakify(string)
|
||||
lines = string.scan(/.{1,10}/)
|
||||
@@ -48,11 +50,11 @@ module ApplicationHelper
|
||||
end
|
||||
|
||||
def format_text(text, options = {})
|
||||
DTextRagel.parse(text)
|
||||
raw(DTextRagel.parse(text))
|
||||
end
|
||||
|
||||
def strip_dtext(text)
|
||||
DTextRagel.parse_strip(text)
|
||||
raw(DTextRagel.parse_strip(text))
|
||||
end
|
||||
|
||||
def error_messages_for(instance_name)
|
||||
|
||||
Reference in New Issue
Block a user