nccu fix
This commit is contained in:
1 parent
080974b563
commit
6cc470ede9
19 files changed
+72
-14
No files matched your search
@@ -226,4 +226,9 @@ module ApplicationHelper
|
||||
end
|
||||
end
|
||||
|
||||
def wrap_string_with(str,options={})
|
||||
line_width = options[:line_width] || 12
|
||||
wrap_mark = options[:wrap_mark] || "<br />"
|
||||
str.scan((/.{0,#{line_width}}/)).join(wrap_mark)
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user